This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
202 lines (167 loc) · 3.51 KB
/
style.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
*, *::before, *::after {
margin: 0;
padding: 0;
border: none;
font: inherit;
color: inherit;
box-sizing: border-box;
}
:root {
font-family: 'Open Sans', sans-serif;
color-scheme: light dark;
--content-spacing-horizontal: 24px;
--primary-color: #9D456D;
--secondary-color: #BB5E55;
--tertiary-color: #6D3B77;
}
h1, h2, h3 {
font-family: Vollkorn, serif;
font-weight: bold;
}
h1 { font-size: 80px; }
h2 { font-size: 40px; }
h3 { font-size: 26px; }
code { font-family: 'Source Code Pro', monospace; }
strong { font-weight: bold; }
a { text-decoration: underline; }
p { max-width: 700px; }
.subtitle {
font-size: 24px;
max-width: 650px;
}
header {
padding: 60px var(--content-spacing-horizontal) 120px var(--content-spacing-horizontal);
}
header h1 {
margin-bottom: 24px;
}
section {
color: #fff;
padding: 50px var(--content-spacing-horizontal) 70px var(--content-spacing-horizontal);
}
nav {
padding: 20px var(--content-spacing-horizontal);
}
nav ul {
list-style-type: none;
display: grid;
grid-auto-flow: column;
gap: 42px;
justify-content: right;
}
nav a {
font-weight: bold;
text-decoration: none;
display: inline-block;
}
nav a:hover {
text-decoration: underline;
}
section:nth-of-type(3n + 1) {
background-color: var(--primary-color);
}
section:nth-of-type(3n + 2) {
background-color: var(--secondary-color);
}
section:nth-of-type(3n + 3) {
background-color: var(--tertiary-color);
}
section h2 {
margin-bottom: 32px;
}
section h2::after {
content: '';
display: block;
width: 100px;
height: 4px;
background-color: currentColor;
margin-top: 4px;
}
footer {
padding: 18px var(--content-spacing-horizontal);
}
._container {
margin: auto;
width: 1024px;
max-width: 100%;
}
.nuget-box {
--nuget-box-horizontal-padding: 24px;
}
.nuget-box .panel:not(.-active) {
display: none;
}
.nuget-box .tabs {
list-style-type: none;
display: grid;
grid-auto-flow: column;
justify-content: start;
align-items: stretch;
gap: 0 8px;
}
.nuget-box .tabs li {
display: contents;
}
.nuget-box .tab {
cursor: pointer;
font-size: 14px;
padding: 6px var(--nuget-box-horizontal-padding);
border-radius: 6px 6px 0 0;
background-color: var(--primary-color);
transition: opacity .125s;
}
.nuget-box .tab:not([aria-active=true]) {
opacity: .45;
}
.nuget-box .panel {
background-color: var(--primary-color);
padding: 16px var(--nuget-box-horizontal-padding);
border-radius: 0 0 6px 6px;
}
/* block level elements */
h3:not(:last-child),
p:not(:last-child),
.feature-list .feature .icon:not(:last-child) {
margin-bottom: 20px;
}
.feature-list {
display: grid;
list-style-type: none;
grid-template-columns: repeat(3, 1fr);
gap: 24px;
}
.feature-list .feature {
display: flex;
flex-direction: column;
align-items: center;
}
.feature-list .feature a {
align-self: flex-start;
}
.feature-list .feature .icon {
width: 100px;
height: 100px;
}
@media (prefers-color-scheme: dark) {
:root {
color: #fff;
}
}
@media (max-width: 1024px) {
.navigation-block ul {
gap: 24px;
justify-content: left;
}
}
@media (max-width: 550px) {
.feature-list {
grid-template-columns: 1fr;
}
.nuget-box .tabs {
grid-auto-flow: row;
justify-content: stretch;
}
.nuget-box .tabs li:not(:first-child) .tab {
border-radius: 0;
}
}