@papillonarts/css 0.1.0 → 0.2.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/build/index.scss +1 -3
- package/build/primer/base/base.scss +164 -0
- package/build/primer/base/index.scss +6 -0
- package/build/primer/base/kbd.scss +23 -0
- package/build/primer/base/normalize.scss +381 -0
- package/build/primer/base/octicons.scss +6 -0
- package/build/primer/base/typography-base.scss +92 -0
- package/build/primer/color-modes/index.scss +12 -0
- package/build/primer/color-modes/native.scss +22 -0
- package/build/primer/color-modes/themes/dark.scss +6 -0
- package/build/primer/color-modes/themes/dark_colorblind.scss +6 -0
- package/build/primer/color-modes/themes/dark_dimmed.scss +6 -0
- package/build/primer/color-modes/themes/dark_high_contrast.scss +6 -0
- package/build/primer/color-modes/themes/dark_tritanopia.scss +6 -0
- package/build/primer/color-modes/themes/light.scss +6 -0
- package/build/primer/color-modes/themes/light_colorblind.scss +6 -0
- package/build/primer/color-modes/themes/light_high_contrast.scss +6 -0
- package/build/primer/color-modes/themes/light_tritanopia.scss +6 -0
- package/build/primer/index.scss +6 -0
- package/build/primer/support/index.scss +10 -0
- package/build/primer/support/mixins/color-modes.scss +111 -0
- package/build/primer/support/mixins/layout.scss +61 -0
- package/build/primer/support/mixins/misc.scss +73 -0
- package/build/primer/support/mixins/typography.scss +93 -0
- package/build/primer/support/variables/layout.scss +230 -0
- package/build/primer/support/variables/misc.scss +18 -0
- package/build/primer/support/variables/typography.scss +43 -0
- package/build/primer/truncate/index.scss +2 -0
- package/build/primer/truncate/truncate.scss +66 -0
- package/build/primer/utilities/animations.scss +196 -0
- package/build/primer/utilities/borders.scss +78 -0
- package/build/primer/utilities/box-shadow.scss +27 -0
- package/build/primer/utilities/colors.scss +95 -0
- package/build/primer/utilities/details.scss +107 -0
- package/build/primer/utilities/flexbox.scss +54 -0
- package/build/primer/utilities/index.scss +14 -0
- package/build/primer/utilities/layout.scss +98 -0
- package/build/primer/utilities/margin.scss +74 -0
- package/build/primer/utilities/padding.scss +59 -0
- package/build/primer/utilities/typography.scss +335 -0
- package/build/primer/utilities/visibility-display.scss +125 -0
- package/package.json +2 -2
package/build/index.scss
CHANGED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@import "../support/mixins/misc.scss";
|
|
2
|
+
@import "../support/variables/typography.scss";
|
|
3
|
+
@import "../support/variables/misc.scss";
|
|
4
|
+
|
|
5
|
+
// stylelint-disable selector-max-type, selector-no-qualifying-type
|
|
6
|
+
* {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
input,
|
|
11
|
+
select,
|
|
12
|
+
textarea,
|
|
13
|
+
button {
|
|
14
|
+
font-family: inherit;
|
|
15
|
+
font-size: inherit;
|
|
16
|
+
line-height: inherit;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
font-family: $body-font;
|
|
21
|
+
font-size: var(--body-font-size, $body-font-size);
|
|
22
|
+
line-height: $body-line-height;
|
|
23
|
+
color: var(--color-fg-default);
|
|
24
|
+
background-color: var(--color-canvas-default);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
a {
|
|
28
|
+
color: var(--color-accent-fg);
|
|
29
|
+
text-decoration: none;
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
text-decoration: underline;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
b,
|
|
37
|
+
strong {
|
|
38
|
+
font-weight: $font-weight-bold;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
fieldset {
|
|
42
|
+
padding: 0;
|
|
43
|
+
margin: 0;
|
|
44
|
+
border: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
label {
|
|
48
|
+
font-weight: $font-weight-bold;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Custom styling for HTML5 validation bubbles (WebKit only)
|
|
52
|
+
::placeholder {
|
|
53
|
+
color: var(--color-fg-subtle);
|
|
54
|
+
opacity: 1; // override opacity in normalize.css
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Horizontal lines
|
|
58
|
+
//
|
|
59
|
+
// TODO-MDO: Remove `.rule` from everywhere and replace with `<hr>`s
|
|
60
|
+
hr,
|
|
61
|
+
.rule {
|
|
62
|
+
height: 0;
|
|
63
|
+
// stylelint-disable-next-line primer/spacing
|
|
64
|
+
margin: 15px 0;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
background: transparent;
|
|
67
|
+
border: 0;
|
|
68
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
|
69
|
+
|
|
70
|
+
@include clearfix();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
//
|
|
74
|
+
// Remove most spacing between table cells.
|
|
75
|
+
//
|
|
76
|
+
|
|
77
|
+
table {
|
|
78
|
+
border-spacing: 0;
|
|
79
|
+
border-collapse: collapse;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
td,
|
|
83
|
+
th {
|
|
84
|
+
padding: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
button {
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
// Remove border radius added by Chrome macOS
|
|
90
|
+
border-radius: 0;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// increase the selector specificity for [hidden]
|
|
94
|
+
// so that it always overrides utility classes (.d-block, etc.)
|
|
95
|
+
[hidden][hidden] {
|
|
96
|
+
display: none !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
details {
|
|
100
|
+
summary {
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:not([open]) {
|
|
105
|
+
// Set details content hidden by default for browsers that don't do this
|
|
106
|
+
> *:not(summary) {
|
|
107
|
+
display: none !important;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// global focus styles
|
|
113
|
+
|
|
114
|
+
a,
|
|
115
|
+
button,
|
|
116
|
+
[role='button'],
|
|
117
|
+
input[type='radio'],
|
|
118
|
+
input[type='checkbox'] {
|
|
119
|
+
// fallback :focus state
|
|
120
|
+
&:focus {
|
|
121
|
+
@include focusOutline;
|
|
122
|
+
|
|
123
|
+
// remove fallback :focus if :focus-visible is supported
|
|
124
|
+
&:not(:focus-visible) {
|
|
125
|
+
outline: solid 1px transparent;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// default focus state
|
|
130
|
+
&:focus-visible {
|
|
131
|
+
@include focusOutline;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
a:not([class]),
|
|
136
|
+
input[type='radio'],
|
|
137
|
+
input[type='checkbox'] {
|
|
138
|
+
&:focus,
|
|
139
|
+
&:focus-visible {
|
|
140
|
+
outline-offset: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
// for handling focus conditionally
|
|
145
|
+
.focus {
|
|
146
|
+
@include focusBoxShadowInset;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// Windows High Contrast mode
|
|
150
|
+
@media (forced-colors: active) {
|
|
151
|
+
*:focus,
|
|
152
|
+
*:focus-visible {
|
|
153
|
+
outline: solid 1px transparent;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
input:not([type='radio'], [type='checkbox']),
|
|
157
|
+
textarea,
|
|
158
|
+
select {
|
|
159
|
+
&:focus,
|
|
160
|
+
&:focus-visible {
|
|
161
|
+
outline-offset: 2px;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import "../support/variables/layout.scss";
|
|
2
|
+
@import "../support/variables/typography.scss";
|
|
3
|
+
@import "../support/variables/misc.scss";
|
|
4
|
+
|
|
5
|
+
// Keyboard shortcuts
|
|
6
|
+
// stylelint-disable selector-max-type
|
|
7
|
+
|
|
8
|
+
kbd {
|
|
9
|
+
display: inline-block;
|
|
10
|
+
padding: ($spacer-1 - 1) ($spacer-1 + 1);
|
|
11
|
+
font: 11px $mono-font;
|
|
12
|
+
// stylelint-disable-next-line primer/typography
|
|
13
|
+
line-height: 10px;
|
|
14
|
+
color: var(--color-fg-default);
|
|
15
|
+
vertical-align: middle;
|
|
16
|
+
background-color: var(--color-canvas-subtle);
|
|
17
|
+
// stylelint-disable-next-line primer/borders
|
|
18
|
+
border: $border-style $border-width var(--color-neutral-muted);
|
|
19
|
+
border-bottom-color: var(--color-neutral-muted);
|
|
20
|
+
border-radius: $border-radius;
|
|
21
|
+
// stylelint-disable-next-line primer/box-shadow
|
|
22
|
+
box-shadow: inset 0 -1px 0 var(--color-neutral-muted);
|
|
23
|
+
}
|
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
// stylelint-disable
|
|
2
|
+
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 1. Change the default font family in all browsers (opinionated).
|
|
6
|
+
* 2. Prevent adjustments of font size after orientation changes in IE and iOS.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
html {
|
|
10
|
+
font-family: sans-serif; /* 1 */
|
|
11
|
+
-ms-text-size-adjust: 100%; /* 2 */
|
|
12
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Remove the margin in all browsers (opinionated).
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* HTML5 display definitions
|
|
24
|
+
========================================================================== */
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Add the correct display in IE 9-.
|
|
28
|
+
* 1. Add the correct display in Edge, IE, and Firefox.
|
|
29
|
+
* 2. Add the correct display in IE.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
article,
|
|
33
|
+
aside,
|
|
34
|
+
details, /* 1 */
|
|
35
|
+
figcaption,
|
|
36
|
+
figure,
|
|
37
|
+
footer,
|
|
38
|
+
header,
|
|
39
|
+
main, /* 2 */
|
|
40
|
+
menu,
|
|
41
|
+
nav,
|
|
42
|
+
section {
|
|
43
|
+
/* 1 */
|
|
44
|
+
display: block;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
summary {
|
|
48
|
+
display: list-item;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Add the correct display in IE 9-.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
audio,
|
|
56
|
+
canvas,
|
|
57
|
+
progress,
|
|
58
|
+
video {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Add the correct display in iOS 4-7.
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
audio:not([controls]) {
|
|
67
|
+
display: none;
|
|
68
|
+
height: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
progress {
|
|
76
|
+
vertical-align: baseline;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Add the correct display in IE 10-.
|
|
81
|
+
* 1. Add the correct display in IE.
|
|
82
|
+
*/
|
|
83
|
+
|
|
84
|
+
template, /* 1 */
|
|
85
|
+
[hidden] {
|
|
86
|
+
display: none !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* Links
|
|
90
|
+
========================================================================== */
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Remove the gray background on active links in IE 10.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
a {
|
|
97
|
+
background-color: transparent; /* 1 */
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Text-level semantics
|
|
101
|
+
========================================================================== */
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* 1. Remove the bottom border in Firefox 39-.
|
|
105
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
abbr[title] {
|
|
109
|
+
border-bottom: none; /* 1 */
|
|
110
|
+
text-decoration: underline; /* 2 */
|
|
111
|
+
text-decoration: underline dotted; /* 2 */
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Prevent the duplicate application of `bolder` by the next rule in Safari 6.
|
|
116
|
+
*/
|
|
117
|
+
|
|
118
|
+
b,
|
|
119
|
+
strong {
|
|
120
|
+
font-weight: inherit;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
|
125
|
+
*/
|
|
126
|
+
|
|
127
|
+
b,
|
|
128
|
+
strong {
|
|
129
|
+
font-weight: bolder;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Add the correct font style in Android 4.3-.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
dfn {
|
|
137
|
+
font-style: italic;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
|
142
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
h1 {
|
|
146
|
+
font-size: 2em;
|
|
147
|
+
margin: 0.67em 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Add the correct background and color in IE 9-.
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
mark {
|
|
155
|
+
background-color: var(--color-attention-subtle);
|
|
156
|
+
color: var(--color-fg-default);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Add the correct font size in all browsers.
|
|
161
|
+
*/
|
|
162
|
+
|
|
163
|
+
small {
|
|
164
|
+
font-size: 80%;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
|
169
|
+
* all browsers.
|
|
170
|
+
*/
|
|
171
|
+
|
|
172
|
+
sub,
|
|
173
|
+
sup {
|
|
174
|
+
font-size: 75%;
|
|
175
|
+
line-height: 0;
|
|
176
|
+
position: relative;
|
|
177
|
+
vertical-align: baseline;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
sub {
|
|
181
|
+
bottom: -0.25em;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
sup {
|
|
185
|
+
top: -0.5em;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Embedded content
|
|
189
|
+
========================================================================== */
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* Remove the border on images inside links in IE 10-.
|
|
193
|
+
*/
|
|
194
|
+
|
|
195
|
+
img {
|
|
196
|
+
border-style: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Hide the overflow in IE.
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
svg:not(:root) {
|
|
204
|
+
overflow: hidden;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/* Grouping content
|
|
208
|
+
========================================================================== */
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
|
212
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
|
213
|
+
*/
|
|
214
|
+
|
|
215
|
+
code,
|
|
216
|
+
kbd,
|
|
217
|
+
pre,
|
|
218
|
+
samp {
|
|
219
|
+
font-family: monospace; /* 1 */
|
|
220
|
+
font-size: 1em; /* 2 */
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Add the correct margin in IE 8.
|
|
225
|
+
*/
|
|
226
|
+
|
|
227
|
+
figure {
|
|
228
|
+
margin: 1em $spacer-6;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* 1. Add the correct box sizing in Firefox.
|
|
233
|
+
* 2. Show the overflow in Edge and IE.
|
|
234
|
+
*/
|
|
235
|
+
|
|
236
|
+
hr {
|
|
237
|
+
box-sizing: content-box; /* 1 */
|
|
238
|
+
height: 0; /* 1 */
|
|
239
|
+
overflow: visible; /* 2 */
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/* Forms
|
|
243
|
+
========================================================================== */
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* 1. Change font properties to `inherit` in all browsers (opinionated).
|
|
247
|
+
* 2. Remove the margin in Firefox and Safari.
|
|
248
|
+
*/
|
|
249
|
+
|
|
250
|
+
button,
|
|
251
|
+
input,
|
|
252
|
+
select,
|
|
253
|
+
textarea {
|
|
254
|
+
font: inherit; /* 1 */
|
|
255
|
+
margin: 0; /* 2 */
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Restore the font weight unset by the previous rule.
|
|
260
|
+
*/
|
|
261
|
+
|
|
262
|
+
optgroup {
|
|
263
|
+
font-weight: $font-weight-bold;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Show the overflow in IE.
|
|
268
|
+
* 1. Show the overflow in Edge.
|
|
269
|
+
*/
|
|
270
|
+
|
|
271
|
+
button,
|
|
272
|
+
input {
|
|
273
|
+
/* 1 */
|
|
274
|
+
overflow: visible;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
|
279
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
|
280
|
+
*/
|
|
281
|
+
|
|
282
|
+
button,
|
|
283
|
+
select {
|
|
284
|
+
/* 1 */
|
|
285
|
+
text-transform: none;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
|
|
290
|
+
* controls in Android 4.
|
|
291
|
+
* 2. Correct the inability to style clickable types in iOS and Safari.
|
|
292
|
+
*/
|
|
293
|
+
|
|
294
|
+
button,
|
|
295
|
+
html [type="button"], /* 1 */
|
|
296
|
+
[type="reset"],
|
|
297
|
+
[type="submit"] {
|
|
298
|
+
-webkit-appearance: button; /* 2 */
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Change the border, margin, and padding in all browsers (opinionated).
|
|
303
|
+
*/
|
|
304
|
+
|
|
305
|
+
fieldset {
|
|
306
|
+
border: $border-width $border-style #c0c0c0;
|
|
307
|
+
margin: 0 2px;
|
|
308
|
+
padding: 0.35em 0.625em $em-spacer-6;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* 1. Correct the text wrapping in Edge and IE.
|
|
313
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
|
314
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
|
315
|
+
* `fieldset` elements in all browsers.
|
|
316
|
+
*/
|
|
317
|
+
|
|
318
|
+
legend {
|
|
319
|
+
box-sizing: border-box; /* 1 */
|
|
320
|
+
color: inherit; /* 2 */
|
|
321
|
+
display: table; /* 1 */
|
|
322
|
+
max-width: 100%; /* 1 */
|
|
323
|
+
padding: 0; /* 3 */
|
|
324
|
+
white-space: normal; /* 1 */
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Remove the default vertical scrollbar in IE.
|
|
329
|
+
*/
|
|
330
|
+
|
|
331
|
+
textarea {
|
|
332
|
+
overflow: auto;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* 1. Add the correct box sizing in IE 10-.
|
|
337
|
+
* 2. Remove the padding in IE 10-.
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
[type='checkbox'],
|
|
341
|
+
[type='radio'] {
|
|
342
|
+
box-sizing: border-box; /* 1 */
|
|
343
|
+
padding: 0; /* 2 */
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
|
348
|
+
*/
|
|
349
|
+
|
|
350
|
+
[type='number']::-webkit-inner-spin-button,
|
|
351
|
+
[type='number']::-webkit-outer-spin-button {
|
|
352
|
+
height: auto;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
/**
|
|
356
|
+
* Remove the inner padding and cancel buttons in Chrome and Safari on OS X.
|
|
357
|
+
*/
|
|
358
|
+
|
|
359
|
+
[type='search']::-webkit-search-cancel-button,
|
|
360
|
+
[type='search']::-webkit-search-decoration {
|
|
361
|
+
-webkit-appearance: none;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
* Correct the text style of placeholders in Chrome, Edge, and Safari.
|
|
366
|
+
*/
|
|
367
|
+
|
|
368
|
+
::-webkit-input-placeholder {
|
|
369
|
+
color: inherit;
|
|
370
|
+
opacity: 0.54;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
|
375
|
+
* 2. Change font properties to `inherit` in Safari.
|
|
376
|
+
*/
|
|
377
|
+
|
|
378
|
+
::-webkit-file-upload-button {
|
|
379
|
+
-webkit-appearance: button; /* 1 */
|
|
380
|
+
font: inherit; /* 2 */
|
|
381
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@import "../support/variables/typography.scss";
|
|
2
|
+
@import "../support/mixins/typography.scss";
|
|
3
|
+
|
|
4
|
+
// Headings
|
|
5
|
+
// --------------------------------------------------
|
|
6
|
+
// stylelint-disable selector-max-type
|
|
7
|
+
h1,
|
|
8
|
+
h2,
|
|
9
|
+
h3,
|
|
10
|
+
h4,
|
|
11
|
+
h5,
|
|
12
|
+
h6 {
|
|
13
|
+
margin-top: 0;
|
|
14
|
+
margin-bottom: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
h1 { @include h1; }
|
|
18
|
+
h2 { @include h2; }
|
|
19
|
+
h3 { @include h3; }
|
|
20
|
+
h4 { @include h4; }
|
|
21
|
+
h5 { @include h5; }
|
|
22
|
+
h6 { @include h6; }
|
|
23
|
+
|
|
24
|
+
// Body text
|
|
25
|
+
// --------------------------------------------------
|
|
26
|
+
|
|
27
|
+
p {
|
|
28
|
+
margin-top: 0;
|
|
29
|
+
// stylelint-disable-next-line primer/spacing
|
|
30
|
+
margin-bottom: 10px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
small {
|
|
34
|
+
// stylelint-disable-next-line primer/typography
|
|
35
|
+
font-size: 90%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
blockquote {
|
|
39
|
+
margin: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// Lists
|
|
43
|
+
// --------------------------------------------------
|
|
44
|
+
|
|
45
|
+
ul,
|
|
46
|
+
ol {
|
|
47
|
+
padding-left: 0;
|
|
48
|
+
margin-top: 0;
|
|
49
|
+
margin-bottom: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
ol ol,
|
|
53
|
+
ul ol {
|
|
54
|
+
list-style-type: lower-roman;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
ul ul ol,
|
|
58
|
+
ul ol ol,
|
|
59
|
+
ol ul ol,
|
|
60
|
+
ol ol ol {
|
|
61
|
+
list-style-type: lower-alpha;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
dd {
|
|
65
|
+
margin-left: 0;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Monospaced
|
|
69
|
+
// --------------------------------------------------
|
|
70
|
+
|
|
71
|
+
tt,
|
|
72
|
+
code,
|
|
73
|
+
samp {
|
|
74
|
+
font-family: $mono-font;
|
|
75
|
+
font-size: $font-size-small;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
pre {
|
|
79
|
+
margin-top: 0;
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
font-family: $mono-font;
|
|
82
|
+
font-size: $font-size-small;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Octicons
|
|
86
|
+
// --------------------------------------------------
|
|
87
|
+
|
|
88
|
+
// Move this over here as a temporary override to the octicons source repo
|
|
89
|
+
// instead of updating that upstream.
|
|
90
|
+
.octicon {
|
|
91
|
+
vertical-align: text-bottom;
|
|
92
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// All themes
|
|
2
|
+
|
|
3
|
+
@import './themes/light.scss';
|
|
4
|
+
@import './themes/light_colorblind.scss';
|
|
5
|
+
@import './themes/light_high_contrast.scss';
|
|
6
|
+
@import './themes/light_tritanopia.scss';
|
|
7
|
+
@import './themes/dark.scss';
|
|
8
|
+
@import './themes/dark_dimmed.scss';
|
|
9
|
+
@import './themes/dark_high_contrast.scss';
|
|
10
|
+
@import './themes/dark_colorblind.scss';
|
|
11
|
+
@import './themes/dark_tritanopia.scss';
|
|
12
|
+
@import './native.scss';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// color-scheme
|
|
2
|
+
// Enables color modes for native elements
|
|
3
|
+
|
|
4
|
+
@include color-mode(light) { color-scheme: light; }
|
|
5
|
+
|
|
6
|
+
@include color-mode(dark) { color-scheme: dark; }
|
|
7
|
+
|
|
8
|
+
[data-color-mode] {
|
|
9
|
+
color: var(--color-fg-default);
|
|
10
|
+
background-color: var(--color-canvas-default);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Windows High Contrast mode
|
|
14
|
+
|
|
15
|
+
// Improves focus state for various components when Windows High Contrast mode is enabled
|
|
16
|
+
// stylelint-disable selector-max-type
|
|
17
|
+
@media (forced-colors: active) {
|
|
18
|
+
body {
|
|
19
|
+
--color-accent-emphasis: Highlight;
|
|
20
|
+
--color-fg-on-emphasis: LinkText;
|
|
21
|
+
}
|
|
22
|
+
}
|