Selaa lähdekoodia

Varia: Prevent list items from overflowing parent wrappers.

Allan Cole 6 vuotta sitten
vanhempi
commit
80a36cd250
3 muutettua tiedostoa jossa 7 lisäystä ja 4 poistoa
  1. 3 2
      varia/sass/blocks/list/_style.scss
  2. 1 0
      varia/style-rtl.css
  3. 3 2
      varia/style.css

+ 3 - 2
varia/sass/blocks/list/_style.scss

@@ -1,16 +1,17 @@
 ul,
 ol {
 	font-family: #{map-deep-get($config-list, "font", "family")};
+	list-style-position: inside;
 	margin: 0 0 0 #{map-deep-get($config-global, "spacing", "unit")};
 	padding: 0;
 }
 
 ul {
-	list-style: disc;
+	list-style-type: disc;
 }
 
 ol {
-	list-style: decimal;
+	list-style-type: decimal;
 }
 
 li > ul,

+ 1 - 0
varia/style-rtl.css

@@ -1563,6 +1563,7 @@ img {
 ul,
 ol {
 	font-family: serif;
+	list-style-position: inside;
 	margin: 0 16px 0 0;
 	padding: 0;
 }

+ 3 - 2
varia/style.css

@@ -1563,16 +1563,17 @@ img {
 ul,
 ol {
 	font-family: serif;
+	list-style-position: inside;
 	margin: 0 0 0 16px;
 	padding: 0;
 }
 
 ul {
-	list-style: disc;
+	list-style-type: disc;
 }
 
 ol {
-	list-style: decimal;
+	list-style-type: decimal;
 }
 
 dt {