/
_variables.scss
182 lines (142 loc) · 4.19 KB
/
_variables.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
@charset "UTF-8";
/*doc
---
title: "Themes"
name: themes
category: Docs
subcategory: Variables
type: Map
---
This map holds configuration for all themes. Each theme has an icon, a color and a z-index, and a background offset.
#### Source {themes-source}
```scss
$themes: (
'error': (
'color': #d90b0b,
'index': 2147483647,
'background-offset': 1.4em
),
'warning': (
'color': #f50,
'index': 2147483646,
'background-offset': 2.9em
),
'obsolete': (
'color': royalblue,
'index': 2147483645,
'background-offset': 4.4em
),
'advice': (
'color': green,
'index': 2147483644,
'background-offset': 5.9em
),
);
```
#### Map structure {themes-map-structure}
| Name | Description | Type | Value |
|---------------------------|---------------------------|----------|-------|
| `theme` | — | `Map` | — |
| `theme.color` | Theme color | `Color` | — |
| `theme.index` | Theme `z-index` | `Number` | — |
| `theme.background-offset` | Theme `background-offset` | `Length` | — |
#### Used by {themes-usedby}
- [`set-minimum-level()` mixin](#Mixins-set-minimum-level)
- [`base-content()` mixin](#Mixins-base-content)
*/
$themes: (
'error': (
'color': #d90b0b,
'index': 2147483647,
'background-offset': 1.4em
),
'warning': (
'color': #f50,
'index': 2147483646,
'background-offset': 2.9em
),
'obsolete': (
'color': royalblue,
'index': 2147483645,
'background-offset': 4.4em
),
'advice': (
'color': green,
'index': 2147483644,
'background-offset': 5.9em
),
);
/*doc
---
title: "Disabled tests"
name: disabled-tests
category: Docs
subcategory: Variables
type: List
---
Map of disabled tests, referred by their key.
#### Source {disabled-tests-source}
```scss
$disabled-tests: ();
```
##### Used by {disabled-tests-usedby}
- [`disable-tests()` mixin](#Mixins-disable-tests)
*/
$disabled-tests: ();
/*doc
---
title: "Void tags"
name: void-tags
category: Docs
subcategory: Variables
type: List
---
Every HTML tag that do not allow generated content through pseudo-elements.
#### Source {void-tags-source}
```scss
$void-tags: area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr, textarea, select, svg, audio, video, iframe;
```
##### Used by {void-tags-usedby}
- [`void-tags()` mixin](#Mixins-void-tags)
##### References {void-tags-references}
* <https://thenewcode.com/461/What-The-Heck-Is-A-Replaced-Element>
* <https://la-cascade.io/articles/quest-ce-quun-element-remplace>
*/
$void-tags: area, base, br, col, command, embed, hr, img, input, keygen, link, meta, param, source, track, wbr, textarea, select, svg, audio, video, iframe;
/*doc
---
title: "File formats"
name: file-formats
category: Docs
subcategory: Variables
type: List
---
File formats used in a few selectors.
#### Source {file-formats-source}
```scss
$formats: pdf, doc, png, jpg, gif, ics, mp3, mp4, mov, ogg, xls, txt, zip, rar, docx, webp, apng, svg, svgz;
```
##### Used by {file-formats-usedby}
- ["Linking to a file" advice](/advices.html#file-format)
- ["`[alt]` containing file name" warning](/warnings.html#filename-alt)
*/
$formats: pdf, doc, png, jpg, gif, ics, mp3, mp4, mov, ogg, xls, txt, zip, rar, docx, webp, apng, svg, svgz;
/*doc
---
title: "Interactive elements"
name: interactive-elements
category: Docs
subcategory: Variables
type: List
---
Tags used in some selectors.
#### Source {interactive-elements-source}
```scss
$interactive: 'a[href]', 'audio[controls]', 'video[controls]', 'button', 'details', 'embed', 'iframe', 'img[usemap]', 'label', 'select', 'textarea', 'input[type]:not([hidden])';
```
##### Used by {interactive-elements-usedby}
- ["Nested interactive elements" error](/errors.html#nested-interactive)
##### References {interactive-elements-references}
* <https://html.spec.whatwg.org/multipage/dom.html#non-conforming-featuresdom.html#interactive-content-2>
*/
$interactive: 'a[href]', 'audio[controls]', 'video[controls]', 'button', 'details', 'embed', 'iframe', 'img[usemap]', 'label', 'select', 'textarea', 'input[type]:not([hidden])';