summaryrefslogtreecommitdiffstats
path: root/assets/css/_basics.scss
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/_basics.scss')
-rw-r--r--assets/css/_basics.scss85
1 files changed, 42 insertions, 43 deletions
diff --git a/assets/css/_basics.scss b/assets/css/_basics.scss
index 1cd5547..740b293 100644
--- a/assets/css/_basics.scss
+++ b/assets/css/_basics.scss
@@ -1,28 +1,27 @@
1@font-face { 1@font-face {
2 font-family: 'IBM Plex Sans'; 2 font-family: 'IBM Plex Sans';
3 font-style: normal; 3 font-style: normal;
4 font-weight: normal; 4 font-weight: normal;
5 src: //local('IBM Plex Sans'), 5 src: url('/IBMPlexSans-Regular.woff2') format('woff2');
6 url('/IBMPlexSans-Regular.woff2') format('woff2');
7} 6}
8 7
9@font-face { 8@font-face {
10 font-family: 'IBM Plex Sans'; 9 font-family: 'IBM Plex Sans';
11 font-style: normal; 10 font-style: normal;
12 font-weight: bold; 11 font-weight: bold;
13 src: url('/IBMPlexSans-Bold.woff2') format('woff2'); 12 src: url('/IBMPlexSans-Bold.woff2') format('woff2');
14} 13}
15 14
16@font-face { 15@font-face {
17 font-family: 'Garet Variable'; 16 font-family: 'Garet Variable';
18 font-style: normal; 17 font-style: normal;
19 font-weight: 50 950; 18 font-weight: 50 950;
20 src: url('/GaretVariable.woff2') format('woff2-variations'); 19 src: url('/GaretVariable.woff2') format('woff2-variations');
21} 20}
22 21
23::selection { 22::selection {
24 background-color: var(--select--bg); 23 background-color: var(--select--bg);
25 color: var(--select--fg); 24 color: var(--select--fg);
26} 25}
27 26
28img::selection { 27img::selection {
@@ -37,14 +36,14 @@ code {
37 36
38html { 37html {
39 background-color: prop(--colors --bg); 38 background-color: prop(--colors --bg);
40 color: prop(--colors --fg); 39 color: prop(--colors --fg);
41 font-family: $font-fam--text; 40 font-family: $font-fam--text;
42 font-size: px-to-em($font-size, 16px); 41 font-size: px-to-em($font-size, 16px);
43 line-height: $line-height; 42 line-height: $line-height;
44} 43}
45 44
46body { 45body {
47 margin: 0; 46 margin: 0;
48 padding: 0; 47 padding: 0;
49} 48}
50 49
@@ -58,7 +57,7 @@ code {
58} 57}
59 58
60pre { 59pre {
61 margin: ($line-height * 1em) 0 0; 60 margin: ($line-height * 1em) 0 0;
62 overflow-x: auto; 61 overflow-x: auto;
63 62
64 code { 63 code {
@@ -67,27 +66,27 @@ pre {
67} 66}
68 67
69strong { 68strong {
70 color: prop(--colors --fg-lo); 69 color: prop(--colors --fg-lo);
71 font-weight: bold; 70 font-weight: bold;
72} 71}
73 72
74ul, 73ul,
75ol { 74ol {
76 margin: ($line-height * 1em) 0 0; 75 margin: ($line-height * 1em) 0 0;
77 padding: 0; 76 padding: 0;
78 list-style: none; 77 list-style: none;
79} 78}
80 79
81li { 80li {
82 position: relative; 81 position: relative;
83 padding-left: $subcontent--indent; 82 padding-left: $subcontent--indent;
84 83
85 &::before { 84 &::before {
86 display: inline-block; 85 display: inline-block;
87 position: absolute; 86 position: absolute;
88 width: $subcontent--indent; 87 width: $subcontent--indent;
89 margin-left: -1 * $subcontent--indent; 88 margin-left: -1 * $subcontent--indent;
90 color: prop(--colors --fg-hi); 89 color: prop(--colors --fg-hi);
91 font-family: $font-fam--mono; 90 font-family: $font-fam--mono;
92 } 91 }
93} 92}
@@ -113,7 +112,7 @@ ul ul {
113} 112}
114 113
115dl { 114dl {
116 margin: ($line-height * 1em) 0 0; 115 margin: ($line-height * 1em) 0 0;
117 padding: 0; 116 padding: 0;
118} 117}
119 118
@@ -123,12 +122,12 @@ dd {
123} 122}
124 123
125dt { 124dt {
126 color: prop(--colors --fg-lo); 125 color: prop(--colors --fg-lo);
127 font-weight: bold; 126 font-weight: bold;
128 127
129 &::after { 128 &::after {
130 content: ':'; 129 content: ':';
131 color: prop(--colors --fg); 130 color: prop(--colors --fg);
132 font-weight: normal; 131 font-weight: normal;
133 } 132 }
134} 133}
@@ -143,11 +142,11 @@ h3,
143h4, 142h4,
144h5, 143h5,
145h6 { 144h6 {
146 margin: ($line-height * 2em) 0 0; 145 margin: ($line-height * 2em) 0 0;
147 font-family: $font-fam--large; 146 font-family: $font-fam--large;
148 font-size: 1em; 147 font-size: 1em;
149 font-weight: 600; 148 font-weight: 600;
150 line-height: 1.2; 149 line-height: 1.2;
151 font-feature-settings: 'ss02' 1; 150 font-feature-settings: 'ss02' 1;
152 151
153 + h1, 152 + h1,
@@ -170,22 +169,22 @@ h1 {
170} 169}
171 170
172p { 171p {
173 margin: ($line-height * 1em) 0 0; 172 margin: ($line-height * 1em) 0 0;
174 hyphens: auto; 173 hyphens: auto;
175} 174}
176 175
177:link, 176:link,
178:visited { 177:visited {
179 position: relative; 178 position: relative;
180 z-index: 1; 179 z-index: 1;
181 margin: 0 -.3em; 180 margin: 0 -.3em;
182 padding: .2em .3em; 181 padding: .2em .3em;
183 color: var(--link--idle--fg); 182 color: var(--link--idle--fg);
184 183
185 &:hover { 184 &:hover {
186 background-color: var(--link--hover--bg); 185 background-color: var(--link--hover--bg);
187 color: var(--link--hover--fg); 186 color: var(--link--hover--fg);
188 text-decoration: none; 187 text-decoration: none;
189 } 188 }
190 189
191 strong { 190 strong {
@@ -194,15 +193,15 @@ p {
194} 193}
195 194
196hr { 195hr {
197 height: 1px; 196 height: 1px;
198 margin: ($line-height * 1em) 0; 197 margin: ($line-height * 1em) 0;
199 border: 0; 198 border: 0;
200 background-color: prop(--colors --obj); 199 background-color: prop(--colors --obj);
201} 200}
202 201
203blockquote, 202blockquote,
204pre { 203pre {
205 margin: ($line-height * 1em) 0 0 1px; 204 margin: ($line-height * 1em) 0 0 1px;
206 padding-left: calc(#{$subcontent--indent} - 3px); 205 padding-left: calc(#{$subcontent--indent} - 3px);
207 border-left: 2px solid prop(--colors --obj); 206 border-left: 2px solid prop(--colors --obj);
208} 207}