-
Notifications
You must be signed in to change notification settings - Fork 2
/
global.css
164 lines (141 loc) · 4.01 KB
/
global.css
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
/**
* @license
* Copyright 2023 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/* latin */
@font-face {
font-family: 'Google Sans';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/fonts/google-sans/regular.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
U+FEFF, U+FFFD;
}
/* latin -mono */
@font-face {
font-family: 'Google Sans Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(/fonts/google-sans/mono.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
U+02DC, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+2000-206F,
U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
font-family: 'Google Sans', Roboto, system-ui;
--md-ref-typeface-plain: 'Google Sans', Roboto, system-ui;
background-color: var(--md-sys-color-surface-container);
color: var(--md-sys-color-on-surface);
/* These values are copied from mio */
--catalog-display-xl-font-size: 88px;
--catalog-display-m-font-size: 45px;
--catalog-title-l-font-size: 22px;
--catalog-title-m-font-size: 16px;
--catalog-title-s-font-size: 14px;
--catalog-body-l-font-size: 16px;
--catalog-body-m-font-size: 14px;
--catalog-headline-s-font-size: 24px;
--catalog-label-s-font-size: 11px;
--catalog-shape-xl: 28px;
--catalog-shape-l: 16px;
--catalog-shape-m: 12px;
--catalog-shape-s: 8px;
--catalog-shape-xs: 4px;
--catalog-spacing-xl: 28px;
--catalog-spacing-l: 16px;
--catalog-spacing-m: 12px;
--catalog-spacing-s: 8px;
--catalog-top-app-bar-height: calc(48px + 2 * var(--catalog-spacing-m));
scroll-padding-block-start: calc(
var(--catalog-top-app-bar-height) + var(--catalog-top-app-bar-padding-block) *
2
);
}
@media screen and (max-width: 600px) {
:root {
--catalog-display-xl-font-size: 55px;
--catalog-title-l-font-size: 16px;
--catalog-body-l-font-size: 14px;
--catalog-body-m-font-size: 12px;
/* Mostly to accommodate content padding on small screens */
--catalog-spacing-xl: 16px;
--catalog-spacing-l: 12px;
}
}
strong {
-webkit-font-smoothing: antialiased;
}
body {
margin: 0;
font-size: var(--catalog-body-l-font-size);
}
a {
color: var(--md-sys-color-primary);
text-decoration: none;
}
a:hover,
a:focus-visible {
text-decoration: underline;
}
nav-drawer md-list.nav md-list-item[href][selected] {
background-color: var(--md-sys-color-surface-container-highest);
}
nav-drawer md-list.nav md-list-item::part(focus-ring) {
--md-focus-ring-shape: var(--catalog-shape-xl);
}
@media (forced-colors: active) {
nav-drawer md-list.nav md-list-item[href][selected] {
border: 4px double CanvasText;
}
nav-drawer md-list.nav md-list-item[href] {
border-radius: var(--catalog-shape-xl);
border: 1px solid CanvasText;
}
}
nav-drawer md-list.nav {
--md-list-container-color: transparent;
display: block;
margin-inline: var(--catalog-spacing-m);
min-width: unset;
}
nav-drawer md-list.nav md-list-item[href] {
margin-block: var(--catalog-spacing-m);
display: block;
--md-focus-ring-shape: var(--catalog-shape-xl);
border-radius: var(--catalog-shape-xl);
}
nav-drawer md-list.nav md-item [slot="headline"] {
/* shadow root slot has overflow:hidden, it's cutting some text off */
padding: block 2px;
}
nav-drawer md-list.nav md-item:first-of-type {
padding-block: 0;
}
nav-drawer md-list.nav md-item {
font-size: var(--catalog-headline-s-font-size);
padding-block-end: 0;
}
nav-drawer md-list.nav md-item + md-list-item[href] {
margin-block-start: 0;
}
h1 {
font-size: var(--catalog-display-xl-font-size);
}
.toc ol {
list-style-type: none;
font-size: var(--catalog-body-m-font-size);
}
.toc > ol {
padding: 0;
}
.toc > ol ol {
list-style-type: circle;
padding-inline-start: var(--catalog-spacing-xl);
}
.toc ol li {
margin-block: var(--catalog-spacing-m);
}