forked from inuitcss/objects.list-inline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_objects.list-inline.scss
50 lines (33 loc) · 994 Bytes
/
_objects.list-inline.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*------------------------------------*\
#LIST-INLINE
\*------------------------------------*/
/**
* The list-inline object simply displays a list of items in one line.
*/
// Predefine the variables below in order to alter and enable specific features.
$o-list-inline--delimited: false !default;
$o-list-inline-delimit-character: ",\00A0" !default;
.o-list-inline {
margin: 0;
padding: 0;
list-style: none;
> li {
display: inline-block;
}
}
@if ($o-list-inline--delimited == true) {
/**
* Comma delimited list to semantically mark up lists of tags, etc.
*
* N.B. This component requires that you remove the whitespace between LIs.
* The simplest (and valid) way to achieve this is by omitting the
* closing `</li>` tag.
*/
.o-list-inline--delimited {
> li + li {
&:before {
content: "#{$o-list-inline-delimit-character}";
}
}
}
}