File tree 3 files changed +28
-0
lines changed
3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ SUIT CSS list utilities
13
13
14
14
## Available classes
15
15
16
+ * ` u-listReset ` - Remove default margin and padding
16
17
* ` u-listIndent ` - Set the left indent. Default is ` 40px ` as found in browser
17
18
defaults
18
19
* ` u-listNone ` - Remove list style
Original file line number Diff line number Diff line change 6
6
--list-indentSize : 40px ;
7
7
}
8
8
9
+ /*
10
+ * Remove browser default margin and padding. Useful for setting a base
11
+ * on components (e.g navigation) when a reset like suitcss-base is not in use.
12
+ */
13
+
14
+ .u-listReset {
15
+ margin-bottom : 0 ;
16
+ margin-top : 0 ;
17
+ padding-left : 0 ;
18
+ }
19
+
9
20
/*
10
21
* Set the left indent. Browser default is 40px
11
22
*/
Original file line number Diff line number Diff line change 14
14
< div class ="Test ">
15
15
< h1 class ="Test-title "> SUIT CSS: < a href ="https://github.com/simonsmith/suit-utils-flex "> list</ a > tests</ h1 >
16
16
17
+ < h2 class ="Test-describe "> .u-listReset</ h2 >
18
+ < h3 class ="Test-it "> it should remove default margin and padding on parent list</ h3 >
19
+ < div class ="Test-run dev-highlight ">
20
+ < ul class ="u-listReset ">
21
+ < li > ul item 1</ li >
22
+ < li > ul item 2</ li >
23
+ < li >
24
+ < ul >
25
+ < li > > ul item 1</ li >
26
+ < li > > ul item 2</ li >
27
+ </ ul >
28
+ </ li >
29
+ < li > ul item 3</ li >
30
+ </ ul >
31
+ </ div >
32
+
17
33
< h2 class ="Test-describe "> .u-listNone</ h2 >
18
34
< h3 class ="Test-it "> it should not render any list style on parent list</ h3 >
19
35
< div class ="Test-run dev-highlight ">
You can’t perform that action at this time.
0 commit comments