|
| 1 | +@use "mixins"; |
| 2 | +@use "vars"; |
| 3 | + |
1 | 4 | /**
|
2 | 5 | * Card-style blocks
|
3 | 6 | */
|
4 | 7 |
|
5 | 8 | .card {
|
6 |
| - @include lightDark(background-color, #FFF, #222); |
7 |
| - box-shadow: $bs-card; |
| 9 | + @include mixins.lightDark(background-color, #FFF, #222); |
| 10 | + box-shadow: vars.$bs-card; |
8 | 11 | border-radius: 3px;
|
9 | 12 | break-inside: avoid;
|
10 | 13 | .body, p.empty-text {
|
11 |
| - padding-block: $-m; |
| 14 | + padding-block: vars.$m; |
12 | 15 | }
|
13 | 16 | a, p {
|
14 | 17 | word-wrap: break-word;
|
|
17 | 20 | }
|
18 | 21 |
|
19 | 22 | .card-title {
|
20 |
| - padding: $-m $-m $-xs; |
| 23 | + padding: vars.$m vars.$m vars.$xs; |
21 | 24 | margin: 0;
|
22 |
| - font-size: $fs-m; |
| 25 | + font-size: vars.$fs-m; |
23 | 26 | color: #222;
|
24 | 27 | fill: #222;
|
25 | 28 | font-weight: 400;
|
|
29 | 32 | }
|
30 | 33 | .card-footer-link, button.card-footer-link {
|
31 | 34 | display: block;
|
32 |
| - padding: $-s $-m; |
| 35 | + padding: vars.$s vars.$m; |
33 | 36 | line-height: 1;
|
34 | 37 | border-top: 1px solid;
|
35 | 38 | width: 100%;
|
36 | 39 | text-align: left;
|
37 |
| - @include lightDark(border-color, #DDD, #555); |
| 40 | + @include mixins.lightDark(border-color, #DDD, #555); |
38 | 41 | border-radius: 0 0 3px 3px;
|
39 | 42 | font-size: 0.9em;
|
40 |
| - margin-top: $-xs; |
| 43 | + margin-top: vars.$xs; |
41 | 44 | &:hover {
|
42 | 45 | text-decoration: none;
|
43 |
| - @include lightDark(background-color, #f2f2f2, #2d2d2d); |
| 46 | + @include mixins.lightDark(background-color, #f2f2f2, #2d2d2d); |
44 | 47 | }
|
45 | 48 | &:focus {
|
46 |
| - @include lightDark(background-color, #eee, #222); |
| 49 | + @include mixins.lightDark(background-color, #eee, #222); |
47 | 50 | outline: 1px dotted #666;
|
48 | 51 | outline-offset: -2px;
|
49 | 52 | }
|
50 | 53 | }
|
51 | 54 |
|
52 | 55 | .card.border-card {
|
53 | 56 | border: 1px solid;
|
54 |
| - @include lightDark(border-color, #ddd, #000); |
| 57 | + @include mixins.lightDark(border-color, #ddd, #000); |
55 | 58 | }
|
56 | 59 |
|
57 | 60 | .card.drag-card {
|
58 | 61 | border: 1px solid #DDD;
|
59 |
| - @include lightDark(border-color, #ddd, #000); |
60 |
| - @include lightDark(background-color, #fff, #333); |
| 62 | + @include mixins.lightDark(border-color, #ddd, #000); |
| 63 | + @include mixins.lightDark(background-color, #fff, #333); |
61 | 64 | border-radius: 4px;
|
62 | 65 | display: flex;
|
63 |
| - padding: 0 0 0 ($-s + 28px); |
64 |
| - margin: $-s 0; |
| 66 | + padding: 0 0 0 (vars.$s + 28px); |
| 67 | + margin: vars.$s 0; |
65 | 68 | position: relative;
|
66 | 69 | .drag-card-action {
|
67 | 70 | cursor: pointer;
|
|
73 | 76 | justify-content: center;
|
74 | 77 | width: 28px;
|
75 | 78 | flex-grow: 0;
|
76 |
| - padding: 0 $-xs; |
| 79 | + padding: 0 vars.$xs; |
77 | 80 | &:hover {
|
78 |
| - @include lightDark(background-color, #eee, #2d2d2d); |
| 81 | + @include mixins.lightDark(background-color, #eee, #2d2d2d); |
79 | 82 | }
|
80 | 83 | .svg-icon {
|
81 | 84 | margin-inline-end: 0px;
|
82 | 85 | }
|
83 | 86 | }
|
84 | 87 | .outline input {
|
85 |
| - margin: $-s 0; |
| 88 | + margin: vars.$s 0; |
86 | 89 | width: 100%;
|
87 | 90 | }
|
88 | 91 | .outline {
|
89 | 92 | position: relative;
|
90 | 93 | }
|
91 | 94 | .handle {
|
92 |
| - @include lightDark(background-color, #eee, #2d2d2d); |
| 95 | + @include mixins.lightDark(background-color, #eee, #2d2d2d); |
93 | 96 | left: 0;
|
94 | 97 | position: absolute;
|
95 | 98 | top: 0;
|
96 | 99 | bottom: 0;
|
97 | 100 | }
|
98 | 101 | > div {
|
99 |
| - padding: 0 $-s; |
| 102 | + padding: 0 vars.$s; |
100 | 103 | max-width: 80%;
|
101 | 104 | flex: 1;
|
102 | 105 | }
|
|
106 | 109 | display: flex;
|
107 | 110 | flex-direction: column;
|
108 | 111 | border: 1px solid #ddd;
|
109 |
| - @include lightDark(border-color, #ddd, #000); |
110 |
| - margin-bottom: $-l; |
| 112 | + @include mixins.lightDark(border-color, #ddd, #000); |
| 113 | + margin-bottom: vars.$l; |
111 | 114 | border-radius: 4px;
|
112 | 115 | overflow: hidden;
|
113 | 116 | min-width: 100px;
|
114 |
| - color: $text-dark; |
| 117 | + color: vars.$text-dark; |
115 | 118 | transition: border-color ease-in-out 120ms, box-shadow ease-in-out 120ms;
|
116 | 119 | &:hover {
|
117 |
| - color: $text-dark; |
| 120 | + color: vars.$text-dark; |
118 | 121 | text-decoration: none;
|
119 |
| - @include lightDark(box-shadow, $bs-card, $bs-card-dark); |
| 122 | + @include mixins.lightDark(box-shadow, vars.$bs-card, vars.$bs-card-dark); |
120 | 123 | }
|
121 | 124 | h2 {
|
122 | 125 | width: 100%;
|
|
134 | 137 | border-bottom-width: 2px;
|
135 | 138 | }
|
136 | 139 | .grid-card-content, .grid-card-footer {
|
137 |
| - padding: $-l; |
| 140 | + padding: vars.$l; |
138 | 141 | }
|
139 | 142 | .grid-card-content + .grid-card-footer {
|
140 | 143 | padding-top: 0;
|
|
149 | 152 | }
|
150 | 153 |
|
151 | 154 | .content-wrap.card {
|
152 |
| - padding: $-m $-xxl; |
| 155 | + padding: vars.$m vars.$xxl; |
153 | 156 | margin-inline-start: auto;
|
154 | 157 | margin-inline-end: auto;
|
155 |
| - margin-bottom: $-l; |
| 158 | + margin-bottom: vars.$l; |
156 | 159 | overflow: initial;
|
157 | 160 | min-height: 60vh;
|
158 | 161 | border-radius: 8px;
|
|
163 | 166 | width: 100%;
|
164 | 167 | }
|
165 | 168 | }
|
166 |
| -@include smaller-than($xxl) { |
| 169 | +@include mixins.smaller-than(vars.$bp-xxl) { |
167 | 170 | .content-wrap.card {
|
168 |
| - padding: $-m $-xl; |
| 171 | + padding: vars.$m vars.$xl; |
169 | 172 | }
|
170 | 173 | }
|
171 |
| -@include smaller-than($m) { |
| 174 | +@include mixins.smaller-than(vars.$bp-m) { |
172 | 175 | .content-wrap.card {
|
173 |
| - padding: $-m $-l; |
| 176 | + padding: vars.$m vars.$l; |
174 | 177 | }
|
175 | 178 | }
|
176 |
| -@include smaller-than($s) { |
| 179 | +@include mixins.smaller-than(vars.$bp-s) { |
177 | 180 | .content-wrap.card {
|
178 |
| - padding: $-m $-m; |
| 181 | + padding: vars.$m vars.$m; |
179 | 182 | }
|
180 | 183 | }
|
181 | 184 |
|
182 | 185 | .sub-card {
|
183 | 186 | box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
184 | 187 | border: 1.5px solid;
|
185 |
| - @include lightDark(border-color, #E2E2E2, #444); |
| 188 | + @include mixins.lightDark(border-color, #E2E2E2, #444); |
186 | 189 | border-radius: 4px;
|
187 | 190 | }
|
188 | 191 |
|
|
194 | 197 | }
|
195 | 198 |
|
196 | 199 | .fade-in-when-active {
|
197 |
| - @include lightDark(opacity, 0.6, 0.7); |
| 200 | + @include mixins.lightDark(opacity, 0.6, 0.7); |
198 | 201 | transition: opacity ease-in-out 120ms;
|
199 | 202 | &:hover, &:focus-within {
|
200 | 203 | opacity: 1 !important;
|
|
209 | 212 | */
|
210 | 213 | .tag-item {
|
211 | 214 | display: inline-flex;
|
212 |
| - margin-bottom: $-xs; |
213 |
| - margin-inline-end: $-xs; |
| 215 | + margin-bottom: vars.$xs; |
| 216 | + margin-inline-end: vars.$xs; |
214 | 217 | border-radius: 4px;
|
215 | 218 | border: 1px solid;
|
216 | 219 | overflow: hidden;
|
217 | 220 | font-size: 0.85em;
|
218 |
| - @include lightDark(border-color, #CCC, #666); |
| 221 | + @include mixins.lightDark(border-color, #CCC, #666); |
219 | 222 | a, span, a:hover, a:active {
|
220 | 223 | padding: 4px 8px;
|
221 |
| - @include lightDark(color, rgba(0, 0, 0, 0.7), rgba(255, 255, 255, 0.8)); |
| 224 | + @include mixins.lightDark(color, rgba(0, 0, 0, 0.7), rgba(255, 255, 255, 0.8)); |
222 | 225 | transition: background-color ease-in-out 80ms;
|
223 | 226 | text-decoration: none;
|
224 | 227 | }
|
225 | 228 | a:hover {
|
226 |
| - @include lightDark(background-color, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3)); |
| 229 | + @include mixins.lightDark(background-color, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3)); |
227 | 230 | }
|
228 | 231 | svg {
|
229 |
| - @include lightDark(fill, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.5)); |
| 232 | + @include mixins.lightDark(fill, rgba(0, 0, 0, 0.5), rgba(255, 255, 255, 0.5)); |
230 | 233 | }
|
231 | 234 | .tag-value {
|
232 | 235 | border-inline-start: 1px solid;
|
233 |
| - @include lightDark(border-color, #DDD, #666); |
234 |
| - @include lightDark(background-color, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)) |
| 236 | + @include mixins.lightDark(border-color, #DDD, #666); |
| 237 | + @include mixins.lightDark(background-color, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.2)) |
235 | 238 | }
|
236 | 239 | }
|
237 | 240 |
|
|
253 | 256 | .api-method {
|
254 | 257 | font-size: 0.75rem;
|
255 | 258 | background-color: #888;
|
256 |
| - padding: $-xs; |
| 259 | + padding: vars.$xs; |
257 | 260 | line-height: 1.3;
|
258 | 261 | opacity: 0.7;
|
259 | 262 | vertical-align: top;
|
|
271 | 274 |
|
272 | 275 | .sticky-sidebar {
|
273 | 276 | position: sticky;
|
274 |
| - top: $-m; |
275 |
| - max-height: calc(100vh - #{$-m}); |
| 277 | + top: vars.$m; |
| 278 | + max-height: calc(100vh - #{vars.$m}); |
276 | 279 | overflow-y: auto;
|
277 | 280 | }
|
0 commit comments