@primer/css 0.0.0-20220907220357 → 0.0.0-20220908000416
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/CHANGELOG.md +1 -1
- package/base/base.scss +1 -4
- package/base/typography-base.scss +11 -11
- package/dist/base.css +1 -1
- package/dist/base.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/meta.json +66 -66
- package/dist/primer.css +1 -1
- package/dist/primer.css.map +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/dist/stats/utilities.json +1 -1
- package/dist/utilities.css +1 -1
- package/dist/utilities.css.map +1 -1
- package/dist/variables.json +2 -2
- package/package.json +1 -1
- package/support/variables/typography.scss +1 -1
- package/utilities/typography.scss +19 -31
package/CHANGELOG.md
CHANGED
package/base/base.scss
CHANGED
|
@@ -15,7 +15,7 @@ button {
|
|
|
15
15
|
body {
|
|
16
16
|
font-family: $body-font;
|
|
17
17
|
font-size: $body-font-size;
|
|
18
|
-
line-height:
|
|
18
|
+
line-height: $body-line-height;
|
|
19
19
|
color: var(--color-fg-default);
|
|
20
20
|
background-color: var(--color-canvas-default);
|
|
21
21
|
}
|
|
@@ -117,7 +117,6 @@ input[type='checkbox'] {
|
|
|
117
117
|
a:not([class]),
|
|
118
118
|
input[type='radio'],
|
|
119
119
|
input[type='checkbox'] {
|
|
120
|
-
|
|
121
120
|
&:focus,
|
|
122
121
|
&:focus-visible {
|
|
123
122
|
outline-offset: 0;
|
|
@@ -131,7 +130,6 @@ input[type='checkbox'] {
|
|
|
131
130
|
|
|
132
131
|
// Windows High Contrast mode
|
|
133
132
|
@media (forced-colors: active) {
|
|
134
|
-
|
|
135
133
|
*:focus,
|
|
136
134
|
*:focus-visible {
|
|
137
135
|
outline: solid 1px transparent;
|
|
@@ -140,7 +138,6 @@ input[type='checkbox'] {
|
|
|
140
138
|
input:not([type='radio'], [type='checkbox']),
|
|
141
139
|
textarea,
|
|
142
140
|
select {
|
|
143
|
-
|
|
144
141
|
&:focus,
|
|
145
142
|
&:focus-visible {
|
|
146
143
|
outline-offset: 2px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Headings
|
|
2
2
|
// --------------------------------------------------
|
|
3
|
-
// stylelint-disable selector-max-type
|
|
3
|
+
// stylelint-disable selector-max-type primer/typography
|
|
4
4
|
h1,
|
|
5
5
|
h2,
|
|
6
6
|
h3,
|
|
@@ -13,38 +13,38 @@ h6 {
|
|
|
13
13
|
|
|
14
14
|
h1 {
|
|
15
15
|
font-size: $h1-size;
|
|
16
|
-
line-height: var(--primer-text-title-lineHeight-large);
|
|
17
16
|
font-weight: var(--primer-text-title-weight, 600);
|
|
17
|
+
line-height: var(--primer-text-title-lineHeight-large);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
h2 {
|
|
21
21
|
font-size: $h2-size;
|
|
22
|
-
line-height: var(--primer-text-title-lineHeight-medium);
|
|
23
22
|
font-weight: var(--primer-text-title-weight, 600);
|
|
23
|
+
line-height: var(--primer-text-title-lineHeight-medium);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
h3 {
|
|
27
|
-
font-size: $h3-size
|
|
28
|
-
line-height: var(--primer-text-subtitle-lineHeight);
|
|
27
|
+
font-size: $h3-size;
|
|
29
28
|
font-weight: var(--primer-text-subtitle-weight, 600);
|
|
29
|
+
line-height: var(--primer-text-subtitle-lineHeight);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
h4 {
|
|
33
|
-
font-size: $h4-size
|
|
34
|
-
line-height: var(--primer-text-body-lineHeight-large);
|
|
33
|
+
font-size: $h4-size;
|
|
35
34
|
font-weight: var(--primer-text-body-weight, 600);
|
|
35
|
+
line-height: var(--primer-text-body-lineHeight-large);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
h5 {
|
|
39
|
-
font-size: $h5-size
|
|
40
|
-
line-height: var(--primer-text-body-lineHeight-medium);
|
|
39
|
+
font-size: $h5-size;
|
|
41
40
|
font-weight: var(--primer-text-body-weight, 600);
|
|
41
|
+
line-height: var(--primer-text-body-lineHeight-medium);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
h6 {
|
|
45
|
-
font-size: $h6-size
|
|
46
|
-
line-height: var(--primer-text-body-lineHeight-small);
|
|
45
|
+
font-size: $h6-size;
|
|
47
46
|
font-weight: var(--primer-text-body-weight, 600);
|
|
47
|
+
line-height: var(--primer-text-body-lineHeight-small);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
// Body text
|
package/dist/base.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section{display:block}summary{display:list-item}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}template,[hidden]{display:none !important}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}svg:not(:root){overflow:hidden}code,kbd,pre,samp{font-family:monospace;font-size:1em}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}button,input,select,textarea{font:inherit;margin:0}optgroup{font-weight:600}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}*{box-sizing:border-box}input,select,textarea,button{font-family:inherit;font-size:inherit;line-height:inherit}body{font-family:var(--primer-fontStack-system, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji");font-size:var(--primer-text-body-size-medium, 14px);line-height:
|
|
1
|
+
/*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,main,menu,nav,section{display:block}summary{display:list-item}audio,canvas,progress,video{display:inline-block}audio:not([controls]){display:none;height:0}progress{vertical-align:baseline}template,[hidden]{display:none !important}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}dfn{font-style:italic}h1{font-size:2em;margin:.67em 0}mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}img{border-style:none}svg:not(:root){overflow:hidden}code,kbd,pre,samp{font-family:monospace;font-size:1em}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}button,input,select,textarea{font:inherit;margin:0}optgroup{font-weight:600}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}*{box-sizing:border-box}input,select,textarea,button{font-family:inherit;font-size:inherit;line-height:inherit}body{font-family:var(--primer-fontStack-system, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji");font-size:var(--primer-text-body-size-medium, 14px);line-height:1.5;color:var(--color-fg-default);background-color:var(--color-canvas-default)}a{color:var(--color-accent-fg);text-decoration:none}a:hover{text-decoration:underline}b,strong{font-weight:600}hr,.rule{height:0;margin:var(--base-size-16, 15px) 0;overflow:hidden;background:transparent;border:0;border-bottom:1px solid var(--color-border-muted)}hr::before,.rule::before{display:table;content:""}hr::after,.rule::after{display:table;clear:both;content:""}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}button{cursor:pointer;border-radius:0}[hidden][hidden]{display:none !important}details summary{cursor:pointer}details:not([open])>*:not(summary){display:none !important}a:focus,button:focus,[role=button]:focus,input[type=radio]:focus,input[type=checkbox]:focus{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}a:focus:not(:focus-visible),button:focus:not(:focus-visible),[role=button]:focus:not(:focus-visible),input[type=radio]:focus:not(:focus-visible),input[type=checkbox]:focus:not(:focus-visible){outline:solid 1px transparent}a:focus-visible,button:focus-visible,[role=button]:focus-visible,input[type=radio]:focus-visible,input[type=checkbox]:focus-visible{outline:2px solid var(--color-accent-fg);outline-offset:-2px;box-shadow:none}a:not([class]):focus,a:not([class]):focus-visible,input[type=radio]:focus,input[type=radio]:focus-visible,input[type=checkbox]:focus,input[type=checkbox]:focus-visible{outline-offset:0}.focus{border-color:var(--color-accent-fg);outline:none;box-shadow:inset 0 0 0 1px var(--color-accent-fg)}@media(forced-colors: active){*:focus,*:focus-visible{outline:solid 1px transparent}input:not([type=radio],[type=checkbox]):focus,input:not([type=radio],[type=checkbox]):focus-visible,textarea:focus,textarea:focus-visible,select:focus,select:focus-visible{outline-offset:2px}}kbd{display:inline-block;padding:3px 5px;font:11px var(--primer-fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:0}h1{font-size:var(--primer-text-title-size-large, 32px);font-weight:var(--primer-text-title-weight, 600);line-height:var(--primer-text-title-lineHeight-large)}h2{font-size:var(--primer-text-title-size-medium, 24px);font-weight:var(--primer-text-title-weight, 600);line-height:var(--primer-text-title-lineHeight-medium)}h3{font-size:var(--primer-text-subtitle-size, 20px);font-weight:var(--primer-text-subtitle-weight, 600);line-height:var(--primer-text-subtitle-lineHeight)}h4{font-size:var(--primer-text-body-size-large, 16px);font-weight:var(--primer-text-body-weight, 600);line-height:var(--primer-text-body-lineHeight-large)}h5{font-size:var(--primer-text-body-size-medium, 14px);font-weight:var(--primer-text-body-weight, 600);line-height:var(--primer-text-body-lineHeight-medium)}h6{font-size:var(--primer-text-body-size-small, 12px);font-weight:var(--primer-text-body-weight, 600);line-height:var(--primer-text-body-lineHeight-small)}p{margin-top:0;margin-bottom:var(--base-size-8, 10px)}small{font-size:90%}blockquote{margin:0}ul,ol{padding-left:0;margin-top:0;margin-bottom:0}ol ol,ul ol{list-style-type:lower-roman}ul ul ol,ul ol ol,ol ul ol,ol ol ol{list-style-type:lower-alpha}dd{margin-left:0}tt,code,samp{font-family:var(--primer-fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:var(--primer-text-body-size-small, 12px)}pre{margin-top:0;margin-bottom:0;font-family:var(--primer-fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);font-size:var(--primer-text-body-size-small, 12px)}.octicon{vertical-align:text-bottom}.octicon{display:inline-block;overflow:visible !important;vertical-align:text-bottom;fill:currentColor}
|
|
2
2
|
/*# sourceMappingURL=base.css.map */
|
package/dist/base.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["file:///home/runner/work/css/css/src/base/index.scss%23sass"],"names":[],"mappings":"AAyeA,2EAAA,CAAA,KAAA,sBAAA,CAAA,yBAAA,CAAA,6BAAA,CAAA,KAAA,QAAA,CAAA,4EAAA,aAAA,CAAA,QAAA,iBAAA,CAAA,4BAAA,oBAAA,CAAA,sBAAA,YAAA,CAAA,QAAA,CAAA,SAAA,uBAAA,CAAA,kBAAA,uBAAA,CAAA,EAAA,4BAAA,CAAA,YAAA,kBAAA,CAAA,yBAAA,CAAA,gCAAA,CAAA,SAAA,mBAAA,CAAA,SAAA,kBAAA,CAAA,IAAA,iBAAA,CAAA,GAAA,aAAA,CAAA,cAAA,CAAA,KAAA,8CAAA,CAAA,+BAAA,CAAA,MAAA,aAAA,CAAA,QAAA,aAAA,CAAA,aAAA,CAAA,iBAAA,CAAA,uBAAA,CAAA,IAAA,cAAA,CAAA,IAAA,UAAA,CAAA,IAAA,iBAAA,CAAA,eAAA,eAAA,CAAA,kBAAA,qBAAA,CAAA,aAAA,CAAA,OAAA,eAAA,CAAA,GAAA,sBAAA,CAAA,QAAA,CAAA,gBAAA,CAAA,6BAAA,YAAA,CAAA,QAAA,CAAA,SAAA,eAAA,CAAA,aAAA,gBAAA,CAAA,cAAA,mBAAA,CAAA,qDAAA,yBAAA,CAAA,SAAA,uBAAA,CAAA,YAAA,CAAA,0BAAA,CAAA,OAAA,qBAAA,CAAA,aAAA,CAAA,aAAA,CAAA,cAAA,CAAA,SAAA,CAAA,kBAAA,CAAA,SAAA,aAAA,CAAA,6BAAA,qBAAA,CAAA,SAAA,CAAA,kFAAA,WAAA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