forked from tachyons-css/tachyons-sass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_border-radius.scss
134 lines (119 loc) · 3.39 KB
/
_border-radius.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
// Converted Variables
// Custom Media Query Variables
/*
BORDER RADIUS
Docs: http://tachyons.io/docs/themes/border-radius/
Base:
br = border-radius
Modifiers:
0 = 0/none
1 = 1st step in scale
2 = 2nd step in scale
3 = 3rd step in scale
4 = 4th step in scale
Literal values:
-100 = 100%
-pill = 9999px
Media Query Extensions:
-ns = not-small
-m = medium
-l = large
*/
.br0 { border-radius: $border-radius-none }
.br1 { border-radius: $border-radius-1; }
.br2 { border-radius: $border-radius-2; }
.br3 { border-radius: $border-radius-3; }
.br4 { border-radius: $border-radius-4; }
.br-100 { border-radius: $border-radius-circle; }
.br-pill { border-radius: $border-radius-pill; }
.br--bottom {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.br--top {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.br--right {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.br--left {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
@media #{$breakpoint-not-small} {
.br0-ns { border-radius: $border-radius-none }
.br1-ns { border-radius: $border-radius-1; }
.br2-ns { border-radius: $border-radius-2; }
.br3-ns { border-radius: $border-radius-3; }
.br4-ns { border-radius: $border-radius-4; }
.br-100-ns { border-radius: $border-radius-circle; }
.br-pill-ns { border-radius: $border-radius-pill; }
.br--bottom-ns {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.br--top-ns {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.br--right-ns {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.br--left-ns {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
@media #{$breakpoint-medium} {
.br0-m { border-radius: $border-radius-none }
.br1-m { border-radius: $border-radius-1; }
.br2-m { border-radius: $border-radius-2; }
.br3-m { border-radius: $border-radius-3; }
.br4-m { border-radius: $border-radius-4; }
.br-100-m { border-radius: $border-radius-circle; }
.br-pill-m { border-radius: $border-radius-pill; }
.br--bottom-m {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.br--top-m {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.br--right-m {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.br--left-m {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}
@media #{$breakpoint-large} {
.br0-l { border-radius: $border-radius-none }
.br1-l { border-radius: $border-radius-1; }
.br2-l { border-radius: $border-radius-2; }
.br3-l { border-radius: $border-radius-3; }
.br4-l { border-radius: $border-radius-4; }
.br-100-l { border-radius: $border-radius-circle; }
.br-pill-l { border-radius: $border-radius-pill; }
.br--bottom-l {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.br--top-l {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.br--right-l {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.br--left-l {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
}