-
Notifications
You must be signed in to change notification settings - Fork 6
/
_objects.list-inline.scss
54 lines (36 loc) · 1.23 KB
/
_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
51
52
53
54
/*------------------------------------*\
#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.
$inuit-list-inline-namespace: $inuit-namespace !default;
$inuit-enable-list-inline--delimited: false !default;
$inuit-list-inline-delimit-character: ",\00A0" !default;
.#{$inuit-list-inline-namespace}list-inline,
%#{$inuit-list-inline-namespace}list-inline {
margin: 0;
padding: 0;
list-style: none;
> li {
display: inline-block;
}
}
@if ($inuit-enable-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.
*/
.#{$inuit-list-inline-namespace}list-inline--delimited,
%#{$inuit-list-inline-namespace}list-inline--delimited {
> li + li {
&:before {
content: "#{$inuit-list-inline-delimit-character}";
}
}
}
}