Debian Codegraph @

internal/website/static/css/style.css

raw
1 /*
2 Copyright 2019 The Go Cloud Development Kit Authors
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 https://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15 */
16
17 /* Basic layout {{{1 */
18 html {
19 font: 14px/1.5 'Roboto', sans-serif;
20 margin: 0;
21 padding: 0;
22 }
23 @media (min-width: 768px) {
24 html {
25 font-size: 16px;
26 }
27 }
28 body {
29 background: #fff;
30 color: #000;
31 margin: 0;
32 padding: 0;
33 }
34 .PageLayout {
35 display: grid;
36 grid-template-columns: 15rem 1fr;
37 grid-template-rows: minmax(4rem, auto) 1fr minmax(4rem, auto);
38 grid-template-areas:
39 'hd hd'
40 'sd main'
41 'ft ft';
42 margin: 0;
43 min-height: 100vh;
44 padding: 0;
45 width: 100vw;
46 }
47 @media (max-width: 768px) {
48 .PageLayout {
49 grid-template-columns: 100%;
50 grid-template-areas: 'hd' 'main' 'sd' 'ft';
51 }
52 }
53 .PageHeader {
54 background: #00add8;
55 grid-area: hd;
56 margin: 0;
57 padding: 0;
58 }
59 .PageLogo {
60 box-sizing: border-box;
61 margin: 0 auto;
62 padding: 1.25rem 0;
63 text-align: center;
64 width: 20rem;
65 }
66 .PageLogo-image {
67 height: 80px;
68 }
69 @media (max-width: 768px) {
70 .PageLogo-image {
71 height: 72px;
72 }
73 }
74 .MainContent {
75 box-sizing: border-box;
76 grid-area: main;
77 margin: 0;
78 overflow-x: hidden; /* creates a new block formatting context for children overflows */
79 padding: 2rem 2rem 3rem;
80 }
81 .MainContent-bounds {
82 box-sizing: border-box;
83 margin: 0;
84 padding: 0;
85 max-width: 50rem;
86 }
87 .Sidenav {
88 background: #dbd9d6;
89 box-sizing: border-box;
90 font-family: 'Work Sans', 'Roboto', sans-serif;
91 font-size: 0.8rem;
92 grid-area: sd;
93 margin: 0;
94 padding: 1rem 2rem 2rem 1rem;
95 }
96 .Sidenav-list {
97 margin: 0;
98 padding: 0;
99 list-style: none;
100 }
101 .Sidenav-pageList {
102 margin: 0 0 0 2rem;
103 padding: 0;
104 list-style: none;
105 }
106 .Sidenav-section {
107 margin: 0.5rem 0 0;
108 padding: 0;
109 }
110 .Sidenav-sectionLink {
111 color: #000;
112 font-weight: bold;
113 text-decoration: none;
114 }
115 .Sidenav-page {
116 margin: 0.3rem 0 0;
117 padding: 0;
118 }
119 .Sidenav-pageLink {
120 color: #000;
121 font-weight: normal;
122 text-decoration: none;
123 }
124 .Sidenav-sectionLink:hover,
125 .Sidenav-sectionLink:active,
126 .Sidenav-pageLink:hover,
127 .Sidenav-pageLink:active {
128 text-decoration: underline;
129 }
130 .PageTOC {
131 border-left: 2px solid #dbd9d6;
132 float: right;
133 margin: 0.25rem 0 1rem 2rem;
134 max-width: 25%;
135 min-width: 15%;
136 padding: 0.5rem 0 0.5rem 1rem;
137 }
138 @media (max-width: 1024px) {
139 .PageTOC {
140 border: none;
141 float: none;
142 margin: 1.5rem 0 0.5rem;
143 max-width: none;
144 min-width: none;
145 padding: 0;
146 }
147 }
148 .PageTOC {
149 font-size: 0.85rem;
150 }
151 .PageTOC-heading {
152 font: 700 1rem/1.25 'Work Sans', 'Roboto', sans-serif;
153 margin: 0 0 0.5rem;
154 text-rendering: optimizeLegibility;
155 }
156 .PageTOC>nav>ul>li>ul {
157 /* Don't indent top-level list. */
158 margin: 0;
159 }
160 .PageTOC ul {
161 list-style: none;
162 margin: 0 0 0 1rem;
163 padding: 0;
164 }
165 .PageTOC li {
166 margin: 0.3rem 0;
167 padding: 0;
168 }
169 .PageTOC>nav>ul {
170 /* CSS trick to remove h1 level from TOC.
171 * https://github.com/gohugoio/hugo/issues/1778 */
172 display: block;
173 margin: 0;
174 padding: 0;
175 }
176 .PageTOC>nav>ul>li {
177 /* CSS trick to remove h1 level from TOC.
178 * https://github.com/gohugoio/hugo/issues/1778 */
179 display: block;
180 margin: 0;
181 padding: 0;
182 }
183 .PageFooter {
184 background: #555759;
185 box-sizing: border-box;
186 color: #ffffff;
187 font-size: 0.95rem;
188 grid-area: ft;
189 line-height: 1;
190 margin: 0;
191 padding: 2rem 2rem 1rem;
192 }
193 .PageFooter-paragraph {
194 margin: 1em auto;
195 max-width: 40rem;
196 text-align: justify;
197 }
198 .PageFooter-link {
199 color: #ffffff;
200 text-decoration: underline;
201 }
202 .FooterLinks {
203 box-sizing: border-box;
204 font-size: 1rem;
205 line-height: 1.5;
206 list-style: none;
207 margin: 0 auto 2rem;
208 padding: 0;
209 max-width: 40rem;
210 }
211 .FooterLinks-item {
212 margin: 0;
213 padding: 0;
214 text-align: justify;
215 }
216 .FooterLinks-link {
217 color: #9eecff;
218 text-decoration: none;
219 }
220 .FooterLinks-link:hover,
221 .FooterLinks-link:active {
222 text-decoration: underline;
223 }
224 .PageList {
225 box-sizing: border-box;
226 display: grid;
227 grid-auto-rows: fit-content(5rem);
228 grid-template-columns: repeat(2, minmax(15rem, 1fr));
229 margin: 0;
230 padding: 0;
231 }
232 @media (max-width: 768px) {
233 .PageList {
234 grid-template-columns: minmax(15rem, 1fr);
235 }
236 }
237 .PageList-item {
238 box-sizing: border-box;
239 display: flex;
240 flex-direction: column;
241 margin: 0 0.5rem;
242 padding: 0 1rem;
243 place-content: start;
244 }
245 .PageList-itemTitle {
246 color: #000;
247 }
248 .PageList-summary {
249 flex: 1;
250 margin: 0;
251 padding: 0;
252 }
253 .PageList-readMore {
254 margin: 1rem 0 0;
255 padding: 0;
256 }
257 .HowtoList {
258 font: 300 1.5rem/1.25 'Roboto', sans-serif;
259 margin: 1rem 0 0;
260 padding: 0;
261 }
262 .HowtoList-item {
263 margin: 0.5rem 0 0.5rem 2rem;
264 padding: 0;
265 }
266
267 /* Content styling {{{1 */
268 /* Headings */
269 .MainContent h1 {
270 font: 700 2rem/1.25 'Work Sans', 'Roboto', sans-serif;
271 margin: 0 0 0.5rem;
272 text-rendering: optimizeLegibility;
273 }
274 .MainContent h2 {
275 font: 700 1.5rem/1.25 'Work Sans', 'Roboto', sans-serif;
276 margin: 2rem 0 0.5rem;
277 text-rendering: optimizeLegibility;
278 }
279 .MainContent h3 {
280 font: 700 1.25rem/1.25 'Work Sans', 'Roboto', sans-serif;
281 margin: 3rem 0 0.5rem;
282 text-rendering: optimizeLegibility;
283 }
284 .MainContent h4,
285 .MainContent h5,
286 .MainContent h6 {
287 font: 700 1rem/1.25 'Work Sans', 'Roboto', sans-serif;
288 margin: 2rem 0 0.5rem;
289 text-rendering: optimizeLegibility;
290 }
291 .MainContent h1 .anchor,
292 .MainContent h2 .anchor,
293 .MainContent h3 .anchor,
294 .MainContent h4 .anchor,
295 .MainContent h5 .anchor,
296 .MainContent h6 .anchor {
297 display: none;
298 font-size: 1rem;
299 margin: 0 0.2rem;
300 }
301 .MainContent h1 :link:hover,
302 .MainContent h2 :link:hover,
303 .MainContent h3 :link:hover,
304 .MainContent h4 :link:hover,
305 .MainContent h5 :link:hover,
306 .MainContent h6 :link:hover {
307 text-decoration: none;
308 }
309 .MainContent h1:hover .anchor,
310 .MainContent h2:hover .anchor,
311 .MainContent h3:hover .anchor,
312 .MainContent h4:hover .anchor,
313 .MainContent h5:hover .anchor,
314 .MainContent h6:hover .anchor {
315 display: inline;
316 }
317 /* Code */
318 .MainContent code {
319 font-size: 85%;
320 font-family: 'Source Code Pro', monospace;
321 }
322 .MainContent pre {
323 box-sizing: border-box;
324 background: #f9f9f9;
325 border-radius: 4px;
326 display: block;
327 font: 0.8rem/1.4 'Source Code Pro', monospace;
328 margin: 0 0 1rem;
329 overflow-x: auto;
330 padding: 1rem;
331 white-space: pre;
332 width: 100%;
333 }
334 .MainContent pre code {
335 font-size: 100%;
336 }
337 .highlight {
338 box-sizing: border-box;
339 margin: 0;
340 padding: 0;
341 width: 100%;
342 }
343 /* Figures */
344 .FullWidthFigure {
345 border: thin solid #dbd9d6;
346 border-radius: 4px;
347 margin: 1rem 0;
348 padding: 0.5rem 0;
349 }
350 .FullWidthFigure img {
351 width: 100%;
352 }
353 /* Links */
354 .MainContent :link {
355 color: #00758d;
356 text-decoration: none;
357 }
358 .MainContent :visited {
359 color: #00758d;
360 text-decoration: none;
361 }
362 .MainContent :link:hover,
363 .MainContent :link:focus,
364 .MainContent :visited:hover,
365 .MainContent :visited:focus {
366 text-decoration: underline;
367 }