pallote-css 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -2
- package/pallote-css-0.6.0.tgz +0 -0
- package/pallote.min.css +1 -0
- package/pallote.min.css.map +1 -0
- package/pallote.min.js +1 -0
- package/pallote.scss +37 -0
- package/styles/common/_editor.scss +181 -0
- package/styles/common/_fontface.scss +31 -0
- package/styles/common/_functions.scss +11 -0
- package/styles/common/_global.scss +157 -0
- package/styles/common/_mixins.scss +164 -0
- package/styles/common/_reset.scss +145 -0
- package/styles/common/_variables.scss +251 -0
- package/styles/components/_accordion.scss +132 -0
- package/styles/components/_alert.scss +188 -0
- package/styles/components/_breadcrumbs.scss +72 -0
- package/styles/components/_button.scss +184 -0
- package/styles/components/_buttons.scss +52 -0
- package/styles/components/_card.scss +316 -0
- package/styles/components/_divider.scss +53 -0
- package/styles/components/_form.scss +58 -0
- package/styles/components/_input.scss +340 -0
- package/styles/components/_link.scss +51 -0
- package/styles/components/_list.scss +59 -0
- package/styles/components/_nav.scss +185 -0
- package/styles/components/_navbar.scss +253 -0
- package/styles/components/_page.scss +33 -0
- package/styles/components/_section.scss +203 -0
- package/styles/components/_sidebar.scss +61 -0
- package/styles/components/_snippet.scss +85 -0
- package/styles/components/_status.scss +60 -0
- package/styles/components/_switch.scss +84 -0
- package/styles/components/_table.scss +157 -0
- package/styles/components/_tabs.scss +147 -0
- package/styles/components/_tag.scss +79 -0
- package/styles/modules/_cookie.scss +38 -0
- package/styles/utilities/_color.scss +119 -0
- package/styles/utilities/_global.scss +211 -0
- package/styles/utilities/_grid.scss +124 -0
- package/styles/utilities/_text.scss +199 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
@use '../common/mixins';
|
|
2
|
+
@use '../common/variables';
|
|
3
|
+
|
|
4
|
+
// —————————————————————————————————————————————————————————————————
|
|
5
|
+
// responsive
|
|
6
|
+
// spacing and size
|
|
7
|
+
// position
|
|
8
|
+
// display
|
|
9
|
+
// border
|
|
10
|
+
// border-radius
|
|
11
|
+
// —————————————————————————————————————————————————————————————————
|
|
12
|
+
|
|
13
|
+
// —————————————————————————————————————————————————————————————————
|
|
14
|
+
// responsive
|
|
15
|
+
// —————————————————————————————————————————————————————————————————
|
|
16
|
+
|
|
17
|
+
.hide {
|
|
18
|
+
|
|
19
|
+
&-desktop { @include mixins.responsive(down, desktop) { display: none !important; } }
|
|
20
|
+
&-laptop { @include mixins.responsive(down, laptop) { display: none !important; } }
|
|
21
|
+
&-tablet { @include mixins.responsive(down, tablet) { display: none !important; } }
|
|
22
|
+
&-mobile { @include mixins.responsive(down, mobile) { display: none !important; } }
|
|
23
|
+
&-mobileSm { @include mixins.responsive(down, mobile-sm) { display: none !important; } }
|
|
24
|
+
&-touch { @include mixins.responsive-touch { display: none !important; } }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.show {
|
|
28
|
+
|
|
29
|
+
&-desktop { @include mixins.responsive(up, desktop) { display: none !important; } }
|
|
30
|
+
&-laptop { @include mixins.responsive(up, laptop) { display: none !important; } }
|
|
31
|
+
&-tablet { @include mixins.responsive(up, tablet) { display: none !important; } }
|
|
32
|
+
&-mobile { @include mixins.responsive(up, mobile) { display: none !important; } }
|
|
33
|
+
&-mobileSm { @include mixins.responsive(up, mobile-sm) { display: none !important; } }
|
|
34
|
+
&-touch { @include mixins.responsive-click { display: none !important; } }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// —————————————————————————————————————————————————————————————————
|
|
38
|
+
// spacing and size
|
|
39
|
+
// —————————————————————————————————————————————————————————————————
|
|
40
|
+
|
|
41
|
+
.w-full { width: 100% !important; }
|
|
42
|
+
.w-fit { width: fit-content !important; }
|
|
43
|
+
|
|
44
|
+
.h-full { height: 100% !important; }
|
|
45
|
+
.h-fit { height: fit-content !important; }
|
|
46
|
+
|
|
47
|
+
.m-auto { margin: auto !important; }
|
|
48
|
+
.mt-auto { margin-top: auto !important; }
|
|
49
|
+
.mr-auto { margin-right: auto !important; }
|
|
50
|
+
.mb-auto { margin-bottom: auto !important; }
|
|
51
|
+
.ml-auto { margin-left: auto !important; }
|
|
52
|
+
.mv-auto { margin-top: auto !important; margin-bottom: auto !important; }
|
|
53
|
+
.mh-auto { margin-right: auto !important; margin-left: auto !important; }
|
|
54
|
+
|
|
55
|
+
// from .25rem to 5rem, every quarter
|
|
56
|
+
|
|
57
|
+
$fractions: ( "¼": 0.25, "½": 0.5, "¾": 0.75 );
|
|
58
|
+
|
|
59
|
+
@for $i from 0 through 5 {
|
|
60
|
+
.w-#{$i} { width: #{$i}rem !important; }
|
|
61
|
+
.h-#{$i} { height: #{$i}rem !important; }
|
|
62
|
+
|
|
63
|
+
.m-#{$i} { margin: #{$i}rem !important; }
|
|
64
|
+
.mt-#{$i} { margin-top: #{$i}rem !important; }
|
|
65
|
+
.mr-#{$i} { margin-right: #{$i}rem !important; }
|
|
66
|
+
.mb-#{$i} { margin-bottom: #{$i}rem !important; }
|
|
67
|
+
.ml-#{$i} { margin-left: #{$i}rem !important; }
|
|
68
|
+
.mv-#{$i} { margin-top: #{$i}rem !important; margin-bottom: #{$i}rem !important; }
|
|
69
|
+
.mh-#{$i} { margin-right: #{$i}rem !important; margin-left: #{$i}rem !important; }
|
|
70
|
+
|
|
71
|
+
.p-#{$i} { padding: #{$i}rem !important; }
|
|
72
|
+
.pt-#{$i} { padding-top: #{$i}rem !important; }
|
|
73
|
+
.pr-#{$i} { padding-right: #{$i}rem !important; }
|
|
74
|
+
.pb-#{$i} { padding-bottom: #{$i}rem !important; }
|
|
75
|
+
.pl-#{$i} { padding-left: #{$i}rem !important; }
|
|
76
|
+
.pv-#{$i} { padding-top: #{$i}rem !important; padding-bottom: #{$i}rem !important; }
|
|
77
|
+
.ph-#{$i} { padding-right: #{$i}rem !important; padding-left: #{$i}rem !important; }
|
|
78
|
+
|
|
79
|
+
@each $symbol, $value in $fractions {
|
|
80
|
+
|
|
81
|
+
@if $i == 0 {
|
|
82
|
+
.w-#{$symbol} { width: #{$i + $value}rem !important; }
|
|
83
|
+
.h-#{$symbol} { height: #{$i + $value}rem !important; }
|
|
84
|
+
|
|
85
|
+
.m-#{$symbol} { margin: #{$i + $value}rem !important; }
|
|
86
|
+
.mt-#{$symbol} { margin-top: #{$i + $value}rem !important; }
|
|
87
|
+
.mr-#{$symbol} { margin-right: #{$i + $value}rem !important; }
|
|
88
|
+
.mb-#{$symbol} { margin-bottom: #{$i + $value}rem !important; }
|
|
89
|
+
.ml-#{$symbol} { margin-left: #{$i + $value}rem !important; }
|
|
90
|
+
.mv-#{$symbol} { margin-top: #{$i + $value}rem !important; margin-bottom: #{$i + $value}rem !important; }
|
|
91
|
+
.mh-#{$symbol} { margin-right: #{$i + $value}rem !important; margin-left: #{$i + $value}rem !important; }
|
|
92
|
+
|
|
93
|
+
.p-#{$symbol} { padding: #{$i + $value}rem !important; }
|
|
94
|
+
.pt-#{$symbol} { padding-top: #{$i + $value}rem !important; }
|
|
95
|
+
.pr-#{$symbol} { padding-right: #{$i + $value}rem !important; }
|
|
96
|
+
.pb-#{$symbol} { padding-bottom: #{$i + $value}rem !important; }
|
|
97
|
+
.pl-#{$symbol} { padding-left: #{$i + $value}rem !important; }
|
|
98
|
+
.pv-#{$symbol} { padding-top: #{$i + $value}rem !important; padding-bottom: #{$i + $value}rem !important; }
|
|
99
|
+
.ph-#{$symbol} { padding-right: #{$i + $value}rem !important; padding-left: #{$i + $value}rem !important; }
|
|
100
|
+
|
|
101
|
+
} @else {
|
|
102
|
+
.w-#{$i}#{$symbol} { width: #{$i + $value}rem !important; }
|
|
103
|
+
.h-#{$i}#{$symbol} { height: #{$i + $value}rem !important; }
|
|
104
|
+
|
|
105
|
+
.m-#{$i}#{$symbol} { margin: #{$i + $value}rem !important; }
|
|
106
|
+
.mt-#{$i}#{$symbol} { margin-top: #{$i + $value}rem !important; }
|
|
107
|
+
.mr-#{$i}#{$symbol} { margin-right: #{$i + $value}rem !important; }
|
|
108
|
+
.mb-#{$i}#{$symbol} { margin-bottom: #{$i + $value}rem !important; }
|
|
109
|
+
.ml-#{$i}#{$symbol} { margin-left: #{$i + $value}rem !important; }
|
|
110
|
+
.mv-#{$i}#{$symbol} { margin-top: #{$i + $value}rem !important; margin-bottom: #{$i + $value}rem !important; }
|
|
111
|
+
.mh-#{$i}#{$symbol} { margin-right: #{$i + $value}rem !important; margin-left: #{$i + $value}rem !important; }
|
|
112
|
+
|
|
113
|
+
.p-#{$i}#{$symbol} { padding: #{$i + $value}rem !important; }
|
|
114
|
+
.pt-#{$i}#{$symbol} { padding-top: #{$i + $value}rem !important; }
|
|
115
|
+
.pr-#{$i}#{$symbol} { padding-right: #{$i + $value}rem !important; }
|
|
116
|
+
.pb-#{$i}#{$symbol} { padding-bottom: #{$i + $value}rem !important; }
|
|
117
|
+
.pl-#{$i}#{$symbol} { padding-left: #{$i + $value}rem !important; }
|
|
118
|
+
.pv-#{$i}#{$symbol} { padding-top: #{$i + $value}rem !important; padding-bottom: #{$i + $value}rem !important; }
|
|
119
|
+
.ph-#{$i}#{$symbol} { padding-right: #{$i + $value}rem !important; padding-left: #{$i + $value}rem !important; }
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// from 6 to 20 rem, only integer
|
|
125
|
+
|
|
126
|
+
@for $i from 6 through 20 {
|
|
127
|
+
.w-#{$i} { width: #{$i}rem !important; }
|
|
128
|
+
.h-#{$i} { height: #{$i}rem !important; }
|
|
129
|
+
|
|
130
|
+
.m-#{$i} { margin: #{$i}rem !important; }
|
|
131
|
+
.mt-#{$i} { margin-top: #{$i}rem !important; }
|
|
132
|
+
.mr-#{$i} { margin-right: #{$i}rem !important; }
|
|
133
|
+
.mb-#{$i} { margin-bottom: #{$i}rem !important; }
|
|
134
|
+
.ml-#{$i} { margin-left: #{$i}rem !important; }
|
|
135
|
+
.mv-#{$i} { margin-top: #{$i}rem !important; margin-bottom: #{$i}rem !important; }
|
|
136
|
+
.mh-#{$i} { margin-right: #{$i}rem !important; margin-left: #{$i}rem !important; }
|
|
137
|
+
|
|
138
|
+
.p-#{$i} { padding: #{$i}rem !important; }
|
|
139
|
+
.pt-#{$i} { padding-top: #{$i}rem !important; }
|
|
140
|
+
.pr-#{$i} { padding-right: #{$i}rem !important; }
|
|
141
|
+
.pb-#{$i} { padding-bottom: #{$i}rem !important; }
|
|
142
|
+
.pl-#{$i} { padding-left: #{$i}rem !important; }
|
|
143
|
+
.pv-#{$i} { padding-top: #{$i}rem !important; padding-bottom: #{$i}rem !important; }
|
|
144
|
+
.ph-#{$i} { padding-right: #{$i}rem !important; padding-left: #{$i}rem !important; }
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// —————————————————————————————————————————————————————————————————
|
|
148
|
+
// position
|
|
149
|
+
// —————————————————————————————————————————————————————————————————
|
|
150
|
+
|
|
151
|
+
.pos {
|
|
152
|
+
|
|
153
|
+
&-absolute { position: absolute !important; }
|
|
154
|
+
&-relative { position: relative !important; }
|
|
155
|
+
&-fixed { position: relative !important; }
|
|
156
|
+
&-sticky { position: relative !important; }
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
// —————————————————————————————————————————————————————————————————
|
|
160
|
+
// display
|
|
161
|
+
// —————————————————————————————————————————————————————————————————
|
|
162
|
+
|
|
163
|
+
// general display
|
|
164
|
+
|
|
165
|
+
.dis-flex { display: flex !important; }
|
|
166
|
+
.dis-inlineFlex { display: inline-flex !important; }
|
|
167
|
+
.dis-block { display: block !important; }
|
|
168
|
+
.dis-inlineBlock { display: inline-block !important; }
|
|
169
|
+
|
|
170
|
+
// flexbasis
|
|
171
|
+
|
|
172
|
+
.fb {
|
|
173
|
+
|
|
174
|
+
&-content { flex-basis: content !important; }
|
|
175
|
+
&-0 { flex-basis: 0 !important; }
|
|
176
|
+
&-1 { flex-basis: 1 !important; }
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
// flex-grow
|
|
180
|
+
|
|
181
|
+
.fg {
|
|
182
|
+
|
|
183
|
+
&-0 { flex-grow: 0 !important; }
|
|
184
|
+
&-1 { flex-grow: 1 !important; }
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// flex-shrink
|
|
188
|
+
|
|
189
|
+
.fs {
|
|
190
|
+
|
|
191
|
+
&-0 { flex-shrink: 0 !important; }
|
|
192
|
+
&-1 { flex-shrink: 1 !important; }
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// —————————————————————————————————————————————————————————————————
|
|
196
|
+
// border
|
|
197
|
+
// —————————————————————————————————————————————————————————————————
|
|
198
|
+
|
|
199
|
+
.b-1 { border: variables.$border; }
|
|
200
|
+
.bt-1 { border-top: variables.$border; }
|
|
201
|
+
.br-1 { border-right: variables.$border; }
|
|
202
|
+
.bb-1 { border-bottom: variables.$border; }
|
|
203
|
+
.bl-1 { border-left: variables.$border; }
|
|
204
|
+
|
|
205
|
+
// —————————————————————————————————————————————————————————————————
|
|
206
|
+
// border-radius
|
|
207
|
+
// —————————————————————————————————————————————————————————————————
|
|
208
|
+
|
|
209
|
+
.br-sm { border-radius: variables.$border-radius-sm; }
|
|
210
|
+
.br-md { border-radius: variables.$border-radius-md; }
|
|
211
|
+
.br-lg { border-radius: variables.$border-radius-lg; }
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@use '../common/mixins';
|
|
2
|
+
@use '../common/variables';
|
|
3
|
+
|
|
4
|
+
// —————————————————————————————————————————————————————————————————
|
|
5
|
+
// elements
|
|
6
|
+
// wrap
|
|
7
|
+
// direction
|
|
8
|
+
// justify
|
|
9
|
+
// items
|
|
10
|
+
// self
|
|
11
|
+
// gap and col
|
|
12
|
+
// —————————————————————————————————————————————————————————————————
|
|
13
|
+
|
|
14
|
+
// —————————————————————————————————————————————————————————————————
|
|
15
|
+
// elements
|
|
16
|
+
// —————————————————————————————————————————————————————————————————
|
|
17
|
+
|
|
18
|
+
.flex {
|
|
19
|
+
display: flex;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// —————————————————————————————————————————————————————————————————
|
|
26
|
+
// wrap
|
|
27
|
+
// —————————————————————————————————————————————————————————————————
|
|
28
|
+
|
|
29
|
+
// have children wrap automatically
|
|
30
|
+
.flex-wrap {
|
|
31
|
+
|
|
32
|
+
> .flex {
|
|
33
|
+
flex: 1 0 0;
|
|
34
|
+
|
|
35
|
+
> * {
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// —————————————————————————————————————————————————————————————————
|
|
42
|
+
// direction
|
|
43
|
+
// —————————————————————————————————————————————————————————————————
|
|
44
|
+
|
|
45
|
+
.direction-column { flex-direction: column; }
|
|
46
|
+
.direction-columnReverse { flex-direction: column-reverse; }
|
|
47
|
+
.direction-row { flex-direction: row; flex-wrap: wrap; }
|
|
48
|
+
.direction-rowReverse { flex-direction: row-reverse; flex-wrap: wrap; }
|
|
49
|
+
|
|
50
|
+
// —————————————————————————————————————————————————————————————————
|
|
51
|
+
// justify
|
|
52
|
+
// —————————————————————————————————————————————————————————————————
|
|
53
|
+
|
|
54
|
+
.justify-center { justify-content: center;}
|
|
55
|
+
.justify-end { justify-content: flex-end;}
|
|
56
|
+
.justify-start { justify-content: flex-start;}
|
|
57
|
+
.justify-spaceAround { justify-content: space-around;}
|
|
58
|
+
.justify-spaceBetween { justify-content: space-between;}
|
|
59
|
+
.justify-spaceEvenly { justify-content: space-evenly;}
|
|
60
|
+
|
|
61
|
+
// —————————————————————————————————————————————————————————————————
|
|
62
|
+
// items
|
|
63
|
+
// —————————————————————————————————————————————————————————————————
|
|
64
|
+
|
|
65
|
+
.items-stretch { align-items: stretch; }
|
|
66
|
+
.items-center { align-items: center; }
|
|
67
|
+
.items-end { align-items: flex-end; }
|
|
68
|
+
.items-start { align-items: flex-start; }
|
|
69
|
+
.items-baseline { align-items: baseline; }
|
|
70
|
+
|
|
71
|
+
// —————————————————————————————————————————————————————————————————
|
|
72
|
+
// self
|
|
73
|
+
// —————————————————————————————————————————————————————————————————
|
|
74
|
+
|
|
75
|
+
.self-stretch { align-self: stretch; }
|
|
76
|
+
.self-center { align-self: center; }
|
|
77
|
+
.self-end { align-self: flex-end; }
|
|
78
|
+
.self-start { align-self: flex-start; }
|
|
79
|
+
.self-baseline { align-self: baseline; }
|
|
80
|
+
|
|
81
|
+
// —————————————————————————————————————————————————————————————————
|
|
82
|
+
// gap and col
|
|
83
|
+
// —————————————————————————————————————————————————————————————————
|
|
84
|
+
|
|
85
|
+
$columns: 12;
|
|
86
|
+
$breakpoints: (
|
|
87
|
+
xs: mobile-sm,
|
|
88
|
+
sm: mobile,
|
|
89
|
+
md: tablet,
|
|
90
|
+
lg: laptop,
|
|
91
|
+
xl: desktop
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
@for $i from 1 through $columns {
|
|
95
|
+
.col-#{$i} {
|
|
96
|
+
width: variables.$col * $i;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[class*="col-"] {
|
|
101
|
+
width: 100%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@for $i from 1 through $columns {
|
|
105
|
+
.gap-#{$i} {
|
|
106
|
+
gap: #{$i * .25}rem;
|
|
107
|
+
|
|
108
|
+
@for $j from 1 through $columns {
|
|
109
|
+
> .col-#{$j} {
|
|
110
|
+
width: calc((variables.$col * $j) - (#{$i * .25}rem * (($columns / $j - 1) / ($columns / $j))));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
@each $suffix, $breakpoint in $breakpoints {
|
|
115
|
+
@include mixins.responsive(up, $breakpoint) {
|
|
116
|
+
@for $j from 1 through $columns {
|
|
117
|
+
> .col-#{$suffix}-#{$j} {
|
|
118
|
+
width: calc((variables.$col * $j) - (#{$i * .25}rem * (($columns / $j - 1) / ($columns / $j))));
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use '../common/mixins';
|
|
3
|
+
@use '../common/variables';
|
|
4
|
+
|
|
5
|
+
// —————————————————————————————————————————————————————————————————
|
|
6
|
+
// elements
|
|
7
|
+
// align
|
|
8
|
+
// weight
|
|
9
|
+
// transform
|
|
10
|
+
// italic
|
|
11
|
+
// underline
|
|
12
|
+
// strikeThrough
|
|
13
|
+
// code
|
|
14
|
+
// color
|
|
15
|
+
// —————————————————————————————————————————————————————————————————
|
|
16
|
+
|
|
17
|
+
// —————————————————————————————————————————————————————————————————
|
|
18
|
+
// elements
|
|
19
|
+
// —————————————————————————————————————————————————————————————————
|
|
20
|
+
|
|
21
|
+
@mixin font-size($font-size, $font-weight, $line-height) {
|
|
22
|
+
font-size: $font-size;
|
|
23
|
+
font-weight: $font-weight;
|
|
24
|
+
line-height: $line-height;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.body, %body {
|
|
28
|
+
@include font-size(
|
|
29
|
+
variables.$body-size,
|
|
30
|
+
variables.$body-weight,
|
|
31
|
+
variables.$body-line-height
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.subtitle, %subtitle {
|
|
36
|
+
@include font-size(
|
|
37
|
+
variables.$subtitle-size,
|
|
38
|
+
variables.$subtitle-weight,
|
|
39
|
+
variables.$subtitle-line-height
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.caption, %caption {
|
|
44
|
+
@include font-size(
|
|
45
|
+
variables.$caption-size,
|
|
46
|
+
variables.$caption-weight,
|
|
47
|
+
variables.$caption-line-height
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.overline, %overline {
|
|
52
|
+
@include font-size(
|
|
53
|
+
variables.$overline-size,
|
|
54
|
+
variables.$overline-weight,
|
|
55
|
+
variables.$overline-line-height
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.h1, %h1 {
|
|
60
|
+
@include font-size(
|
|
61
|
+
variables.$h1-size,
|
|
62
|
+
variables.$h1-weight,
|
|
63
|
+
variables.$h1-line-height
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.h2, %h2 {
|
|
68
|
+
@include font-size(
|
|
69
|
+
variables.$h2-size,
|
|
70
|
+
variables.$h2-weight,
|
|
71
|
+
variables.$h2-line-height
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.h3, %h3 {
|
|
76
|
+
@include font-size(
|
|
77
|
+
variables.$h3-size,
|
|
78
|
+
variables.$h3-weight,
|
|
79
|
+
variables.$h3-line-height
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.h4, %h4 {
|
|
84
|
+
@include font-size(
|
|
85
|
+
variables.$h4-size,
|
|
86
|
+
variables.$h4-weight,
|
|
87
|
+
variables.$h4-line-height
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.h5, %h5 {
|
|
92
|
+
@include font-size(
|
|
93
|
+
variables.$h5-size,
|
|
94
|
+
variables.$h5-weight,
|
|
95
|
+
variables.$h5-line-height
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.h6, %h6 {
|
|
100
|
+
@include font-size(
|
|
101
|
+
variables.$h6-size,
|
|
102
|
+
variables.$h6-weight,
|
|
103
|
+
variables.$h6-line-height
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@mixin gutter {
|
|
108
|
+
|
|
109
|
+
& + & {
|
|
110
|
+
margin-top: .75em;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.h1, .h2, .h3, .h4, .h5, .h6,
|
|
115
|
+
.subtitle, .body, .caption, .overline {
|
|
116
|
+
@include gutter;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// —————————————————————————————————————————————————————————————————
|
|
120
|
+
// align
|
|
121
|
+
// —————————————————————————————————————————————————————————————————
|
|
122
|
+
|
|
123
|
+
.text-left, %text-left { text-align: left !important; }
|
|
124
|
+
.text-center, %text-center { text-align: center !important; }
|
|
125
|
+
.text-right, %text-right { text-align: right !important; }
|
|
126
|
+
|
|
127
|
+
// —————————————————————————————————————————————————————————————————
|
|
128
|
+
// weight
|
|
129
|
+
// —————————————————————————————————————————————————————————————————
|
|
130
|
+
|
|
131
|
+
.text-regular, %text-regular { font-weight: variables.$font-regular !important; }
|
|
132
|
+
.text-bold, %text-bold { font-weight: variables.$font-bold !important; }
|
|
133
|
+
|
|
134
|
+
// —————————————————————————————————————————————————————————————————
|
|
135
|
+
// transform
|
|
136
|
+
// —————————————————————————————————————————————————————————————————
|
|
137
|
+
|
|
138
|
+
.text-none, %text-none { text-transform: none; }
|
|
139
|
+
.text-capitalize, %text-capitalize { text-transform: capitalize; }
|
|
140
|
+
.text-uppercase, %text-uppercase { text-transform: uppercase; }
|
|
141
|
+
.text-lowercase, %text-lowercase { text-transform: lowercase; }
|
|
142
|
+
.text-initial, %text-initial { text-transform: initial; }
|
|
143
|
+
.text-inherit, %text-inherit { text-transform: inherit; }
|
|
144
|
+
|
|
145
|
+
// —————————————————————————————————————————————————————————————————
|
|
146
|
+
// italic
|
|
147
|
+
// —————————————————————————————————————————————————————————————————
|
|
148
|
+
|
|
149
|
+
.text-italic, %text-italic { font-style: italic !important; }
|
|
150
|
+
|
|
151
|
+
// —————————————————————————————————————————————————————————————————
|
|
152
|
+
// underline
|
|
153
|
+
// —————————————————————————————————————————————————————————————————
|
|
154
|
+
|
|
155
|
+
.text-underline, %text-underline { text-decoration: underline !important; }
|
|
156
|
+
|
|
157
|
+
// —————————————————————————————————————————————————————————————————
|
|
158
|
+
// strikeThrough
|
|
159
|
+
// —————————————————————————————————————————————————————————————————
|
|
160
|
+
|
|
161
|
+
.text-strikeThrough, %text-strikeThrough { text-decoration: line-through !important; }
|
|
162
|
+
|
|
163
|
+
// —————————————————————————————————————————————————————————————————
|
|
164
|
+
// code
|
|
165
|
+
// —————————————————————————————————————————————————————————————————
|
|
166
|
+
|
|
167
|
+
.text-code, %text-code { font-family: variables.$font-code !important; }
|
|
168
|
+
|
|
169
|
+
// —————————————————————————————————————————————————————————————————
|
|
170
|
+
// color
|
|
171
|
+
// —————————————————————————————————————————————————————————————————
|
|
172
|
+
|
|
173
|
+
@mixin text-color($prefix, $colors...) {
|
|
174
|
+
@each $i in $colors {
|
|
175
|
+
.#{$prefix}#{list.nth($i, 1)} {
|
|
176
|
+
color: list.nth($i, 2) !important;
|
|
177
|
+
|
|
178
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
|
179
|
+
color: list.nth($i, 2) !important;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@include text-color('text-',
|
|
186
|
+
'default' variables.$text,
|
|
187
|
+
'alt' variables.$text-alt,
|
|
188
|
+
'disabled' variables.$text-disabled,
|
|
189
|
+
'contrast' variables.$text-contrast,
|
|
190
|
+
'contrastAlt' variables.$text-contrast-alt,
|
|
191
|
+
'contrastDisabled' variables.$text-contrast-disabled,
|
|
192
|
+
'primary' variables.$primary,
|
|
193
|
+
'secondary' variables.$secondary,
|
|
194
|
+
'primary' variables.$primary,
|
|
195
|
+
'success' variables.$success,
|
|
196
|
+
'info' variables.$info,
|
|
197
|
+
'warning' variables.$warning,
|
|
198
|
+
'error' variables.$error,
|
|
199
|
+
);
|