├── LICENSE ├── README.md ├── demo ├── audio.mp3 ├── audio.ogg ├── cue.vtt ├── iframe.html ├── index.html ├── logo.svg ├── search.svg ├── video.mp4 └── video.ogg ├── docs.html ├── favicon.icns ├── favicon.ico ├── gd.css ├── gd.min.css └── index.html /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Stephen Hawkes 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GDCSS 2 | 3 | [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/hawkz/gdcss/blob/master/LICENSE) 4 | 5 | *An accessible alternative to HTML5 CSS resets* 6 | 7 | GDCSS styles all visible HTML elements in line with modern best practice. 8 | It focusses only on HTML tags so you can just write HTML (no classes or frameworks). 9 | 10 | GDCSS is aimed at projects needing to blast out some HTML quickly and turn it into a deployable prototype or site without any other CSS being needed, but also not getting in the way if that is the case. 11 | 12 | [Read the docs](https://gdcss.netlify.app/docs.html). 13 | 14 | * Live demo of current master: https://gdcss.netlify.app/demo/ 15 | 16 | ## Installation 17 | Just add the CSS file to the `` of your HTML. 18 | 19 | 20 | 21 | That's it! simple HTML now becomes a visually accessible page. 22 | 23 | ## Feedback 24 | 25 | Would love to hear you feedback on this, so the form on the landing page is live... 26 | 27 | [Give feedback](https://gdcss.netlify.app/). 28 | -------------------------------------------------------------------------------- /demo/audio.mp3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hawkz/gdcss/d150be4e17835f2c213e0c66fb20e4e555b53fe4/demo/audio.mp3 -------------------------------------------------------------------------------- /demo/audio.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hawkz/gdcss/d150be4e17835f2c213e0c66fb20e4e555b53fe4/demo/audio.ogg -------------------------------------------------------------------------------- /demo/cue.vtt: -------------------------------------------------------------------------------- 1 | WEBVTT - This file has cues. 2 | 3 | 4 | 00:00:00.000 --> 00:00:04.000 5 | This is a sample 6 | 7 | 00:00:04.000 --> 00:06:00.000 8 | - More accessible! 9 | -------------------------------------------------------------------------------- /demo/iframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | iFrame 7 | 8 | 9 | 10 | 11 | 12 |
13 | Body > HEADER 14 | 15 |
16 | 17 |
18 | 19 |
Body HEADER
20 | 21 | Body 22 | 23 |
24 |
ARTICLE
25 | 26 | 27 |
28 |
29 | 30 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /demo/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | GDCSS - Demo 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Skip to main content 24 | 25 |
26 | 34 |
35 | 40 |
41 | 42 |
43 |

Page Italics Underline

44 |

Page Subheading with highlighting

45 |

Everything in header is centered

46 |
47 |

Italic Link ButtonBold Link Button →

48 |
49 | 50 |

Typography & semantics

51 |

The a tag stands for anchor from old hypertext speak. You can use abbr to abbreviate things. q is for creating a short quotation, great for getting smart quotes in without 52 | thinking about symbols, and also making the page more semantic. If you want to emphasise text you can use or em to do that, depending on the need for style or semantic emphasis.

53 | 54 |
55 | 59 | 63 | 67 |
68 | 69 |
70 |

Some title smaller

71 |

Big heading

72 |
73 | 74 |
75 | Big quote 76 |

"Quote"

77 | - Attribution 78 |
79 | 80 |

Citation of titles aren't usually visible cite the same is true of data. 81 | There's also few cases where you need ins (inserted text) or del (which is deleted text) 82 | unless you're tracking changes. Similarly the s tag specifies text that is no longer correct, accurate or relevant. 83 | The dfn tag represents the defining instance of a term in HTML, which could be useful for semantic expression.

84 | 85 |

Some microformats and search engines can understand your address:

86 |
address, street 87 | and 88 | postcode
89 | 90 |

Phrase tags

91 |

The human phrase tags are em which renders as emphasized text. and strong which defines important text.

92 |

Then we have a set of computer related tags, which we style all the same, they are 93 | samp, defines sample output from a computer program, 94 | kdb which defines keyboard input and var which 95 | defines a variable. These are super rare, so they all look the same to save writing styles.

96 | 97 | 98 |

em Renders as emphasized text

99 |

strong Defines important text

100 |

code Defines a piece of computer code

101 |

samp Defines sample output from a computer program

102 |

kbd Defines keyboard input

103 |

var Defines a variable like OK

104 | 105 |

Pre, samp & code

106 |

Then there's code which in this framework's opion is more like address and used as a block rather than an inline.

107 | Defines a piece of computer code 108 |
The pre tag defines preformatted text. It's at the same level as p.
109 |
 — preformatted text
110 |
 — code block
111 |
 — computer output block
112 | — inline computer output 113 | 114 |

the b, i, u & strong tags

115 |

b and strong are there for emphasis. We add basic typographical queues here. The i tag defines a part of text in an alternate voice or mood usually displayed in italic. The u tag represents some text that 116 | should be stylistically different from normal text, such as misspelled words or proper nouns in Chinese.

117 | 118 | 119 | 120 |

Use these elements only when there is not a more appropriate semantic element, such as: em, strong, mark, 121 | cite, dfn.

122 | 123 |

The small tag defines smaller text (and other side comments). This text contains subscript text. This text contains superscript text. Time is a tag for semanticly adding 124 | timestamps like for . var tag is a phrase tag. It defines a variable.

125 | 126 |

Use the mark tag if you want to highlight parts of your text.

127 | 128 |
129 | Summary is the visible part of a details toggle 130 | details tag contains the content that is hidden. 131 |
132 | 133 |
134 | 135 |

Headings and paragraphs

136 |

That was a heading level 1, often the biggest heading. Really this is about creating good semantic page structure for accessibility.

137 |

h2 heading

138 |

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

139 |

h3 heading

140 |

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

141 |

h4 heading

142 |

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

143 |
h5 heading
144 |

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

145 |
h6 heading
146 |

That was a heading level 2, usually smaller than the previous heading. Really this is about creating good semantic page structure for accessibility.

147 | 148 |
149 | 150 | 151 |

Forms and field widgets

152 |
153 |
154 |
155 |
156 | Text fields 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 | 203 |

204 | 205 | 206 |
207 |
208 | 209 |
210 | 211 |
212 | Dates and times 213 |

214 | 215 | 216 |

217 |

218 | 219 | 220 |

221 |

222 | 223 | 224 |

225 |

226 | 227 | 228 |

229 |

230 | 231 | 232 |

233 |

234 | 235 | 236 |

237 |
238 | 239 |
240 | Outputs - formula fields 241 |

242 | 243 | 244 | 245 | 246 | = 247 |

248 |
249 |
250 |
251 | 252 |
253 |
254 |
255 | Selects & option groups 256 |

257 | 258 | 270 |

271 |
272 |

273 | 274 | 275 |

276 |

277 | 278 | 279 |

280 |
281 |

282 | 283 | 284 | 285 | 286 |

287 |
288 |
289 |

290 | 291 | 292 |

293 |

294 | 295 | 296 |

297 |
298 |
299 |
300 |

301 | 302 | 303 | 304 | 305 | 306 | 307 |

308 |
309 |
310 |
311 |
312 |
313 |
314 | Legend 315 |

316 | 317 | 318 |

319 |

320 | 321 | 322 |

323 |

324 | 325 | 326 | Nothing to see... obvs! 327 |

328 |
329 | 330 |
331 | Buttons 332 |
333 |

334 | 335 | 336 |

337 |

338 | 339 | 340 |

341 |

342 | 343 | 344 |

345 |
346 |
347 |
348 |
349 |
350 | 351 |
352 | 353 | 354 |

Lists

355 |
356 |
357 |
    358 |
  • Unordered list item
  • 359 |
  • Unordered list item
  • 360 |
  • Unordered list item
  • 361 |
  • Unordered list item
  • 362 |
363 |
364 |
365 |
    366 |
  1. Ordered list item
  2. 367 |
  3. Ordered list item
  4. 368 |
  5. Ordered list item
  6. 369 |
  7. Ordered list item
  8. 370 |
371 |
372 |
373 |
374 |
Definition term
375 |
Definition description
376 |
Definition term
377 |
Definition description
378 |
Definition term
379 |
Definition description
380 |
Definition term
381 |
Definition description
382 |
383 |
384 |
385 | 386 |
387 | 388 | 389 |

Media

390 | 391 |
392 |
393 |

Figure

394 |
395 | The figure tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. 396 |
The figcaption tag defines a caption for a figure element.
397 |
398 |
399 |
400 |

Picture

401 | 402 | 403 | 404 | Placeholder image 405 | 406 |
407 |
408 | 409 |

SVG

410 | 411 | 412 | 413 | 414 |

Audio

415 | 420 | 421 |

Video

422 | 428 | 429 |

Meters & Progress bars

430 | 10 out of 100 431 | 432 | 433 | 434 | 435 | 436 | 437 |

IFrame

438 | 439 | 440 |

Canvas

441 | 442 | 448 | 449 |
450 | 451 | 452 |

Tables

453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 |
The caption tag goes straight after table.
MonthSavings
January$100
February$80
Sum$180
478 | 479 |
480 | 481 | 482 |

Internationalisation

483 |
484 |
485 |

BDO & BDI

486 |

Sometimes you need text to change direction mid-flow, this is what BDI is for, a great example is usernames.

487 | 488 |

عندما يريد العالم أن ‪يتكلّم ‬ ، فهو يتحدّث بلغة يونيكود. تسجّل الآن لحضور المؤتمر الدولي العاشر ليونيكود (Unicode Conference)، الذي سيعقد في 10-12 آذار 1997 بمدينة مَايِنْتْس، ألمانيا. و سيجمع المؤتمر بين خبراء من كافة قطاعات الصناعة 489 | على الشبكة العالمية انترنيت ويونيكود، حيث ستتم، على الصعيدين الدولي والمحلي على حد سواء مناقشة سبل استخدام يونكود في النظم القائمة وفيما يخص التطبيقات الحاسوبية، الخطوط، تصميم النصوص والحوسبة متعددة اللغات. 490 |

491 |

مَمِمّمَّمِّ

492 |
493 |

Which is useful for wrapping blocks of content with languages that flow in that direction.

494 |
495 |
496 |

Ruby

497 |

A ruby annotation is a small extra text, attached to the main text to indicate the pronunciation or meaning of the corresponding characters. This kind of annotation is often used in Japanese publications. The rp tag can be used 498 | to 499 | provide parentheses around a ruby text, to be shown by browsers that do not support ruby annotations. The rt tag defines an explanation or pronunciation of characters (for East Asian typography) in a ruby annotation.

500 | 501 | 漢 (ㄏㄢˋ) 502 | 503 |
504 |
505 | 506 |
507 | 508 | 509 |

Page structural elements

510 | 511 |
512 |

Header

513 |

The header element represents a container for introductory content or a set of navigational links.A header element typically contains: one or more heading elements (h1 - h6), logo & branding etc. You can have several header elements in one 514 | document.

515 |

Note: A header tag cannot be placed within a footer, address or another header element.

516 |
517 | 518 |
519 |
520 |

Article

521 |

The article tag specifies independent, self-contained content. An article should make sense on its own and it should be possible to distribute it independently from the rest of the site.

522 |
523 | 524 | 528 |
529 | 530 |
531 | 532 |

DIVs don't do anything

533 |
534 |

As it should be 😅 I've left them alone, this means they can be containers, you can add styling or classes to them to build what you want. 535 |

536 | 537 |
538 |
539 |
540 | Back to top 541 |
542 |
543 | 544 |
545 | 546 | 563 | 564 | 565 | 566 | -------------------------------------------------------------------------------- /demo/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | logo 4 | 5 | 15 | 16 | -------------------------------------------------------------------------------- /demo/search.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Group 4 5 | Created with Sketch. 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /demo/video.mp4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hawkz/gdcss/d150be4e17835f2c213e0c66fb20e4e555b53fe4/demo/video.mp4 -------------------------------------------------------------------------------- /demo/video.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hawkz/gdcss/d150be4e17835f2c213e0c66fb20e4e555b53fe4/demo/video.ogg -------------------------------------------------------------------------------- /docs.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Documentation for GDCSS 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Skip to main content 24 | 25 |
26 | 34 |
35 | 41 |
42 |

Documentation

43 | 44 |

A good test of this stylesheet is to try out all of the tags. Here is the tag reference from Mozilla with demo 45 | code and examples of how each tag is styled.

46 | 47 |

There are also CSS variables for the main 48 | colours, so if you need to retheme the colour scheme you can!

49 | 50 |

Head, body, meta code

51 | 52 |

Metadata contains information about the page. This includes information about styles, scripts and data to help 53 | software (search engines, browsers, etc.) use and render the page. Metadata for styles and scripts may be defined in 54 | the page or link to another file that has the information.

55 | 56 |

<html>The HTML element represents the root (top-level element) of an HTML document, so it is also 57 | referred to as the root element. All other elements must be descendants of this element.

58 | 59 |

<base> elements specify the base URL to use for all relative 60 | URLs in a document.

61 | 62 |

<head> elements contains machine-readable information (metadata) 63 | about the document, like its title, scripts, and style sheets.

64 | 65 |

<link> The HTML External Resource Link element specifies relationships 66 | between the current document and an external resource. This element is most commonly used to link to stylesheets, but 67 | is also used to establish site icons (both "favicon" style icons and icons for the home screen and apps on mobile 68 | devices) among other things.

69 | 70 |

<style> elements contain style information for a document, or part of a document.

71 | 72 |

<title> defines the document's title that is shown in a browser's title bar or a page's tab.

73 | 74 |

<meta> elements represent metadata that cannot be represented by 75 | other HTML meta-related elements, like <base>, <link>, <script>, 76 | <style> or <title>.

77 | 78 |

<body> element represents the content of an HTML document. There can be only one in a document.

79 | 80 |

Demo

81 |

You're already seeing it, but a lot of the head / meta content isn't visible directly...

82 | 83 |
84 | View example source 85 |
<!DOCTYPE html>
  86 | <html lang="en">
  87 | 
  88 | <head>
  89 |   <meta charset="utf-8" />
  90 |   <title>GDCSS Documentation</title>
  91 |   <meta name="description" content="Documentation for a tags-only CSS library" />
  92 |   <meta name="author" content="Stephen Hawkes" />
  93 |   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  94 |   <meta name="theme-color" content="#000000" />
  95 |   <link href="gd.css" rel="stylesheet">
  96 | </head>
97 |
98 | 99 |
100 | 101 |

Content sectioning

102 | 103 |

Content sectioning elements allow you to organize the document content into logical pieces. Use the sectioning 104 | elements to create a broad outline for your page content, including header and footer navigation, and heading 105 | elements to identify sections of content.

106 | 107 |

Layout

108 |

Really HTML is about semantics, but these particular tags have been styled in so that they also produce common layout patterns.

109 | 110 |

<article> elements represent a self-contained composition in 111 | a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in 112 | syndication).

113 | 114 |

<aside> elements represents a portion of a document whose 115 | content is only indirectly related to the document's main content.

116 | 117 |

<footer> elements represents a footer for its nearest 118 | sectioning content or sectioning root element. A footer typically contains information about the author of the 119 | section, copyright data or links to related documents.

120 | 121 |

<header> elements represent introductory content, typically a 122 | group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an 123 | author name, and other elements.

124 | 125 |

<main> elements represent the dominant content of the 126 | <body> of a document. The main content area consists of content that is directly related to or 127 | expands upon the central topic of a document, or the central functionality of an application.

128 | 129 |

<nav> elements represent a section of a page whose purpose is to 130 | provide navigation links, either within the current document or to other documents. Common examples of navigation 131 | sections are menus, tables of contents, and indexes.

132 | 133 |

Demo

134 | 135 |
136 | View example source 137 |
<body>
 138 |   <header>
 139 |     Body > HEADER
 140 |     <nav>Header nav</nav>
 141 |   </header>
 142 |   <nav>Body NAV</nav>
 143 |   <main>
 144 |     <header>Body HEADER</header>
 145 |     Body
 146 |     <section>
 147 |       <article>ARTICLE</article>
 148 |       <aside>ASIDE</aside>
 149 |     </section>
 150 |   </main>
 151 |   <footer>
 152 |     Footer
 153 |     <main>Footer MAIN</main>
 154 |   </footer>
 155 | </body>
156 |
157 | 158 | 159 |
160 | 161 |

<section> elements represents a standalone section 162 | — which doesn't have a more specific semantic element to represent it — contained within an HTML 163 | document. We use this to denote subdivisions or 'sections' as a way to create extra layouts without messing up semantics. In short, this tag just creates a CSS grid layout for child elements.

164 | 165 |

Demo

166 |
167 | 170 | 173 | 176 |
177 |
178 | View example source 179 |
<section>
 180 |   <aside>
 181 |     <p>Aside 1</p>
 182 |   </aside>
 183 |   <aside>
 184 |     <p>Aside 2</p>
 185 |   </aside>
 186 |   <aside>
 187 |     <p>Aside 3</p>
 188 |   </aside>
 189 | </section>
190 |
191 | 192 |
193 | 194 |

Headings

195 | 196 |

<h1>, <h2>, <h3>, <h4>, <h5>, 197 | <h6> The HTML <h1><h6> elements represent six levels of 198 | section headings. <h1> is the highest section level and <h6> is the lowest.

199 | 200 |

Demo

201 |
202 | View demo 203 |

Heading One

204 |

Heading Two

205 |

Heading Three

206 |

Heading Four

207 |
Heading Five
208 |
Heading Six
209 |
210 |
211 | View example source 212 |
<h1>Heading One</h1>
 213 | <h2>Heading Two</h2>
 214 | <h3>Heading Three</h3>
 215 | <h4>Heading Four</h4>
 216 | <h5>Heading Five</h5>
 217 | <h6>Heading Six</h6>
218 |
219 | 220 |
221 | 222 |

<hgroup> elements represent a multi-level heading for a 223 | section of a document. It groups a set of <h1><h6> elements. We use this grouping to show the combination style variants of the headers.

224 | 225 |

Demo

226 |
227 |

Some title smaller

228 |

Big heading

229 |
230 |
231 | View example source 232 |
<hgroup>
 233 |   <h4>Some title smaller</h4>
 234 |   <h1>Big heading</h1>
 235 | </hgroup>
236 |
237 | 238 |
239 | 240 |

Text content

241 | 242 |

Use HTML text content elements to organize blocks or sections of content placed between the opening 243 | <body> and closing </body> tags. Important for accessibility and SEO, these 244 | elements identify the purpose or structure of that content.

245 | 246 |

<address> elements indicate that the enclosed HTML provides 247 | contact information for a person or people, or for an organisation.

248 | 249 |

Demo

250 |
251 | Steve Hawkes
252 | steve@dev.ngo
253 | +44 (0) 333 344 7800 254 |
255 |
256 | View example source 257 |
<address>
 258 |   Steve Hawkes<br />
 259 |   <a href="mailto:steve@dev.ngo">steve@dev.ngo</a><br>
 260 |   <a href="tel:+443333447800">+44 (0) 333 344 7800</a>
 261 | </address>
262 |
263 | 264 |
265 | 266 |

<blockquote> elements (or Block Quotation Element) 267 | indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see 268 | Notes for how to change it). A URL for the source of the quotation may be given using the cite attribute, while a 269 | text representation of the source can be given using the <cite> element.

270 | 271 |

<q> elements indicate that the enclosed text is a short inline 272 | quotation. Most modern browsers implement this by surrounding the text in quotation marks.

273 | 274 |

<cite> The HTML Citation element is used to describe a reference to a 275 | cited creative work, and must include the title of that work.

276 | 277 |

Demo

278 |
279 | Make your service look and feel like GOV.UK. 280 | GOV.UK Design System team 281 |
282 |
283 | View example source 284 |
<blockquote cite="https://design-system.service.gov.uk/styles/">
 285 |   <q>Make your service look and feel like GOV.UK.</q>
 286 |   <cite>GOV.UK Design System team</cite>
 287 | </blockquote>
288 |
289 | 290 |
291 | 292 |

Containers for styling

293 | 294 |

<div> The HTML Content Division element is the generic container for 295 | flow content. It has no effect on the content or layout until styled using CSS. They do nothing in GDCSS, because they don't carry any meaning. They can be useful in combination with <section> tags to manage the CSS grid.

296 | 297 |

<span> elements are a generic inline container for phrasing 298 | content, which does not inherently represent anything. It can be used to group elements for styling purposes (using 299 | the class or id attributes), or because they share attribute values, such as lang.

300 | 301 |
302 | 303 |

<dl> elements represent a description list. The element encloses a 304 | list of groups of terms and descriptions. Common uses for this element are to implement a glossary 305 | or to display metadata (a list of key-value pairs).

306 | 307 |

<dt> elements specify a term in a description or definition list.

308 | 309 |

<dd> elements provide the description, definition, or value for 310 | the preceding term in a description list.

311 | 312 |

Demo

313 |
314 |
Definition term 1
315 |
Definition description 1
316 |
Definition term 2
317 |
Definition description 2
318 |
Definition term 3
319 |
Definition description 3
320 |
321 |
322 | View example source 323 |
<dl>
 324 |   <dt>Definition term 1</dt>
 325 |   <dd>Definition description 1</dd>
 326 |   <dt>Definition term 2</dt>
 327 |   <dd>Definition description 2</dd>
 328 |   <dt>Definition term 3</dt>
 329 |   <dd>Definition description 3</dd>
 330 | </dl>
331 |
332 | 333 |
334 | 335 |

<figure> (Figure With Optional Caption) element represents 336 | self-contained content, potentially with an optional caption.

337 | 338 |

<figcaption> or Figure Caption element represents a 339 | caption or legend describing the rest of the contents of its parent <figure> element.

340 | 341 |

Demo

342 |
343 | The figure tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc. 344 |
The figcaption tag defines a caption for a figure element.
345 |
346 |
347 | View example source 348 |
<figure>
 349 |   <img src="https://via.placeholder.com/960x320" alt="The figure tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.">
 350 |   <figcaption>The figcaption tag defines a caption for a figure element.</figcaption>
 351 | </figure>
352 |
353 | 354 |
355 | 356 |

<hr> elements represent a thematic break between paragraph-level 357 | elements: for example, a change of scene in a story, or a shift of topic within a section. You can see them between each area on this page.

358 | 359 |
360 | View example source 361 |
<hr />
362 |
363 | 364 |
365 | 366 |

<ul> elements represent an unordered list of items, typically rendered as a bulleted list.

367 | 368 |

<ol> elements represent an ordered list of items — typically rendered as a numbered list.

369 | 370 |

<li> elements is used to represent an item, normally in an ordered or unordered list.

371 | 372 |

Demo

373 | 377 |
    378 |
  1. ordered one
  2. 379 |
  3. ordered two
  4. 380 |
381 | 382 |
383 | View example source 384 |
<ul>
 385 |   <li>unordered one</li>
 386 |   <li>unordered one</li>
 387 | </ul>
 388 | <ol>
 389 |   <li>ordered one</li>
 390 |   <li>ordered two</li>
 391 | </ol>
392 |
393 | 394 |
395 | 396 | 397 | 398 |

<p> elements represent a paragraph. This line of text is in a paragraph.

399 | 400 |
401 | View example source 402 |
<p>Some text and inline elements here.</p>
403 |
404 | 405 |
406 | 407 |

<pre> elements represents preformatted text which is to be 408 | presented exactly as written in the HTML file.

409 | 410 |

Demo

411 |
Some text where
 412 | the indentation
 413 |   matters
 414 |     to and isn't altered by the browser...
415 |
416 | View example source 417 |
<pre>Some text where
 418 |   the indentation
 419 |     matters
 420 |       to and isn't altered by the browser...</pre>
421 |
422 | 423 |
424 | 425 |

Inline text semantics

426 |

Use the HTML inline text semantic to define the meaning, structure, or style of a word, line, or any arbitrary 427 | piece of text.

428 | 429 |

<a> elements (or anchor element), with its href attribute, creates a 430 | hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.

431 | 432 |

Demo

433 |

We see these a lot on, here is your common link, standard variety. To make things more fun, we also added some extra cases based on how you use them: External links, Back 434 | links, and Top links for common icon inclusion.

435 |
436 | View example source 437 |
<p>We see these a lot on, here is your <a href="#">common link</a>, standard variety. To make things more fun, we also added some extra cases based on how you use them: <a href="https://gov.uk/">External links</a>, <a href="javascript:history.back()">Back links</a>, and <a href="#top">Top links</a> for common icon inclusion.</p>
438 |
439 | 440 |
441 | 442 |

Emphasis

443 | 444 |

<b> The HTML Bring Attention To element is used to draw the reader's 445 | attention to the element's contents, which are not otherwise granted special importance.

446 | 447 |

<strong> The HTML Strong Importance Element indicates that its 448 | contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.

449 | 450 |

<em> elements mark text that has stress emphasis. It can be nested, 451 | with each level of nesting indicating a greater degree of emphasis.

452 | 453 |

<i> elements represent a range of text that is set off from the 454 | normal text for some reason.

455 | 456 |

Demo

457 |

There's lots of ways to show emphasis with bold, strong tags varying weight and em and italics for text styles.

458 |
459 | View example source 460 |
<p>There's lots of ways to show emphasis with <b>bold</b>, <strong>strong</strong> tags varying weight and <em>em</em> and <i>italics</i> for text styles.</p>
461 |
462 | 463 |
464 | 465 | 466 |

Code and outputs

467 | 468 |

<code> elements display its contents styled in a fashion 469 | intended to indicate that the text is a short fragment of computer code.

470 | 471 |

<kbd> The HTML Keyboard Input element represents a span of inline text 472 | denoting textual user input from a keyboard, voice input, or any other text entry device.

473 | 474 |

<mark> The HTML Mark Text element represents text which is marked or 475 | highlighted for reference or notation purposes, due to the marked passage's relevance or 476 | importance in the enclosing context.

477 | 478 |

<var> The HTML Variable element represents the name of a variable in a 479 | mathematical expression or a programming context.

480 | 481 |

<samp> The HTML Sample Element is used to enclose inline text which 482 | represents sample (or quoted) output from a computer program.

483 | 484 |

<data> elements link a given content with a machine-readable 485 | translation. If the content is time- or date-related, the <time> element must be used. 486 | Nothing visible, but adds semantic expression.

487 | 488 |

<time> elements represent a specific period in time. Nothing visible, but adds semantic expression.

489 | 490 |

Demo

491 |

Code here
492 | kbd here
493 | mark here
494 | Var here
495 | Samp here
496 | Twenty Three Tags
497 |

498 |
499 | View example source 500 |
<p><code>Code here</code><br />
 501 | <kbd>kbd here</kbd><br />
 502 | <mark>mark here</mark><br />
 503 | <var>Var here</var><br />
 504 | <samp>Samp here</samp><br />
 505 | <data value="23">Twenty Three Tags</data><br />
 506 | <time datetime="PT2H30M">2h 30m</time></p>
507 |
508 | 509 |
510 | 511 |

Special word semantics

512 | 513 |

<abbr> The HTML Abbreviation element represents an abbreviation or 514 | acronym; the optional title attribute can provide an expansion or description for the abbreviation.

515 | 516 |

<dfn> The HTML Definition element is used to indicate the term being 517 | defined within the context of a definition phrase or sentence.

518 | 519 |

Demo

520 |

An abbreviation is when text is reduced obvs! It's also slang...

521 |
522 | View example source 523 |
<p>A <dfn>abbreviation</dfn> is when text is reduced <abbr title="obviously">obvs</abbr>! It's also slang...</p>
524 |
525 | 526 |
527 | 528 |

Smaller semantics

529 | 530 |

<small> elements represent side-comments and small print, like 531 | copyright and legal text, independent of its styled presentation. By default, 532 | it renders text within it one font-size smaller, such as from small to x-small.

533 | 534 |

<sub> The HTML Subscript element specifies inline text which should be 535 | displayed as subscript for solely typographical reasons.

536 | 537 |

<sup> The HTML Superscript element specifies inline text which is to be 538 | displayed as superscript for solely typographical reasons.

539 | 540 |

Demo

541 |

Some text needs to be small, some above the line like E=mc2.

542 |

And some below, like H2SO4.

543 | 544 |
545 | View example source 546 |
<p>Some text needs to be <small>small</small>, some above the line<sup>*</sup>, like E=mc<sup>2</sup>.</p>
 547 | <p>And some below, like H<sub>2</sub>SO<sub>4</sub>.</p>
548 |
549 | 550 |
551 | 552 |

Text decoration

553 | 554 |

<u> The HTML Unarticulated Annotation Element represents a span of inline 555 | text which should be rendered in a way that indicates that it has a non-textual annotation.

556 | 557 |

<s> elements render text with a strikethrough, or a line through 558 | it. Used to represent things that are no longer relevant or no longer accurate. 559 | However, it is not appropriate when indicating document edits; for that, use the 560 | <del> and <ins> elements, as appropriate.

561 | 562 |

Demo

563 |

These tags are styled as an underline or a strikethrough.

564 | 565 |
566 | View example source 567 |
<p>These tags are styled as an <u>underline</u> or a <s>strikethrough</s>.</p>
568 |
569 | 570 |
571 | 572 |

White space and containers

573 | 574 |

<br> elements produce a line break in text (carriage-return). It 575 | is useful for writing a poem or an address, where the division of lines is significant.

576 | 577 |

<wbr> elements represent a word break opportunity— a 578 | position within text where the browser may optionally break a line, though its line-breaking rules would not 579 | otherwise create a break at that location.

580 | 581 |
582 | 583 |

Language

584 | 585 |

<bdi> The HTML Bidirectional Isolate element tells the browser's 586 | bidirectional algorithm to treat the text it contains in isolation from its surrounding text.

587 | 588 |

<bdo> The HTML Bidirectional Text Override element overrides the current 589 | directionality of text, so that the text within is rendered in a different direction.

590 | 591 |

<ruby> elements represents a ruby annotation. Ruby annotations 592 | are for showing pronunciation of East Asian characters.

593 | 594 |

<rb> The HTML Ruby Base element is used to delimit the base text 595 | component of a <ruby> annotation, i.e. the text that is being annotated.

596 | 597 |

<rp> The HTML Ruby Fallback Parenthesis element is used to provide 598 | fall-back parentheses for browsers that do not support display of ruby annotations using the <ruby> 599 | element.

600 | 601 |

<rt> The HTML Ruby Text element specifies the ruby text component of a 602 | ruby annotation, which is used to provide pronunciation, translation, or transliteration information for East Asian 603 | typography. The <rt> element must always be contained within a <ruby> element.

604 | 605 |

<rtc> The HTML Ruby Text Container element embraces semantic annotations 606 | of characters presented in a ruby of <rb> elements used inside of <ruby> element. 607 | <rb> elements can have both pronunciation (<rt>) and semantic 608 | (<rtc>) annotations.

609 | 610 |

Demo

611 | 618 |

The English song "Oh I do like to be beside the seaside"

619 |

Looks like this in Hebrew: אה, אני אוהב להיות ליד חוף הים

620 |

In the computer's memory, this is stored as אה, אני אוהב להיות ליד חוף הים

621 | 622 | 字 623 | ( 624 | kanji) 625 | 626 | 627 | ( 628 | Malaysia 629 | ) 630 | 631 | 632 |
633 | View example source 634 |
<ul>
 635 |   <li><bdi class="name">Evil Steven</bdi>: 1st place</li>
 636 |   <li><bdi class="name">François fatale</bdi>: 2nd place</li>
 637 |   <li><span class="name">تیز سمی</span>: 3rd place</li>
 638 |   <li><bdi class="name">الرجل القوي إيان</bdi>: 4th place</li>
 639 |   <li><span class="name" dir="auto">تیز سمی</span>: 5th place</li>
 640 | </ul>
 641 | <p>The English song "Oh I do like to be beside the seaside"</p>
 642 | <p>Looks like this in Hebrew: <span dir="rtl">אה, אני אוהב להיות ליד חוף הים</span></p>
 643 | <p>In the computer's memory, this is stored as <bdo dir="ltr">אה, אני אוהב להיות ליד חוף הים</bdo></p>
 644 | <ruby>
 645 |   <rb>漢<rb>字
 646 |   <rp>(</rp><rt>kan<rt>ji<rp>)</rp>
 647 | </ruby>
 648 | <rtc xml:lang="en" style="ruby-position: over;">
 649 |     <rp>(</rp><rt>Malaysia</rt><rp>)</rp>
 650 | </rtc>
651 |
652 | 653 |
654 | 655 |

Image and multimedia

656 | 657 |

HTML supports various multimedia resources such as images, audio, and video.

658 | 659 |

Image maps

660 | 661 |

<area> elements define a hot-spot region on an image, and 662 | optionally associates it with a hypertext link. This element is used only within a <map> 663 | element.

664 | 665 |

<map> elements are used with <area> elements to 666 | define an image map (a clickable link area).

667 | 668 |

Demo

669 |

Haven't included a demo here, as they're not great responsively without some javascript to adjust sizes.

670 | 671 |
672 | View example source 673 |
<img src="workplace.jpg" alt="Workplace" usemap="#workmap">
 674 | <map name="workmap">
 675 |   <area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.htm">
 676 |   <area shape="rect" coords="290,172,333,250" alt="Phone" href="phone.htm">
 677 |   <area shape="circle" coords="337,300,44" alt="Coffee" href="coffee.htm">
 678 | </map>
679 |
680 | 681 |
682 | 683 |

Image, audio & motion

684 | 685 |

<audio> elements are used to embed sound content in documents. It 686 | may contain one or more audio sources, represented using the src attribute or the <source> element: 687 | the browser will choose the most suitable one. It can also be the destination for streamed media, using a 688 | MediaStream.

689 | 690 |

<picture> elements contains zero or more <source> elements 691 | and one <img> element to offer alternative versions of an image 692 | for different display/device scenarios.

693 | 694 |

<video> The HTML Video element embeds a media player which supports 695 | video playback into the document. You can use <video> for audio content as well, but the 696 | <audio> element may provide a more appropriate user experience.

697 | 698 |

<source> elements specify multiple media resources for the 699 | <picture>, the <audio> element, or the <video> element.

700 | 701 |

<track> elements are used as a child of the media elements 702 | <audio> and <video>. It lets you specify timed text tracks (or time-based data), 703 | for example to automatically handle subtitles. The tracks are formatted in WebVTT format (.vtt files) — Web 704 | Video Text Tracks or Timed Text Markup Language (TTML).

705 | 706 |

<img> The HTML image element embeds an image into the document.

707 | 708 |

Demo

709 |
710 | 711 | 712 | 713 | 714 |
Placeholder image
715 |
716 | 717 |
718 | 723 |
Simple piano melody
724 |
725 | 726 |
727 | 733 |
City traffic at night
734 |
735 | 736 |
737 | View example source 738 |
<figure>
 739 |   <picture>
 740 |     <source srcset="https://via.placeholder.com/960x150" media="(min-width: 800px)">
 741 |     <img src="https://via.placeholder.com/720x150" />
 742 |   </picture>
 743 |   <figcaption>Placeholder image</figcaption>
 744 | </figure>
 745 | <figure>
 746 |   <audio controls>
 747 |     <source src="audio.mp3" type="audio/mp3">
 748 |     <source src="audio.ogg" type="audio/ogg">
 749 |     Your browser does not support the <code>audio</code> element.
 750 |   </audio>
 751 |   <figcaption>Simple piano melody</figcaption>
 752 | </figure>
 753 | <figure>
 754 |   <video controls>
 755 |     <source src="video.mp4" type="video/mp4">
 756 |     <source src="video.ogg" type="video/ogg">
 757 |     <track default kind="captions" srclang="en" src="cue.vtt" />
 758 |     Sorry, your browser doesn't support embedded videos.
 759 |   </video>
 760 |   <figcaption>City traffic at night</figcaption>
 761 | </figure>
762 |
763 | 764 |
765 | 766 |

Embedded content

767 | 768 |

In addition to regular multimedia content, HTML can include a variety of other content, even if it's not always 769 | easy to interact with.

770 | 771 |

<embed> elements place external content at the specified point 772 | in the document. This content is provided by an external application or other source of interactive content such as a 773 | browser plug-in.

774 | 775 |

<object> elements represent an external resource, which can be 776 | treated as an image, a nested browsing context, or a resource to be handled by a plugin.

777 | 778 |

<param> The HTML parameter element defines parameters for an 779 | <object> element.

780 | 781 |

<iframe> The HTML Inline Frame element represents a nested browsing 782 | context, embedding another HTML page into the current one.

783 | 784 |

Generally objects and embeds are tricky for compatibility because it's hard to guarentee what the browser can renders, so not a huge amount of effort her went into styling here.

785 | 786 |

Demo

787 | 788 |
789 | View example source 790 |
<iframe title="Inline Frame Example" src="iframe.html"></iframe>
791 |
792 | 793 |
794 | 795 |

Scripting

796 |

In order to create dynamic content and Web applications, HTML supports the use of scripting 797 | languages, most prominently JavaScript. Certain elements support this capability.

798 | 799 |

<canvas> elements with either the canvas scripting API or 800 | the WebGL API to draw graphics and animations.

801 | 802 |

<noscript> elements defines a section of HTML to be inserted 803 | if a script type on the page is unsupported or if scripting is currently turned off in the browser.

804 | 805 |

<script> elements are used to embed or reference executable 806 | code; this is typically used to embed or refer to JavaScript code.

807 | 808 |

Demo

809 | 810 | Canvas Fallback 811 | 812 | 822 | 825 |
826 | View example source 827 |
<canvas id="clock" width="150" height="150">
 828 |   <img src="https://via.placeholder.com/150x150" width="150" height="150" alt="Canvas Fallback"/>
 829 | </canvas>
 830 | <script type="text/javascript">
 831 |   function draw() {
 832 |     var canvas = document.getElementById('tutorial');
 833 |     if (canvas.getContext) {
 834 |       var ctx = canvas.getContext('2d');
 835 |       ctx.fillRect(25, 25, 100, 100);
 836 |       ctx.clearRect(45, 45, 60, 60);
 837 |       ctx.strokeRect(50, 50, 50, 50);
 838 |     }
 839 |   }
 840 | </script>
 841 | <noscript>
 842 |   <p>You don't have javascript enabled.</p>
 843 | </noscript>
844 |
845 | 846 |
847 | 848 |

Demarcating edits

849 | 850 |

These elements let you provide indications that specific parts of the text have been altered.

851 | 852 |

<del> elements represent a range of text that has been deleted from a document.

853 | 854 |

<ins> elements represent a range of text that has been added to a document.

855 | 856 |

Demo

857 |

This is a smart pargraph of text with some hacked-in edits.

858 |
859 | View example source 860 |
<p>This is a <ins>smart</ins> pargraph of text with some <del>hacked-in</del> edits.</p>
861 |
862 | 863 | 864 |
865 | 866 |

Table content

867 | 868 |

The elements here are used to create and handle tabular data.

869 | 870 |

<caption> elements specify the caption (or title) of a 871 | table.

872 | 873 |

<col> The HTML column element defines a column within a table and is used for 874 | defining common semantics on all common cells. It is generally found within a <colgroup> 875 | element.

876 | 877 |

<colgroup> The HTML Column Group element defines a group of columns within a 878 | table.

879 | 880 |

<table> elements represent tabular data — that is, 881 | information presented in a two-dimensional table comprised of rows and columns of cells containing data.

882 | 883 |

<tbody> The HTML Table Body element encapsulates a set of table rows, indicating that 884 | they comprise the body of the table.

885 | 886 |

<td> or Table Data element defines a cell of a table that contains data. It 887 | participates in the table model.

888 | 889 |

<tfoot> elements define a set of rows summarizing the columns of the table.

890 | 891 |

<th> elements define a cell as header of a group of table cells. 892 | The exact nature of this group is defined by the scope and headers attributes.

893 | 894 |

<thead> element defines a set of rows defining the head of the columns of the table.

895 | 896 |

<tr> elements define a row of cells in a table. The row's cells 897 | can then be established using a mix of <td> (data cell) and <th> (header cell) 898 | elements.

899 | 900 |

Demo

901 | 907 | 908 | 909 | 910 | 911 | 912 | 913 | 914 | 915 | 916 | 917 | 918 | 919 | 920 | 921 | 922 | 923 | 924 | 925 | 926 | 927 | 928 | 929 | 930 | 931 | 932 | 933 | 934 | 935 |
All the numbers in a table
ItemsExpenditure
Donuts3,000
Stationery18,000
Totals21,000
936 | 937 |
938 | View example source 939 |
<style>
 940 |   .highlight { background: var(--color-access);}
 941 | </style>
 942 | <table>
 943 |   <caption style="caption-side:bottom">All the numbers in a table</caption>
 944 |   <colgroup>
 945 |       <col>
 946 |       <col span="1" class="highlight">
 947 |   </colgroup>
 948 |   <thead>
 949 |     <tr>
 950 |       <th>Items</th>
 951 |       <th scope="col">Expenditure</th>
 952 |     </tr>
 953 |   </thead>
 954 |   <tbody>
 955 |     <tr>
 956 |       <th scope="row">Donuts</th>
 957 |       <td>3,000</td>
 958 |     </tr>
 959 |     <tr>
 960 |       <th scope="row">Stationery</th>
 961 |       <td>18,000</td>
 962 |     </tr>
 963 |   </tbody>
 964 |   <tfoot>
 965 |     <tr>
 966 |       <th scope="row">Totals</th>
 967 |       <td>21,000</td>
 968 |     </tr>
 969 |   </tfoot>
 970 | </table>
971 |
972 | 973 |
974 | 975 |

Forms

976 | 977 |

HTML provides a number of elements which can be used together to create forms which the user can fill out and 978 | submit to the Web site or application. There's a great deal of further information about this available in the HTML 979 | forms guide.

980 | 981 |

<button> elements represent a clickable button, used to submit 982 | forms or anywhere in a document for accessible, standard button functionality.

983 | 984 |

<datalist> elements contains a set of <option> elements that 985 | represent the permissible or recommended options available to choose from within other controls.

986 | 987 |

<fieldset> elements are used to group several controls as well 988 | as labels within a web form.

989 | 990 |

<form> elements represents a document section containing interactive controls for submitting information.

991 | 992 |

<input> elements are used to create interactive controls for 993 | web-based forms in order to accept data from the user; a wide variety of types of input data and control widgets are 994 | available, depending on the device and user agent.

995 | 996 |

<label> elements represent a caption for an item in a user interface.

997 | 998 |

<legend> elements represent a caption for the content of its parent <fieldset> tag.

999 | 1000 |

<meter> elements represent either a scalar value within a known range or a fractional value.

1001 | 1002 |

<optgroup> elements create a grouping of options within a <select> element.

1003 | 1004 |

<option> elements are used to define an item contained in a 1005 | <select>, an <optgroup>, or a <datalist> element. As such, 1006 | <option> can represent menu items in popups and other lists of items in an HTML document.

1007 | 1008 |

<output> The HTML Output element is a container element into which a 1009 | site or app can inject the results of a calculation or the outcome of a user action.

1010 | 1011 |

<progress> elements display an indicator showing the 1012 | completion progress of a task, typically displayed as a progress bar.

1013 | 1014 |

<select> elements represent a control that provides a menu of options

1015 | 1016 |

<textarea> elements represent a multi-line plain-text editing control, useful when you 1017 | want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.

1018 | 1019 |

Demo

1020 |
1021 |
1022 | Sample form 1023 |

1024 | 1025 | 1026 |

1027 |

1028 | 1029 | 1030 |

1031 |

1032 | 1033 | 1034 | 1035 | 1036 | 1037 | 1038 | 1039 | 1040 | 1041 | 1042 |

1043 |

1044 | Tags included 1045 | 90 out of 100 1046 |

1047 |

1048 | Progress: 1049 | 1050 |

1051 |

1052 | 1053 | 1065 |

1066 |

1067 | 1068 | 1069 |

1070 |

1071 | 1072 | 1073 |

1074 |

1075 | 1076 | 1077 |

1078 |

1079 | 1080 | 1081 |

1082 |
1083 |
1084 | 1085 | 1086 |
1087 | 1088 |

Interactive elements

1089 | 1090 |

HTML offers a selection of elements which help to create interactive user interface objects.

1091 | 1092 |

<details> The HTML Details Element creates a disclosure widget in 1093 | which information is visible only when the widget is toggled into an "open" state. You can see these for each of the demo sections n this page.

1094 | 1095 |

<summary> The HTML Disclosure Summary element element specifies a 1096 | summary, caption, or legend for a <details> element's disclosure box.

1097 | 1098 |
1099 | View example source 1100 |
<details>
1101 |   <summary>View example source</summary>
1102 |   <pre>code goes here</pre>
1103 | </details>
1104 |
1105 | 1106 |
1107 | 1124 | 1125 | 1126 | 1127 | -------------------------------------------------------------------------------- /favicon.icns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hawkz/gdcss/d150be4e17835f2c213e0c66fb20e4e555b53fe4/favicon.icns -------------------------------------------------------------------------------- /favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hawkz/gdcss/d150be4e17835f2c213e0c66fb20e4e555b53fe4/favicon.ico -------------------------------------------------------------------------------- /gd.css: -------------------------------------------------------------------------------- 1 | :root { 2 | --unit: 1rem; 3 | --unit-2: 2rem; 4 | --unit-3: 3rem; 5 | --leading: 1.4; 6 | --measure: 960px; 7 | --measure-min: 288px; 8 | --font: -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; 9 | --font-header: var(--font); 10 | --color-body: #1a1a1a; 11 | --color-body-light: #626A6E; 12 | --color-body-inverted: #fff; 13 | --color-select: #b3d4fc; 14 | --color-access: #fd0; 15 | --color-error: #f00; 16 | --color-line: #b1b4b6; 17 | --color-light: #505050; 18 | --color-very-light: #f3f2f1; 19 | --color-primary: #005ea5; 20 | --color-primary-hover: #003078; 21 | --color-primary-active: #2b8cc4; 22 | --color-primary-visited: #4c2c92; 23 | --color-secondary: #005a30; 24 | --color-secondary-hover: #003E21; 25 | --color-secondary-active: #003E21; 26 | --color-secondary-visited: #00703c; 27 | --color-tertiary: #942514; 28 | --color-tertiary-hover: #6F0000; 29 | --color-tertiary-active: #6F0000; 30 | --color-tertiary-visited: #6F0000 31 | } 32 | 33 | .hide { 34 | position: absolute; 35 | left: -10000px; 36 | top: auto; 37 | width: 1px; 38 | height: 1px; 39 | overflow: hidden 40 | } 41 | 42 | ::placeholder { 43 | color: var(--color-body-light) 44 | } 45 | 46 | ::selection { 47 | background: var(--color-select); 48 | text-shadow: none 49 | } 50 | 51 | html { 52 | margin: 0; 53 | padding: 0; 54 | background: var(--color-body) 55 | } 56 | 57 | body { 58 | background: var(--color-body-inverted); 59 | margin: 0; 60 | padding: 0; 61 | font-family: var(--font); 62 | font-size: 100%; 63 | line-height: var(--leading); 64 | color: var(--color-body) 65 | } 66 | 67 | header { 68 | background: var(--color-body); 69 | color: var(--color-body-inverted); 70 | padding: var(--unit); 71 | overflow: hidden; 72 | /* display: grid */ 73 | } 74 | 75 | main header { 76 | padding-top: var(--unit-2); 77 | padding-bottom: var(--unit-2); 78 | color: var(--color-body); 79 | background: none; 80 | text-align: center 81 | } 82 | 83 | nav { 84 | /* display: grid; */ 85 | /* max-width: calc(var(--measure) - var(--unit-2)); */ 86 | /* grid-template-columns: repeat(auto-fit, 1fr); */ 87 | /* margin: var(--unit) auto; */ 88 | /* padding: 0 var(--unit-1); */ 89 | /* width: 100% */ 90 | } 91 | 92 | nav ol, nav ul { 93 | font-size: 1rem 94 | } 95 | 96 | header nav { 97 | /* padding: 0 var(--unit) */ 98 | max-width: var(--measure); 99 | margin: 0 auto; 100 | } 101 | 102 | header nav :last-child { 103 | text-align: right 104 | } 105 | 106 | nav a { 107 | color: var(--color-body) 108 | } 109 | 110 | nav ol, nav ul { 111 | margin: var(--unit) 0; 112 | padding: 0 113 | } 114 | 115 | header+nav { 116 | border-top: 10px solid var(--color-primary); 117 | max-width: var(--measure); 118 | margin: 0 auto var(--unit); 119 | padding: 0 var(--unit) 120 | } 121 | 122 | nav li { 123 | display: inline 124 | } 125 | 126 | header nav li+li { 127 | margin-left: var(--unit) 128 | } 129 | 130 | header+nav li+li:before { 131 | content: ''; 132 | display: inline-block; 133 | width: .5em; 134 | height: .5em; 135 | border: none; 136 | border-top: 1px solid var(--color-line); 137 | border-right: 1px solid var(--color-line); 138 | transform: rotate(45deg); 139 | margin: 0 .5em 0 0 140 | } 141 | 142 | article, main { 143 | padding: 0 var(--unit); 144 | margin: 0 auto; 145 | max-width: var(--measure) 146 | } 147 | 148 | main article { 149 | padding: var(--unit) 0; 150 | max-width: 640px 151 | } 152 | 153 | p { 154 | font-size: 1.1875rem 155 | } 156 | 157 | a { 158 | color: var(--color-primary) 159 | } 160 | 161 | a:hover { 162 | color: var(--color-primary-hover) 163 | } 164 | 165 | a:active { 166 | color: var(--color-primary-active) 167 | } 168 | 169 | a:focus { 170 | outline-offset: 0; 171 | outline: 3px solid transparent; 172 | color: var(--color-body); 173 | text-decoration: none; 174 | background-color: var(--color-access); 175 | box-shadow: 0 -2px var(--color-access), 0 2px var(--color-body) 176 | } 177 | 178 | a[href="javascript:history.back()"]:before, a[href="#top"]:before, figcaption:before { 179 | content: ''; 180 | display: inline-block; 181 | width: 0; 182 | height: 0; 183 | border-style: solid; 184 | border-color: transparent; 185 | border-right-color: transparent; 186 | clip-path: polygon(0% 50%, 100% 100%, 100% 0%); 187 | border-width: 5px 6px 5px 0; 188 | border-right-color: inherit; 189 | margin-right: .5em 190 | } 191 | 192 | a[href="#top"]:before { 193 | transform: rotate(90deg) 194 | } 195 | 196 | a[href*="://"]:after { 197 | content: ' ↗'; 198 | text-decoration: none !important 199 | } 200 | 201 | body>header a { 202 | color: var(--color-body-inverted); 203 | font-weight: 700; 204 | text-decoration: none 205 | } 206 | 207 | body>header a:hover { 208 | text-decoration: underline; 209 | color: var(--color-body-inverted) 210 | } 211 | 212 | h1, h2, h3, h4, h5, h6 { 213 | font-weight: bold; 214 | line-height: 1.2; 215 | margin: 1em 0 .6em; 216 | } 217 | 218 | h1 { 219 | font-size: 3.1579rem 220 | } 221 | 222 | h2 { 223 | font-size: 3rem 224 | } 225 | 226 | h3 { 227 | font-size: 2.25rem 228 | } 229 | 230 | h4 { 231 | font-size: 1.6875rem 232 | } 233 | 234 | h5 { 235 | font-size: 1.5rem 236 | } 237 | 238 | h6 { 239 | font-size: 1.1875rem 240 | } 241 | 242 | hgroup { 243 | margin-top: var(--unit-2); 244 | padding: var(--unit-2) var(--unit-1) 245 | } 246 | 247 | hgroup > :first-child { 248 | font-weight: 400; 249 | color: var(--color-body-light) 250 | } 251 | 252 | hgroup :last-child { 253 | font-weight: 700; 254 | margin-top: -.25em 255 | } 256 | 257 | hr { 258 | background: var(--color-line); 259 | height: 1px; 260 | border: none; 261 | margin: var(--unit-3) 0 262 | } 263 | 264 | section { 265 | display: grid; 266 | grid-template-columns: repeat(auto-fit, minmax(var(--measure-min), 1fr)); 267 | grid-column-gap: var(--unit-3) 268 | } 269 | 270 | section header { 271 | grid-column: 1/-1 272 | } 273 | 274 | section article { 275 | grid-column: span 2; 276 | padding-top: 0 277 | } 278 | 279 | form { 280 | display: block; 281 | margin: 0; 282 | padding: 0 283 | } 284 | 285 | fieldset { 286 | box-sizing: content-box; 287 | position: relative; 288 | border: 1px solid var(--color-line); 289 | border-top: none; 290 | border-right: none; 291 | padding: 1rem; 292 | margin: 0 0 var(--unit-2); 293 | position: relative; 294 | padding-top: 3rem 295 | } 296 | 297 | fieldset:before { 298 | content: ''; 299 | border: 1px solid var(--color-line); 300 | height: 3rem; 301 | position: absolute; 302 | top: -3.0625rem; 303 | top: 0; 304 | left: -1px; 305 | right: -1px; 306 | z-index: 0 307 | } 308 | 309 | fieldset:after { 310 | content: ''; 311 | border-right: 1px solid var(--color-line); 312 | position: absolute; 313 | top: 0; 314 | bottom: -1px; 315 | right: -1px 316 | } 317 | 318 | legend { 319 | display: block; 320 | position: absolute; 321 | top: 0; 322 | margin: 0 0 0 -1.0625rem; 323 | padding: var(--unit); 324 | border: 1px solid var(--color-line); 325 | border-bottom: none; 326 | font-size: 1rem; 327 | line-height: 1; 328 | background: var(--color-body-inverted) 329 | } 330 | 331 | legend:after { 332 | content: ''; 333 | border-top: 1px solid var(--color-body-inverted); 334 | position: absolute; 335 | bottom: -1px; 336 | left: 0; 337 | right: 0; 338 | z-index: 2 339 | } 340 | 341 | label { 342 | display: block; 343 | margin-bottom: calc(var(--unit) / 2) 344 | } 345 | 346 | button, input[type="submit"], input[type="button"], input[type="reset"] { 347 | width: auto; 348 | height: 2.5em; 349 | background-color: var(--color-secondary); 350 | border: 2px solid transparent; 351 | box-shadow: var(--color-body) 0 2px 0 0; 352 | box-sizing: border-box; 353 | color: #fff; 354 | cursor: pointer; 355 | display: inline-block; 356 | font-family: var(--font); 357 | font-size: 1.1875rem; 358 | font-weight: 400; 359 | line-height: 1; 360 | margin-bottom: var(--unit-2); 361 | margin-top: 0; 362 | text-align: center; 363 | vertical-align: baseline; 364 | -moz-appearance: none; 365 | -moz-osx-font-smoothing: grayscale; 366 | padding: 8px 10px 7px 367 | } 368 | 369 | input[type="button"] { 370 | background-color: var(--color-primary) 371 | } 372 | 373 | input[type="button"]:hover { 374 | background-color: var(--color-primary-hover) 375 | } 376 | 377 | input[type="reset"] { 378 | background-color: var(--color-tertiary) 379 | } 380 | 381 | input[type="reset"]:hover { 382 | background-color: var(--color-tertiary-hover) 383 | } 384 | 385 | button:hover, input[type="submit"]:hover { 386 | background: var(--color-secondary-hover) 387 | } 388 | 389 | button:active, input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active { 390 | transform: translateY(2px) 391 | } 392 | 393 | fieldset button, fieldset input[type="submit"], input[type="button"], input[type="reset"] { 394 | margin-bottom: 0 395 | } 396 | 397 | input[type="image"] { 398 | width: 40px; 399 | height: 40px; 400 | padding: 0; 401 | display: inline-block; 402 | background: var(--color-body) 403 | } 404 | 405 | input[type="search"] { 406 | width: calc(100% - 40px); 407 | display: inline-block; 408 | float: left 409 | } 410 | 411 | input, output { 412 | display: inline-block; 413 | font-size: 1.1875rem; 414 | line-height: var(--leading); 415 | font-family: var(--font); 416 | -webkit-font-smoothing: antialiased; 417 | -moz-osx-font-smoothing: grayscale; 418 | font-weight: 400; 419 | box-sizing: border-box; 420 | width: 100%; 421 | height: 2.5rem; 422 | margin-top: 0; 423 | padding: 5px; 424 | border: 2px solid var(--color-body); 425 | border-radius: 0; 426 | appearance: none 427 | } 428 | 429 | output { 430 | font-weight: 700 431 | } 432 | 433 | input[type="file"] { 434 | padding: 0 7px 0 0; 435 | border: none 436 | } 437 | 438 | input[type="color"] { 439 | width: 3rem 440 | } 441 | 442 | input[type="checkbox"], input[type="radio"] { 443 | position: absolute; 444 | left: -10000px; 445 | top: auto; 446 | width: 1px; 447 | height: 1px; 448 | overflow: hidden 449 | } 450 | 451 | input[type="radio"]+label { 452 | display: inline-block; 453 | position: relative; 454 | padding-left: 3.5rem; 455 | padding-right: 2rem; 456 | padding-bottom: 0.75rem; 457 | cursor: pointer 458 | } 459 | 460 | input[type="radio"]+label:before { 461 | content: ""; 462 | display: inline-block; 463 | box-sizing: border-box; 464 | position: absolute; 465 | left: -.5rem; 466 | top: 0; 467 | margin-top: -.75rem; 468 | vertical-align: baseline; 469 | width: 3rem; 470 | height: 3rem; 471 | background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cg fill="none" fill-rule="evenodd" stroke="%23FFF" transform="translate(1 1)"%3E%3Ccircle cx="23.5" cy="23.5" r="21.5" fill="%23000" stroke-width="4"/%3E%3Ccircle cx="23.5" cy="23.5" r="14" fill="%23FFF" stroke-width="7"/%3E%3C/g%3E%3C/svg%3E'); 472 | cursor: pointer; 473 | background-size: cover 474 | } 475 | 476 | input[type="radio"]:checked+label:before { 477 | background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cg fill="%23000" fill-rule="evenodd" stroke="%23FFF" transform="translate(1 1)"%3E%3Ccircle cx="23.5" cy="23.5" r="21.5" stroke-width="4"/%3E%3Ccircle cx="23.5" cy="23.5" r="14" stroke-width="7"/%3E%3C/g%3E%3C/svg%3E') 478 | } 479 | 480 | input[type="radio"]:focus+label:before { 481 | background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cg fill="none" fill-rule="evenodd" transform="translate(1 1)"%3E%3Ccircle cx="23.5" cy="23.5" r="21.5" fill="%23000" stroke="%23FD0" stroke-width="4"/%3E%3Ccircle cx="23.5" cy="23.5" r="13" fill="%23FFF" stroke="%23FFF" stroke-width="6"/%3E%3C/g%3E%3C/svg%3E%0A') 482 | } 483 | 484 | input[type="radio"]:focus:checked+label:before { 485 | background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cg fill="%23000" fill-rule="evenodd" transform="translate(1 1)"%3E%3Ccircle cx="23.5" cy="23.5" r="21.5" stroke="%23FD0" stroke-width="4"/%3E%3Ccircle cx="23.5" cy="23.5" r="13" stroke="%23FFF" stroke-width="6"/%3E%3C/g%3E%3C/svg%3E') 486 | } 487 | 488 | input[type="checkbox"]+label { 489 | position: relative; 490 | display: inline-block; 491 | padding-left: 3.5rem; 492 | padding-right: 2rem; 493 | padding-bottom: 0.75rem; 494 | cursor: pointer 495 | } 496 | 497 | input[type="checkbox"]+label:before { 498 | content: ""; 499 | display: inline-block; 500 | box-sizing: border-box; 501 | position: absolute; 502 | left: -.25rem; 503 | top: 0; 504 | margin-top: -.75rem; 505 | vertical-align: baseline; 506 | width: 3rem; 507 | height: 3rem; 508 | background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 49"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="%23000" stroke="%23FFF" stroke-width="3" d="M2 2h45v45H2z"/%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="2" d="M4.5 4.5h40v40h-40z"/%3E%3C/g%3E%3C/svg%3E%0A'); 509 | cursor: pointer; 510 | background-size: cover 511 | } 512 | 513 | input[type="checkbox"]:checked+label:before { 514 | background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 49"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="%23000" stroke="%23FFF" stroke-width="3" d="M2 2.4h45v45H2z"/%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="2" d="M4.5 5h40v40h-40z"/%3E%3Cpath fill="%23000" d="M15.6 23.4l5 5 12.7-12.8 3.6 3.6-16.3 16.2L12 27z"/%3E%3C/g%3E%3C/svg%3E') 515 | } 516 | 517 | input[type="checkbox"]:focus+label:before { 518 | background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 49"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="%23000" stroke="%23FD0" stroke-width="3" d="M2 2h45v45H2z"/%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="4" d="M5.5 5.5h38v38h-38z"/%3E%3C/g%3E%3C/svg%3E%0A') 519 | } 520 | 521 | input[type="checkbox"]:focus:checked+label:before { 522 | background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 49"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="%23000" stroke="%23FD0" stroke-width="3" d="M2 2h45v45H2z"/%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="4" d="M5.5 5.5h38v38h-38z"/%3E%3Cpath fill="%23000" d="M15.6 23l5 5 12.7-12.8 3.6 3.5L20.6 35 12 26.5z"/%3E%3C/g%3E%3C/svg%3E%0A') 523 | } 524 | 525 | input:disabled { 526 | cursor: default 527 | } 528 | 529 | input[type="time"] { 530 | width: 7rem 531 | } 532 | 533 | input[type="date"], input[type="week"], input[type="month"] { 534 | width: 14rem 535 | } 536 | 537 | input[type="datetime"], input[type="datetime-local"] { 538 | width: 16rem 539 | } 540 | 541 | select { 542 | font-size: 1.1875rem; 543 | line-height: 1.25; 544 | box-sizing: border-box; 545 | font-family: var(--font); 546 | font-weight: 400; 547 | max-width: 100%; 548 | min-width: 14rem; 549 | height: 40px; 550 | height: 2.5rem; 551 | padding: 5px; 552 | border: 2px solid var(--color-body); 553 | border-radius: 0; 554 | -webkit-border-radius: 0; 555 | -webkit-font-smoothing: antialiased; 556 | -moz-osx-font-smoothing: grayscale 557 | } 558 | 559 | textarea { 560 | display: block; 561 | box-sizing: border-box; 562 | width: 100%; 563 | padding: 5px; 564 | font-family: var(--font); 565 | min-height: 5.375rem; 566 | margin-bottom: var(--unit); 567 | font-size: 1.1875rem; 568 | line-height: 1.25; 569 | font-weight: 400; 570 | resize: vertical; 571 | border: 2px solid var(--color-body); 572 | border-radius: 0; 573 | -webkit-appearance: none; 574 | -webkit-font-smoothing: antialiased; 575 | -moz-osx-font-smoothing: grayscale; 576 | -webkit-box-sizing: border-box 577 | } 578 | 579 | textarea:focus, input:focus, button:focus, select:focus { 580 | outline: 3px solid var(--color-access); 581 | outline-offset: 0; 582 | box-shadow: inset 0 0 0 2px 583 | } 584 | 585 | input[type=range] { 586 | -webkit-appearance: none; 587 | width: 100%; 588 | margin: 0; 589 | border: none; 590 | padding: 0 591 | } 592 | 593 | input[type=range]:focus { 594 | outline: none; 595 | box-shadow: none 596 | } 597 | 598 | input[type=range]::-webkit-slider-runnable-track { 599 | width: 100%; 600 | height: 4px; 601 | cursor: pointer; 602 | box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0); 603 | background: rgba(80, 80, 80, 0.5); 604 | border-radius: 0; 605 | border: 0 solid #1a1a1a 606 | } 607 | 608 | input[type=range]::-webkit-slider-thumb { 609 | box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0); 610 | border: 2px solid #000; 611 | height: 32px; 612 | width: 33px; 613 | border-radius: 32px; 614 | background: #fff; 615 | cursor: pointer; 616 | -webkit-appearance: none; 617 | margin-top: -14px 618 | } 619 | 620 | input[type=range]:focus::-webkit-slider-runnable-track { 621 | background: rgba(139, 139, 139, 0.5) 622 | } 623 | 624 | input[type=range]::-moz-range-track { 625 | width: 100%; 626 | height: 4px; 627 | cursor: pointer; 628 | box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0); 629 | background: rgba(80, 80, 80, 0.5); 630 | border-radius: 0; 631 | border: 0 solid #1a1a1a 632 | } 633 | 634 | input[type=range]::-moz-range-thumb { 635 | box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0); 636 | border: 2px solid #000; 637 | height: 32px; 638 | width: 33px; 639 | border-radius: 32px; 640 | background: #fff; 641 | cursor: pointer 642 | } 643 | 644 | input[type=range]::-ms-track { 645 | width: 100%; 646 | height: 4px; 647 | cursor: pointer; 648 | background: transparent; 649 | border-color: transparent; 650 | color: transparent 651 | } 652 | 653 | input[type=range]::-ms-fill-lower { 654 | background: rgba(21, 21, 21, 0.5); 655 | border: 0 solid #1a1a1a; 656 | border-radius: 0; 657 | box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0) 658 | } 659 | 660 | input[type=range]::-ms-fill-upper { 661 | background: rgba(80, 80, 80, 0.5); 662 | border: 0 solid #1a1a1a; 663 | border-radius: 0; 664 | box-shadow: 1px 1px 1px rgba(0, 0, 0, 0), 0 0 1px rgba(13, 13, 13, 0) 665 | } 666 | 667 | input[type=range]::-ms-thumb { 668 | box-shadow: 0 0 0 rgba(0, 0, 0, 0), 0 0 0 rgba(13, 13, 13, 0); 669 | border: 2px solid #000; 670 | height: 32px; 671 | width: 33px; 672 | border-radius: 32px; 673 | background: #fff; 674 | cursor: pointer; 675 | height: 4px 676 | } 677 | 678 | input[type=range]:focus::-ms-fill-lower { 679 | background: rgba(80, 80, 80, 0.5) 680 | } 681 | 682 | input[type=range]:focus::-ms-fill-upper { 683 | background: rgba(139, 139, 139, 0.5) 684 | } 685 | 686 | input[type=range]:focus::-webkit-slider-thumb, input[type=range]:focus::-moz-range-thumb, input[type=range]:focus::-ms-thumb { 687 | box-shadow: 2px 2px 0 #fd0 688 | } 689 | 690 | address { 691 | display: block; 692 | margin: var(--unit) 0 693 | } 694 | 695 | strong, b { 696 | font-weight: 700 697 | } 698 | 699 | em, i { 700 | font-style: italic 701 | } 702 | 703 | blockquote { 704 | font-size: 1.1875rem; 705 | padding: var(--unit); 706 | margin: var(--unit-2) 0; 707 | clear: both; 708 | border-left: 10px solid var(--color-line) 709 | } 710 | 711 | cite { 712 | color: var(--color-body-h4); 713 | opacity: .75; 714 | font-style: italic; 715 | padding: .5rem 0 716 | } 717 | 718 | blockquote q { 719 | font-size: 1.5rem 720 | } 721 | 722 | blockquote cite { 723 | display: block; 724 | font-size: 1rem 725 | } 726 | 727 | q:before { 728 | content: "“" 729 | } 730 | 731 | q:after { 732 | content: "”" 733 | } 734 | 735 | ins { 736 | color: var(--color-secondary) 737 | } 738 | 739 | del { 740 | color: var(--color-tertiary) 741 | } 742 | 743 | code { 744 | font-size: 1rem 745 | } 746 | 747 | kbd { 748 | font-size: 1rem; 749 | background: black; 750 | color: white; 751 | outline: 0.2em solid black; 752 | } 753 | 754 | mark { 755 | font-size: 1rem; 756 | background-color: var(--color-access); 757 | outline: 0.2em solid var(--color-access) 758 | } 759 | 760 | var { 761 | display: inline-block; 762 | color: #fff; 763 | background-color: var(--color-primary); 764 | border-radius: 0.1em; 765 | letter-spacing: 1px; 766 | text-decoration: none; 767 | text-transform: uppercase; 768 | font-style: normal; 769 | font-weight: 700; 770 | line-height: 1; 771 | padding: 0.1em 0.2em; 772 | } 773 | 774 | pre { 775 | max-width: 100%; 776 | display: block; 777 | overflow: auto; 778 | font-size: 1rem; 779 | border: 0; 780 | outline: 1px solid transparent; 781 | background-color: var(--color-very-light); 782 | margin: var(--unit) 0; 783 | padding: var(--unit); 784 | border: 1px solid var(--color-line) 785 | } 786 | 787 | samp { 788 | font-size: 1rem 789 | } 790 | 791 | dl { 792 | display: grid; 793 | grid-column-gap: var(--unit-2); 794 | grid-row-gap: var(--unit); 795 | grid-template-columns: [dt] max-content [dd] 1fr; 796 | margin: var(--unit) 0 var(--unit-2) 797 | } 798 | 799 | dt { 800 | font-weight: 700; 801 | grid-column-start: dt; 802 | grid-column-end: dt 803 | } 804 | 805 | dd { 806 | margin: 0; 807 | padding: 0; 808 | grid-column-start: dd; 809 | grid-column-end: dd 810 | } 811 | 812 | ul, ol { 813 | line-height: var(--leading); 814 | padding-left: 1.25rem; 815 | margin: var(--unit) 0 var(--unit-2); 816 | font-size: 1.1875rem 817 | } 818 | 819 | ul { 820 | list-style-type: disc; 821 | padding-left: 1.25rem 822 | } 823 | 824 | li { 825 | margin-bottom: .3125rem 826 | } 827 | 828 | summary, summary:hover { 829 | margin-left: -1.5rem; 830 | font-size: 1.1875rem; 831 | color: var(--color-primary); 832 | font-weight: 400; 833 | cursor: pointer; 834 | margin-bottom: 1rem 835 | } 836 | 837 | summary:hover { 838 | text-decoration: underline 839 | } 840 | 841 | summary:active { 842 | color: var(--color-primary-active); 843 | text-decoration: underline 844 | } 845 | 846 | summary:focus { 847 | outline: 0 848 | } 849 | 850 | details { 851 | position: relative; 852 | padding: 0 0 0 1.5625rem; 853 | margin-bottom: var(--unit) 854 | } 855 | 856 | details[open]:before { 857 | content: ''; 858 | border-left: 10px solid var(--color-line); 859 | position: absolute; 860 | top: 2.2rem; 861 | left: .125rem; 862 | bottom: -.625rem 863 | } 864 | 865 | table, table thead { 866 | border-collapse: collapse; 867 | border-radius: var(--border-radius); 868 | padding: 0 869 | } 870 | 871 | table { 872 | border: 1px solid var(--color-bg-secondary); 873 | border-spacing: 0; 874 | overflow-x: scroll; 875 | overflow-y: hidden; 876 | min-width: 100%; 877 | overflow: scroll; 878 | border: 0; 879 | width: 100%; 880 | table-layout: fixed 881 | } 882 | 883 | caption { 884 | padding: 0.5em 0; 885 | color: var(--color-body-light) 886 | } 887 | 888 | td, th, tr { 889 | padding: .4rem .8rem; 890 | text-align: var(--justify-important) 891 | } 892 | 893 | thead { 894 | background-color: var(--color); 895 | margin: 0; 896 | color: var(--color-text); 897 | background: 0 0; 898 | font-weight: 700 899 | } 900 | 901 | thead th:first-child { 902 | border-top-left-radius: var(--border-radius) 903 | } 904 | 905 | thead th:last-child { 906 | border-top-right-radius: var(--border-radius) 907 | } 908 | 909 | thead th:first-child, tr td:first-child { 910 | text-align: var(--justify-normal) 911 | } 912 | 913 | tr { 914 | border-bottom: 1px solid gray 915 | } 916 | 917 | tbody th { 918 | text-align: left 919 | } 920 | 921 | frame, frameset, iframe { 922 | border: 2px solid var(--color-body); 923 | margin: 0; 924 | width: 100%; 925 | height: auto 926 | } 927 | 928 | img, picture { 929 | display: block; 930 | max-width: 100%; 931 | height: auto 932 | } 933 | 934 | figure { 935 | margin: 0 0 var(--unit-2) 936 | } 937 | 938 | figcaption { 939 | padding: .5em 0; 940 | color: var(--color-light); 941 | font-size: 1rem 942 | } 943 | 944 | figcaption:before { 945 | transform: rotate(90deg) 946 | } 947 | 948 | audio, embed, object, video, iframe { 949 | width: 100%; 950 | } 951 | 952 | progress, meter { 953 | margin: var(--unit) 0; 954 | width: 100%; 955 | height: var(--unit); 956 | border: none; 957 | border-radius: .25rem; 958 | overflow: hidden; 959 | background: var(--color-very-light); 960 | display: block; 961 | --background: var(--color-very-light); 962 | --optimum: #228b22; 963 | --sub-optimum: #ffd700; 964 | --sub-sub-optimum: #dc143c 965 | } 966 | 967 | progress[value]::-webkit-progress-bar { 968 | background: var(--color-very-light) 969 | } 970 | 971 | progress[value]::-webkit-progress-value { 972 | background: var(--color-primary) 973 | } 974 | 975 | meter::-webkit-meter-bar { 976 | background: var(--color-very-light) 977 | } 978 | 979 | meter:-moz-meter-optimum::-moz-meter-bar { 980 | background: var(--optimum) 981 | } 982 | 983 | meter::-webkit-meter-optimum-value { 984 | background: var(--optimum) 985 | } 986 | 987 | meter:-moz-meter-sub-optimum::-moz-meter-bar { 988 | background: var(--sub-optimum) 989 | } 990 | 991 | meter::-webkit-meter-suboptimum-value { 992 | background: var(--sub-optimum) 993 | } 994 | 995 | meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { 996 | background: var(--sub-sub-optimum) 997 | } 998 | 999 | meter::-webkit-meter-even-less-good-value { 1000 | background: var(--sub-sub-optimum) 1001 | } 1002 | 1003 | body>footer { 1004 | margin: 0; 1005 | margin-top: var(--unit-3); 1006 | padding: var(--unit-3) 0; 1007 | border-top: 1px solid var(--color-line); 1008 | background: var(--color-very-light); 1009 | overflow: hidden 1010 | } 1011 | 1012 | body>footer a { 1013 | color: var(--color-body) 1014 | } 1015 | 1016 | @media all and (min-width: 640px) { 1017 | nav { 1018 | display: flex; 1019 | } 1020 | nav > * { 1021 | flex-basis: 0; 1022 | flex-grow: 1; 1023 | flex-shrink: 1; 1024 | } 1025 | } 1026 | 1027 | @media all and (min-width: 960px) { 1028 | header+nav { 1029 | padding: 0; 1030 | } 1031 | } 1032 | 1033 | @media screen and (max-width:640px) { 1034 | table thead { 1035 | border: 0; 1036 | clip: rect(0 0 0 0); 1037 | height: 1px; 1038 | margin: -1px; 1039 | overflow: hidden; 1040 | padding: 0; 1041 | position: absolute; 1042 | width: 1px 1043 | } 1044 | 1045 | table tr { 1046 | display: block; 1047 | border: 0 1048 | } 1049 | 1050 | table td, table th { 1051 | display: block; 1052 | text-align: right !important; 1053 | border-bottom: 1px solid 1054 | } 1055 | 1056 | table td::before { 1057 | content: attr(data-label); 1058 | float: left; 1059 | font-weight: 700; 1060 | text-transform: uppercase 1061 | } 1062 | } 1063 | -------------------------------------------------------------------------------- /gd.min.css: -------------------------------------------------------------------------------- 1 | body,html{margin:0;padding:0}article,header+nav,main{padding:0 var(--unit)}article,header nav,main{margin:0 auto;max-width:var(--measure)}article,header nav,header+nav,main{max-width:var(--measure)}a:focus,body,body>footer a,main header,nav a{color:var(--color-body)}body,legend{background:var(--color-body-inverted)}header,html,input[type=image]{background:var(--color-body)}input[type=checkbox]+label,input[type=radio]+label{padding-left:3.5rem;padding-right:2rem;padding-bottom:.75rem;position:relative}input[type=checkbox]+label:before,input[type=radio]+label:before{content:"";margin-top:-.75rem;vertical-align:baseline;cursor:pointer}cite,em,i{font-style:italic}a:focus,mark{background-color:var(--color-access)}a:focus,body>header a,var{text-decoration:none}legend,var{line-height:1}blockquote,header,legend,pre{padding:var(--unit)}dl,section{display:grid}body,input,ol,output,ul{line-height:var(--leading)}dl,ol,ul{margin:var(--unit) 0 var(--unit-2)}ol,ul{padding-left:1.25rem}body>header a:hover,summary:active,summary:hover{text-decoration:underline}details,textarea{margin-bottom:var(--unit)}caption,hgroup>:first-child{color:var(--color-body-light)}img,picture,pre,select{max-width:100%}fieldset,figure{margin:0 0 var(--unit-2)}address,meter,nav ol,nav ul,pre,progress{margin:var(--unit) 0}address,form,img,label,legend,meter,picture,pre,progress,textarea{display:block}:root{--unit:1rem;--unit-2:2rem;--unit-3:3rem;--leading:1.4;--measure:960px;--measure-min:288px;--font:-apple-system,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;--font-header:var(--font);--color-body:#1a1a1a;--color-body-light:#626A6E;--color-body-inverted:#fff;--color-select:#b3d4fc;--color-access:#fd0;--color-error:#f00;--color-line:#b1b4b6;--color-light:#505050;--color-very-light:#f3f2f1;--color-primary:#005ea5;--color-primary-hover:#003078;--color-primary-active:#2b8cc4;--color-primary-visited:#4c2c92;--color-secondary:#005a30;--color-secondary-hover:#003E21;--color-secondary-active:#003E21;--color-secondary-visited:#00703c;--color-tertiary:#942514;--color-tertiary-hover:#6F0000;--color-tertiary-active:#6F0000;--color-tertiary-visited:#6F0000}.hide,input[type=checkbox],input[type=radio]{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}fieldset:after,fieldset:before,input[type=radio]+label:before,legend{top:0;position:absolute}::placeholder{color:var(--color-body-light)}::selection{background:var(--color-select);text-shadow:none}body{font-family:var(--font);font-size:100%}header{color:var(--color-body-inverted);overflow:hidden}main header{padding-top:var(--unit-2);padding-bottom:var(--unit-2);background:0 0;text-align:center}nav ol,nav ul{font-size:1rem;padding:0}header nav :last-child{text-align:right}header+nav{border-top:10px solid var(--color-primary);margin:0 auto var(--unit)}nav li{display:inline}header nav li+li{margin-left:var(--unit)}header+nav li+li:before{content:'';display:inline-block;width:.5em;height:.5em;border:none;border-top:1px solid var(--color-line);border-right:1px solid var(--color-line);transform:rotate(45deg);margin:0 .5em 0 0}main article{padding:var(--unit) 0;max-width:640px}h6,p{font-size:1.1875rem}a{color:var(--color-primary)}a:hover{color:var(--color-primary-hover)}a:active{color:var(--color-primary-active)}a:focus{outline-offset:0;outline:transparent solid 3px;box-shadow:0 -2px var(--color-access),0 2px var(--color-body)}a[href="#top"]:before,a[href="javascript:history.back()"]:before,figcaption:before{content:'';display:inline-block;width:0;height:0;border-style:solid;border-color:transparent;clip-path:polygon(0% 50%,100% 100%,100% 0%);border-width:5px 6px 5px 0;border-right-color:inherit;margin-right:.5em}fieldset,fieldset:before,legend{border:1px solid var(--color-line)}input,output,select{height:2.5rem;border:2px solid var(--color-body)}dd,form,input[type=range]{margin:0;padding:0}a[href="#top"]:before,figcaption:before{transform:rotate(90deg)}a[href*="://"]:after{content:' ↗';text-decoration:none!important}body>header a{color:var(--color-body-inverted);font-weight:700}body>header a:hover{color:var(--color-body-inverted)}h1,h2,h3,h4,h5,h6{font-weight:700;line-height:1.2;margin:1em 0 .6em}h1{font-size:3.1579rem}h2{font-size:3rem}h3{font-size:2.25rem}h4{font-size:1.6875rem}blockquote q,h5{font-size:1.5rem}hgroup{margin-top:var(--unit-2);padding:var(--unit-2) var(--unit-1)}hgroup>:first-child{font-weight:400}kbd,var{color:#fff}hgroup :last-child{font-weight:700;margin-top:-.25em}hr{background:var(--color-line);height:1px;border:none;margin:var(--unit-3) 0}section{grid-template-columns:repeat(auto-fit,minmax(var(--measure-min),1fr));grid-column-gap:var(--unit-3)}section header{grid-column:1/-1}section article{grid-column:span 2;padding-top:0}fieldset{box-sizing:content-box;border-top:none;border-right:none;padding:3rem 1rem 1rem;position:relative}fieldset:before{content:'';height:3rem;left:-1px;right:-1px;z-index:0}fieldset:after{content:'';border-right:1px solid var(--color-line);bottom:-1px;right:-1px}legend{margin:0 0 0 -1.0625rem;border-bottom:none;font-size:1rem}button,input,input[type=button],input[type=reset],input[type=submit],output{font-size:1.1875rem;font-family:var(--font);-moz-osx-font-smoothing:grayscale;font-weight:400;box-sizing:border-box;margin-top:0;display:inline-block}legend:after{content:'';border-top:1px solid var(--color-body-inverted);position:absolute;bottom:-1px;left:0;right:0;z-index:2}label{margin-bottom:calc(var(--unit)/ 2)}button,input[type=button],input[type=reset],input[type=submit]{width:auto;height:2.5em;background-color:var(--color-secondary);border:2px solid transparent;box-shadow:var(--color-body) 0 2px 0 0;color:#fff;cursor:pointer;line-height:1;margin-bottom:var(--unit-2);text-align:center;vertical-align:baseline;-moz-appearance:none;padding:8px 10px 7px}input[type=button],var{background-color:var(--color-primary)}input[type=button]:hover{background-color:var(--color-primary-hover)}input[type=reset]{background-color:var(--color-tertiary)}input[type=reset]:hover{background-color:var(--color-tertiary-hover)}button:hover,input[type=submit]:hover{background:var(--color-secondary-hover)}button:active,input[type=button]:active,input[type=reset]:active,input[type=submit]:active{transform:translateY(2px)}fieldset button,fieldset input[type=submit],input[type=button],input[type=reset]{margin-bottom:0}input[type=image]{width:40px;height:40px;padding:0;display:inline-block}input[type=search]{width:calc(100% - 40px);display:inline-block;float:left}input,output{-webkit-font-smoothing:antialiased;width:100%;padding:5px;border-radius:0;appearance:none}input[type=range],textarea{-webkit-appearance:none;width:100%}b,output,strong{font-weight:700}select,textarea{box-sizing:border-box;padding:5px;font-family:var(--font);line-height:1.25;font-weight:400;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:1.1875rem}input[type=file]{padding:0 7px 0 0;border:none}input[type=color]{width:3rem}input[type=radio]+label{display:inline-block;cursor:pointer}input[type=radio]+label:before{display:inline-block;box-sizing:border-box;left:-.5rem;width:3rem;height:3rem;background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cg fill="none" fill-rule="evenodd" stroke="%23FFF" transform="translate(1 1)"%3E%3Ccircle cx="23.5" cy="23.5" r="21.5" fill="%23000" stroke-width="4"/%3E%3Ccircle cx="23.5" cy="23.5" r="14" fill="%23FFF" stroke-width="7"/%3E%3C/g%3E%3C/svg%3E') 0 0/cover}input[type=radio]:checked+label:before{background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cg fill="%23000" fill-rule="evenodd" stroke="%23FFF" transform="translate(1 1)"%3E%3Ccircle cx="23.5" cy="23.5" r="21.5" stroke-width="4"/%3E%3Ccircle cx="23.5" cy="23.5" r="14" stroke-width="7"/%3E%3C/g%3E%3C/svg%3E')}input[type=radio]:focus+label:before{background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cg fill="none" fill-rule="evenodd" transform="translate(1 1)"%3E%3Ccircle cx="23.5" cy="23.5" r="21.5" fill="%23000" stroke="%23FD0" stroke-width="4"/%3E%3Ccircle cx="23.5" cy="23.5" r="13" fill="%23FFF" stroke="%23FFF" stroke-width="6"/%3E%3C/g%3E%3C/svg%3E%0A')}input[type=radio]:focus:checked+label:before{background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"%3E%3Cg fill="%23000" fill-rule="evenodd" transform="translate(1 1)"%3E%3Ccircle cx="23.5" cy="23.5" r="21.5" stroke="%23FD0" stroke-width="4"/%3E%3Ccircle cx="23.5" cy="23.5" r="13" stroke="%23FFF" stroke-width="6"/%3E%3C/g%3E%3C/svg%3E')}input[type=checkbox]+label{display:inline-block;cursor:pointer}input[type=checkbox]+label:before{display:inline-block;box-sizing:border-box;position:absolute;left:-.25rem;top:0;width:3rem;height:3rem;background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 49"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="%23000" stroke="%23FFF" stroke-width="3" d="M2 2h45v45H2z"/%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="2" d="M4.5 4.5h40v40h-40z"/%3E%3C/g%3E%3C/svg%3E%0A') 0 0/cover}input[type=checkbox]:checked+label:before{background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 49"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="%23000" stroke="%23FFF" stroke-width="3" d="M2 2.4h45v45H2z"/%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="2" d="M4.5 5h40v40h-40z"/%3E%3Cpath fill="%23000" d="M15.6 23.4l5 5 12.7-12.8 3.6 3.6-16.3 16.2L12 27z"/%3E%3C/g%3E%3C/svg%3E')}input[type=checkbox]:focus+label:before{background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 49"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="%23000" stroke="%23FD0" stroke-width="3" d="M2 2h45v45H2z"/%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="4" d="M5.5 5.5h38v38h-38z"/%3E%3C/g%3E%3C/svg%3E%0A')}input[type=checkbox]:focus:checked+label:before{background:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 49 49"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cpath fill="%23000" stroke="%23FD0" stroke-width="3" d="M2 2h45v45H2z"/%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="4" d="M5.5 5.5h38v38h-38z"/%3E%3Cpath fill="%23000" d="M15.6 23l5 5 12.7-12.8 3.6 3.5L20.6 35 12 26.5z"/%3E%3C/g%3E%3C/svg%3E%0A')}input:disabled{cursor:default}input[type=time]{width:7rem}input[type=date],input[type=month],input[type=week]{width:14rem}input[type=datetime-local],input[type=datetime]{width:16rem}select{min-width:14rem;border-radius:0;-webkit-border-radius:0}textarea{min-height:5.375rem;resize:vertical;border:2px solid var(--color-body);border-radius:0;-webkit-box-sizing:border-box}dt,var{font-weight:700}button:focus,input:focus,select:focus,textarea:focus{outline:3px solid var(--color-access);outline-offset:0;box-shadow:inset 0 0 0 2px}input[type=range]{border:none}input[type=range]:focus{outline:0;box-shadow:none}input[type=range]::-webkit-slider-runnable-track{width:100%;height:4px;cursor:pointer;box-shadow:1px 1px 1px transparent,0 0 1px rgba(13,13,13,0);background:rgba(80,80,80,.5);border-radius:0;border:0 solid #1a1a1a}input[type=range]::-webkit-slider-thumb{box-shadow:0 0 0 transparent,0 0 0 rgba(13,13,13,0);border:2px solid #000;height:32px;width:33px;border-radius:32px;background:#fff;cursor:pointer;-webkit-appearance:none;margin-top:-14px}input[type=range]:focus::-webkit-slider-runnable-track{background:rgba(139,139,139,.5)}input[type=range]::-moz-range-track{width:100%;height:4px;cursor:pointer;box-shadow:1px 1px 1px transparent,0 0 1px rgba(13,13,13,0);background:rgba(80,80,80,.5);border-radius:0;border:0 solid #1a1a1a}input[type=range]::-moz-range-thumb{box-shadow:0 0 0 transparent,0 0 0 rgba(13,13,13,0);border:2px solid #000;height:32px;width:33px;border-radius:32px;background:#fff;cursor:pointer}input[type=range]::-ms-track{width:100%;height:4px;cursor:pointer;background:0 0;border-color:transparent;color:transparent}blockquote,details[open]:before{border-left:10px solid var(--color-line)}input[type=range]::-ms-fill-lower{background:rgba(21,21,21,.5);border:0 solid #1a1a1a;border-radius:0;box-shadow:1px 1px 1px transparent,0 0 1px rgba(13,13,13,0)}input[type=range]::-ms-fill-upper{background:rgba(80,80,80,.5);border:0 solid #1a1a1a;border-radius:0;box-shadow:1px 1px 1px transparent,0 0 1px rgba(13,13,13,0)}input[type=range]::-ms-thumb{box-shadow:0 0 0 transparent,0 0 0 rgba(13,13,13,0);border:2px solid #000;width:33px;border-radius:32px;background:#fff;cursor:pointer;height:4px}input[type=range]:focus::-ms-fill-lower{background:rgba(80,80,80,.5)}input[type=range]:focus::-ms-fill-upper{background:rgba(139,139,139,.5)}input[type=range]:focus::-moz-range-thumb,input[type=range]:focus::-ms-thumb,input[type=range]:focus::-webkit-slider-thumb{box-shadow:2px 2px 0 #fd0}blockquote{font-size:1.1875rem;margin:var(--unit-2) 0;clear:both}code,kbd,mark,pre,samp{font-size:1rem}cite{color:var(--color-body-h4);opacity:.75;padding:.5rem 0}blockquote cite{display:block;font-size:1rem}q:before{content:"“"}q:after{content:"”"}ins{color:var(--color-secondary)}del{color:var(--color-tertiary)}kbd{background:#000;outline:black solid .2em}mark{outline:.2em solid var(--color-access)}var{display:inline-block;border-radius:.1em;letter-spacing:1px;text-transform:uppercase;font-style:normal;padding:.1em .2em}pre{overflow:auto;border:0;outline:transparent solid 1px;background-color:var(--color-very-light);border:1px solid var(--color-line)}dl{grid-column-gap:var(--unit-2);grid-row-gap:var(--unit);grid-template-columns:[dt] max-content [dd] 1fr}dt{grid-column-start:dt;grid-column-end:dt}dd{grid-column-start:dd;grid-column-end:dd}ol,ul{font-size:1.1875rem}ul{list-style-type:disc}li{margin-bottom:.3125rem}summary,summary:hover{margin-left:-1.5rem;font-size:1.1875rem;color:var(--color-primary);font-weight:400;cursor:pointer;margin-bottom:1rem}summary:active{color:var(--color-primary-active)}summary:focus{outline:0}details{position:relative;padding:0 0 0 1.5625rem}details[open]:before{content:'';position:absolute;top:2.2rem;left:.125rem;bottom:-.625rem}table,table thead{border-collapse:collapse;border-radius:var(--border-radius);padding:0}table{border:1px solid var(--color-bg-secondary);border-spacing:0;overflow-x:scroll;overflow-y:hidden;min-width:100%;overflow:scroll;border:0;width:100%;table-layout:fixed}caption{padding:.5em 0}td,th,tr{padding:.4rem .8rem;text-align:var(--justify-important)}thead{background-color:var(--color);margin:0;color:var(--color-text);background:0 0;font-weight:700}body>footer,meter,progress{background:var(--color-very-light);overflow:hidden}thead th:first-child{border-top-left-radius:var(--border-radius)}thead th:last-child{border-top-right-radius:var(--border-radius)}thead th:first-child,tr td:first-child{text-align:var(--justify-normal)}tr{border-bottom:1px solid gray}tbody th{text-align:left}frame,frameset,iframe{border:2px solid var(--color-body);margin:0;width:100%;height:auto}img,picture{height:auto}figcaption{padding:.5em 0;color:var(--color-light);font-size:1rem}audio,embed,iframe,object,video{width:100%}meter,progress{width:100%;height:var(--unit);border:none;border-radius:.25rem;--background:var(--color-very-light);--optimum:#228b22;--sub-optimum:#ffd700;--sub-sub-optimum:#dc143c}progress[value]::-webkit-progress-bar{background:var(--color-very-light)}progress[value]::-webkit-progress-value{background:var(--color-primary)}meter::-webkit-meter-bar{background:var(--color-very-light)}meter:-moz-meter-optimum::-moz-meter-bar{background:var(--optimum)}meter::-webkit-meter-optimum-value{background:var(--optimum)}meter:-moz-meter-sub-optimum::-moz-meter-bar{background:var(--sub-optimum)}meter::-webkit-meter-suboptimum-value{background:var(--sub-optimum)}meter:-moz-meter-sub-sub-optimum::-moz-meter-bar{background:var(--sub-sub-optimum)}meter::-webkit-meter-even-less-good-value{background:var(--sub-sub-optimum)}body>footer{margin:0;margin-top:var(--unit-3);padding:var(--unit-3) 0;border-top:1px solid var(--color-line)}@media all and (min-width:640px){nav{display:flex}nav>*{flex-basis:0;flex-grow:1;flex-shrink:1}}@media all and (min-width:960px){header+nav{padding:0}}@media screen and (max-width:640px){table thead{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}table tr{display:block;border:0}table td,table th{display:block;text-align:right!important;border-bottom:1px solid}table td::before{content:attr(data-label);float:left;font-weight:700;text-transform:uppercase}} 2 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | GDCSS - An accessible alternative to HTML5 CSS resets 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | Skip to main content 24 | 25 |
26 | 34 |
35 | 40 |
41 |
42 |
43 |

GD.CSS

44 |

An accessible alternative
to HTML5 CSS resets

45 |
46 |

gd.css styles all visible HTML elements in line with modern best practice. 47 | It focusses only on HTML tags so you can just write HTML (no classes) and make pages like this.

48 |

49 | 50 |
51 | 52 |
53 | 54 |

Getting started

55 |

Like most CSS libraries, all you need to do is include the library in your HTML. To do this just link to this sheet (or download and link to your own URL):

56 |
<link rel="stylesheet" href="https://hawkz.github.com/gdcss/gd.css">
57 | 58 |
59 | 60 |
61 | 65 | 69 | 73 |
74 | 75 |
76 | I couldn't figure out how to setup the GOV.UK prototype toolkit,
so writing this seemed like the simple thing to do.
77 | - Steve Hawkes (author) 78 |
79 | 80 | 81 | 82 |

Feedback welcome

83 |
84 |
85 |
86 |

To demo the form styles, and also get real feedback, this is a little form so you can get in touch.

87 |

It would be especially awesome to hear about how and where you've used this!

88 |

How to contribute

89 |

This is a great project to contribute to, no complex tooling setup, just make changes to the gd.css file as pull request on GitHub.

90 | 91 |
92 |
93 |
94 | Send feedback 95 |

96 | 97 | 98 |

99 |

100 | 101 | 102 |

103 |

104 | 105 | 106 |

107 |

108 | 109 |

110 |
111 |
112 |
113 |
114 | 115 |
116 | 117 | 118 |

Features

119 |
120 |
121 |

Key stats

122 |
    123 |
  • 157 CSS selectors
  • 124 |
  • 105 documented tag styles
  • 125 |
  • ~120 HTML5 tags considered
  • 126 |
  • ~90 HTML5 tags are visible
  • 127 |
  • Only 21kb uncompressed
  • 128 |
  • Only one class (accessible hide)
  • 129 |
130 |
131 |
132 |

Lighthouse audit results

133 |
    134 |
  • 💯 Performance
  • 135 |
  • 💯 Accessibility
  • 136 |
  • 💯 Best Practice
  • 137 |
  • 💯 SEO
  • 138 |
  • Tested to WCAG 2.0 AA
  • 139 |
140 |
141 |
142 | 143 |
144 | Back to top 145 |
146 | 147 |
148 | 149 | 166 | 167 | 168 | 169 | --------------------------------------------------------------------------------