|
| 1 | +<!doctype html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <!-- |
| 5 | + base — starter template |
| 6 | + ============================= |
| 7 | + This page doubles as the proof that base.less works with bare, |
| 8 | + semantic HTML and zero custom classes. The only classes used anywhere |
| 9 | + on this page are the two utilities provided by the base stylesheet: |
| 10 | +
|
| 11 | + .lead — a larger, emphasised paragraph |
| 12 | + img.right — floats an image to the right on wider screens |
| 13 | +
|
| 14 | + Everything else relies purely on element selectors (body, header, main, |
| 15 | + section, footer, ul, li, a, ...) and the brand tokens defined on :root. |
| 16 | +
|
| 17 | + To use the base stylesheet in your own project, copy the compiled |
| 18 | + dist/assets/base.css file and link it in your own pages. |
| 19 | + --> |
| 20 | + <meta charset="UTF-8" /> |
| 21 | + <link rel="icon" href="data:," /> |
| 22 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 23 | + <title>base — starter template</title> |
| 24 | + <link rel="stylesheet" href="./base.less" /> |
| 25 | + </head> |
| 26 | + <body> |
| 27 | + <header> |
| 28 | + <h1>Example Organisation</h1> |
| 29 | + <p>Tagline goes here — a short description of what we do.</p> |
| 30 | + </header> |
| 31 | + |
| 32 | + <main> |
| 33 | + <section> |
| 34 | + <p class="lead"> |
| 35 | + This is a lead paragraph. It is slightly larger than body text and is |
| 36 | + intended to draw the reader into a section. |
| 37 | + </p> |
| 38 | + |
| 39 | + <p> |
| 40 | + Everything below is plain semantic markup. Sections alternate |
| 41 | + background colour automatically — no classes required. Links pick up |
| 42 | + the organisation's accent colour and a dotted underline. |
| 43 | + </p> |
| 44 | + |
| 45 | + <p>Here is a list of example links:</p> |
| 46 | + |
| 47 | + <ul> |
| 48 | + <li><a href="#">Example link number one</a></li> |
| 49 | + <li><a href="#">Example link number two</a></li> |
| 50 | + <li><a href="#">Example link number three</a></li> |
| 51 | + <li><a href="#">Example link number four</a></li> |
| 52 | + </ul> |
| 53 | + </section> |
| 54 | + |
| 55 | + <section> |
| 56 | + <h2>How to get started</h2> |
| 57 | + |
| 58 | + <p> |
| 59 | + Every section needs a heading and a paragraph or two. Long content, |
| 60 | + such as a very long web address, is wrapped gracefully thanks to the |
| 61 | + <code>overflow-wrap</code> rule applied to list items: |
| 62 | + </p> |
| 63 | + |
| 64 | + <ul> |
| 65 | + <li> |
| 66 | + https://www.example.com/this/is/a/very/long/url/with/many/segments/and/characters/that/demonstrates/word/wrapping |
| 67 | + </li> |
| 68 | + <li>Another list item, nicely spaced from its neighbours.</li> |
| 69 | + <li>A third item to show the vertical rhythm.</li> |
| 70 | + </ul> |
| 71 | + |
| 72 | + <p> |
| 73 | + The two-column zebra striping between sections happens automatically. |
| 74 | + Add or remove sections freely and the styling stays in sync. |
| 75 | + </p> |
| 76 | + </section> |
| 77 | + |
| 78 | + <section> |
| 79 | + <h2>An example image</h2> |
| 80 | + |
| 81 | + <p class="lead">Images float right on wider screens.</p> |
| 82 | + |
| 83 | + <p> |
| 84 | + <img |
| 85 | + class="right" |
| 86 | + src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 160'%3E%3Crect width='240' height='160' fill='%230dd70d'/%3E%3Ctext x='120' y='85' font-family='monospace' font-size='16' fill='%23001000' text-anchor='middle'%3EPlaceholder%3C/text%3E%3C/svg%3E" |
| 87 | + width="240" |
| 88 | + height="160" |
| 89 | + alt="A green placeholder image" |
| 90 | + /> |
| 91 | + This image uses the <code>img.right</code> utility. On screens at |
| 92 | + least 480 px wide it floats to the right with a little padding, |
| 93 | + so the text wraps around it. On narrow screens it sits inline, above |
| 94 | + this paragraph. |
| 95 | + </p> |
| 96 | + |
| 97 | + <ul> |
| 98 | + <li>Responsive by default.</li> |
| 99 | + <li>No media queries required in your own markup.</li> |
| 100 | + <li> |
| 101 | + Works with any image — just add <code>class="right"</code>. |
| 102 | + </li> |
| 103 | + </ul> |
| 104 | + </section> |
| 105 | + |
| 106 | + <section> |
| 107 | + <h2>Things to remember</h2> |
| 108 | + |
| 109 | + <ul> |
| 110 | + <li>Use semantic elements: header, main, section, footer.</li> |
| 111 | + <li>Avoid class names wherever an element will do.</li> |
| 112 | + <li> |
| 113 | + Rebrand by overriding the <code>--ogis-*</code> tokens on |
| 114 | + <code>:root</code>. |
| 115 | + </li> |
| 116 | + <li>British English throughout.</li> |
| 117 | + </ul> |
| 118 | + |
| 119 | + <p> |
| 120 | + This page has no JavaScript and no build step of its own — the whole |
| 121 | + design comes from a single stylesheet. |
| 122 | + </p> |
| 123 | + </section> |
| 124 | + </main> |
| 125 | + |
| 126 | + <footer> |
| 127 | + <p>© 2026 Example Organisation</p> |
| 128 | + |
| 129 | + <ul> |
| 130 | + <li><a href="#">Privacy</a></li> |
| 131 | + <li><a href="#">Terms</a></li> |
| 132 | + <li><a href="#">Contact</a></li> |
| 133 | + </ul> |
| 134 | + </footer> |
| 135 | + </body> |
| 136 | +</html> |
0 commit comments