|
34 | 34 | <a href="#padding" class="command shade1">Padding</a> |
35 | 35 | <a href="#spacing" class="command shade1">Spacing</a> |
36 | 36 | <a href="#colors" class="command shade1">Colors</a> |
| 37 | + <a href="#scaling" class="command shade2">Scaling</a> |
37 | 38 | <a href="#page-layout" class="command shade1">Page Layout</a> |
38 | 39 | <a |
39 | 40 | href="#command" |
|
68 | 69 | <header><h2 id="typography">Typography</h2></header> |
69 | 70 | <article class="typography"> |
70 | 71 | <p> |
71 | | - <code style="font-size: var(--scale-3xl)">--scale-3xl</code> |
| 72 | + <code style="font-size: var(--text-3xl)">--text-3xl</code> |
72 | 73 | <span>1.8rem</span> |
73 | 74 | <span>Headline 1, Text in Compound Commands</span> |
74 | 75 | </p> |
75 | 76 | <p> |
76 | | - <code style="font-size: var(--scale-2xl)">--scale-2xl</code> |
| 77 | + <code style="font-size: var(--text-2xl)">--text-2xl</code> |
77 | 78 | <span>1.6rem</span> |
78 | 79 | <span>Headline 2</span> |
79 | 80 | </p> |
80 | 81 | <p> |
81 | | - <code style="font-size: var(--scale-xl)">--scale-xl</code> |
| 82 | + <code style="font-size: var(--text-xl)">--text-xl</code> |
82 | 83 | <span>1.4rem</span> |
83 | 84 | <span>Headline 3</span> |
84 | 85 | </p> |
85 | 86 | <p> |
86 | | - <code style="font-size: var(--scale-lg)">--scale-lg</code> |
| 87 | + <code style="font-size: var(--text-lg)">--text-lg</code> |
87 | 88 | <span>1.2rem</span> |
88 | 89 | <span>Headline 4</span> |
89 | 90 | </p> |
90 | 91 | <p> |
91 | | - <code style="font-size: var(--scale-base)">--scale-base</code> |
| 92 | + <code style="font-size: var(--text-base)">--text-base</code> |
92 | 93 | <span>1rem</span> |
93 | 94 | <span>Normal Text, Command Label</span> |
94 | 95 | </p> |
95 | 96 | <p> |
96 | | - <code style="font-size: var(--scale-sm)">--scale-sm</code> |
| 97 | + <code style="font-size: var(--text-sm)">--text-sm</code> |
97 | 98 | <span>0.85rem</span> |
98 | 99 | <span>Small Text, Panel Footer</span> |
99 | 100 | </p> |
100 | 101 | <p> |
101 | | - <code style="font-size: var(--scale-xs)">--scale-xs</code> |
| 102 | + <code style="font-size: var(--text-xs)">--text-xs</code> |
102 | 103 | <span>0.75rem</span> |
103 | 104 | <span>Tile Footer</span> |
104 | 105 | </p> |
|
122 | 123 | <div class="padding-box lg shade2"></div> |
123 | 124 | <p>→ Paddings are responsive (in rem).</p> |
124 | 125 | <p> |
125 | | - Usage: paddings, anything which should grow/shrink with the |
| 126 | + Usage: paddings, anything which should grow/shrink with the root |
126 | 127 | font-size |
127 | 128 | </p> |
128 | 129 | </article> |
@@ -219,6 +220,24 @@ <h3>Usage</h3> |
219 | 220 | </article> |
220 | 221 | <footer></footer> |
221 | 222 | </div> |
| 223 | + <div class="panel"> |
| 224 | + <header><h2 id="scaling">Scaling</h2></header> |
| 225 | + <article style="display: grid; gap: var(--spacing)"> |
| 226 | + <p> |
| 227 | + By adding the class <code>scaled</code> and setting the CSS custom |
| 228 | + property <code>--scaled</code> to a number like <code>1.5</code>, |
| 229 | + every responsive token (sizes, paddings, font-size) is scaled in |
| 230 | + this scope. See the scaled tile as an example: |
| 231 | + </p> |
| 232 | + <div class="tile scaled shade2" style="--scale: 1.5"> |
| 233 | + <header></header> |
| 234 | + <article>Scaled Tile (factor 1.5)</article> |
| 235 | + <footer></footer> |
| 236 | + </div> |
| 237 | + </article> |
| 238 | + <footer></footer> |
| 239 | + </div> |
| 240 | + |
222 | 241 | <div class="panel"> |
223 | 242 | <header><h2 id="page-layout">Page Layout</h2></header> |
224 | 243 | <article> |
|
0 commit comments