-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
133 lines (115 loc) · 2.23 KB
/
main.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
:root {
box-sizing: border-box;
padding: 0;
line-height: 1.5;
font-family: "Noto Sans", "Roboto", sans-serif;
font-optical-sizing: auto;
color-scheme: light;
}
kbd {
font-family: "Cascadia Code", "Noto Sans Mono", monospace;
font-variant-ligatures: none;
padding: 0.1em 0.25em;
box-sizing: border-box;
background: var(--candy-color-background3);
color: var(--candy-color-text2);
border: 1px solid var(--candy-color-border2);
box-shadow: var(--candy-shadow-inset);
border-radius: var(--candy-well-radius);
}
code {
font-family: "Cascadia Code", "Noto Sans Mono", monospace;
font-variant-ligatures: none;
color: var(--candy-color-text2);
}
body {
margin: 0 auto;
display: grid;
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "header" "main";
grid-template-rows: max-content 1fr;
}
@media (min-width: 900px) {
body {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
grid-template-areas: "header" "main";
grid-template-rows: max-content 1fr;
}
}
header {
grid-area: header;
padding: 1rem;
font-size: 1.25rem;
display: flex;
flex-flow: row wrap;
align-items: center;
gap: 1rem 2rem;
border-bottom: 1px solid var(--candy-color-border1);
box-shadow:
0 1px 4px 0 var(--candy-color-shadow1),
0 2px 8px 0 var(--candy-color-shadow1);
z-index: 1;
}
main {
grid-area: main;
overflow-y: auto;
}
.content, section {
box-sizing: border-box;
padding: 0 1rem;
max-width: 100ch;
margin: 0 auto;
}
section > h1,
section > h2,
.content > h2 {
padding-top: 1rem;
border-top: 1px solid var(--candy-color-border3);
}
.candy-card h2 {
display: inline;
}
a.candy-button {
text-decoration: none;
display: inline-block;
cursor: default;
}
.footer {
margin-top: 3rem;
font-size: 0.8rem;
border-top: 1px solid var(--candy-color-border3);
}
.card-deck {
display: flex;
flex-flow: row wrap;
gap: 1rem;
}
.card-deck > .candy-card,
.card-deck > .deck-filler {
flex: calc(45ch - 2rem);
}
.spaceout {
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
}
.card-stack {
display: flex;
flex-flow: column;
gap: 1rem;
}
.card-stack > .candy-card {
flex: auto;
}
.button-row {
display: flex;
flex-flow: row wrap;
gap: 0.5rem;
}
.button-row > .candy-button {
flex: none;
}