File tree Expand file tree Collapse file tree 6 files changed +64
-22
lines changed Expand file tree Collapse file tree 6 files changed +64
-22
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" heading row" >Small Pills</div >
2
2
<div class =" row" >
3
- <div class =" col-4" >
4
3
<div class =" pill-sm" >
5
4
Pill Default
6
5
</div >
7
- </div >
8
- <div class =" col-4" >
6
+
9
7
<div class =" pill-sm bg-green" >
10
8
Pill Green
11
9
</div >
12
- </div >
13
- <div class =" col-4" >
10
+
14
11
<div class =" pill-sm bg-red" >
15
12
Pill Red
16
13
</div >
17
- </div >
18
14
</div >
19
15
20
16
21
17
<div class =" heading row" >Default Pills</div >
22
18
<div class =" row" >
23
- <div class =" col-4" >
24
19
<div class =" pill" >
25
20
Pill Default
26
21
</div >
27
- </div >
28
- <div class =" col-4 " >
29
22
<div class =" pill bg-green" >
30
23
Pill Green
31
24
</div >
32
- </ div >
33
- < div class = " col-4 " >
25
+
26
+
34
27
<div class =" pill bg-red" >
35
28
Pill Red
36
29
</div >
37
- </div >
38
30
</div >
39
31
40
32
<div class =" heading row" >Large Pills</div >
41
33
<div class =" row" >
42
- <div class =" col-4" >
43
34
<div class =" pill-lg" >
44
35
Pill Default
45
36
</div >
46
- </div >
47
- <div class =" col-4 " >
37
+
48
38
<div class =" pill-lg bg-green" >
49
39
Pill Green
50
40
</div >
51
- </div >
52
- <div class =" col-4" >
41
+
53
42
<div class =" pill-lg bg-red" >
54
43
Pill Red
55
44
</div >
45
+ </div >
46
+
47
+
48
+ <br >
49
+
50
+
51
+ <div class =" heading" >Manage pill size by parent</div >
52
+
53
+ <div class =" row small" >
54
+ <div class =" pill" >
55
+ Parent class=small
56
+ </div >
57
+
58
+ <div class =" pill bg-green" >
59
+ Parent class=small
60
+ </div >
61
+
62
+ <div class =" pill bg-red" >
63
+ Parent class=small
64
+ </div >
65
+ </div >
66
+
67
+ <div class =" row large" >
68
+ <div class =" pill" >
69
+ Parent class=large
70
+ </div >
71
+
72
+ <div class =" pill bg-green" >
73
+ Parent class=large
74
+ </div >
75
+
76
+ <div class =" pill bg-red" >
77
+ Parent class=large
56
78
</div >
57
79
</div >
58
80
Original file line number Diff line number Diff line change 53
53
@import " objects/o-signup/o-signup" ;
54
54
@import " objects/tab-nav/tab-nav" ;
55
55
@import " objects/o-changedp/o-changedp" ;
56
+ @import " objects/o-pill/o-pill" ;
Original file line number Diff line number Diff line change 8
8
@import " tools/tools.border" ;
9
9
@import " tools/tools.flexbox" ;
10
10
@import " tools/tools.display" ;
11
+ @import " tools/tools.width" ;
11
12
Original file line number Diff line number Diff line change
1
+ .small {
2
+ .pill {
3
+ @include padding-s (0 , 12px );
4
+
5
+ font-size : $card-sms ;
6
+ height : 17px ;
7
+ }
8
+ }
9
+
10
+ .large {
11
+ .pill {
12
+ @include padding-s (0 , 30px );
13
+ @include border-radius (30px );
14
+
15
+ font-size : $font-sm ;
16
+ height : 45px ;
17
+ }
18
+ }
Original file line number Diff line number Diff line change 1
1
2
-
3
2
@mixin dimensions ($width : $global-container-width , $height : $global-container-height ) {
4
3
width : $width ;
5
4
height : $height ;
6
5
}
7
6
8
- @mixin width-fit ($moz : true){
9
- width : fit-content ;
10
- @if ($moz ) {width : -moz-fit-content }
11
- }
Original file line number Diff line number Diff line change
1
+ @mixin width-fit ($moz : true, $webkit : true){
2
+ width : fit-content ;
3
+ @if ($moz ) {width : -moz-fit-content }
4
+ @if ($webkit ) {width : -webkit-fit-content }
5
+ }
You can’t perform that action at this time.
0 commit comments