|
24 | 24 | margin: 1em 0; |
25 | 25 | } |
26 | 26 |
|
27 | | -.small { |
28 | | - font-size: 0.75rem; |
29 | | -} |
30 | | - |
31 | | -.tag { |
32 | | - border: solid 2px var(--background); |
33 | | - border-radius: 0.4em; |
34 | | - padding: 0.2rem 0.4rem; |
35 | | - outline-width: 2px; |
36 | | - word-break: normal; |
37 | | - display: inline-block; |
38 | | -} |
39 | | - |
40 | | -.fill-gray { |
41 | | - color: var(--background); |
42 | | - background-color: var(--gray); |
43 | | -} |
44 | | - |
45 | 27 | /* Buttons |
46 | 28 | * |
47 | 29 | * .btn - Base button style to be used on every standard button |
|
110 | 92 | outline-style: solid; |
111 | 93 | } |
112 | 94 |
|
| 95 | +/* Tags |
| 96 | + * |
| 97 | + * .tag - Base tag style to be used on every tag |
| 98 | + * .tag-gray - Gray tag variant |
| 99 | + * |
| 100 | + * Usage: Combine .tag with one of the color variants |
| 101 | + * Example: <span class="tag tag-gray">Keyword</button> |
| 102 | + */ |
| 103 | + |
| 104 | +.tag { |
| 105 | + border-radius: 1000px; |
| 106 | + padding: 0em 0.4em; |
| 107 | + word-break: normal; |
| 108 | +} |
| 109 | + |
| 110 | +.tag-gray { |
| 111 | + color: black; |
| 112 | + border: 1px solid var(--gray); |
| 113 | + background-color: var(--light-gray); |
| 114 | +} |
| 115 | + |
113 | 116 | /* Titles |
114 | 117 | * |
115 | 118 | * .page-title - Only for the main title of a page |
|
137 | 140 | * .condensed - Apply condensed font |
138 | 141 | * .uppercase - Force uppercase |
139 | 142 | * .dimmed - Dimmed gray text color |
| 143 | + * .no-line-breaks - Prevent line breaks |
140 | 144 | */ |
141 | 145 |
|
142 | 146 | .bold { |
|
159 | 163 | color: var(--gray); |
160 | 164 | } |
161 | 165 |
|
| 166 | +.no-line-breaks { |
| 167 | + white-space: nowrap; |
| 168 | +} |
| 169 | + |
162 | 170 | /* Layout |
163 | 171 | * |
164 | 172 | * Layout utilities using flexbox. Start with a required container type, |
|
183 | 191 | * .gap-small - Small gap between items |
184 | 192 | * .dividers - Display a separation line between items (handles gaps, don't use .gap or .gap-small) |
185 | 193 | * |
| 194 | + * Horizontal separator line: |
| 195 | + * .divider - On an <hr> element: display a horizontal line to separate content. |
| 196 | + * To be used in a column + (small-)gap container. |
| 197 | + * |
186 | 198 | * Sizing: |
187 | 199 | * .full-width - Force to use all available space (width: 100%) |
188 | 200 | * .grow - Make an item grow in a container |
189 | 201 | * .spread - Force items to be spread across available space |
190 | 202 | * For instance 2 elements on a .row .spread .full-width will be respectively on the far left and far right. |
191 | 203 | * .wrap - Allow items to wrap for responsivity. This is how responsivity is to be implemented rather than through breakpoints. |
| 204 | + * |
192 | 205 | */ |
193 | 206 |
|
194 | 207 | .row { |
|
234 | 247 | width: 100%; |
235 | 248 | } |
236 | 249 |
|
| 250 | +.justify-right { |
| 251 | + justify-content: flex-end; |
| 252 | +} |
| 253 | + |
237 | 254 | .spread { |
238 | 255 | justify-content: space-between; |
239 | 256 | } |
|
270 | 287 | border-bottom: none; |
271 | 288 | } |
272 | 289 |
|
| 290 | +.divider { |
| 291 | + width: 100%; |
| 292 | + height: 1px; |
| 293 | + background-color: var(--gray); |
| 294 | + border: none; |
| 295 | +} |
| 296 | + |
273 | 297 | /* Size */ |
274 | 298 |
|
275 | 299 | .w-12 { |
|
288 | 312 | * |
289 | 313 | * .rounded-box - Bordered container with padding and rounded corners. |
290 | 314 | * Includes overflow: auto for locally scrollable content. |
| 315 | + * .rounded-box-compact - Same with small padding (same as buttons) to be used for inline boxes next to buttons for instance. |
291 | 316 | */ |
292 | 317 |
|
293 | 318 | .rounded-box { |
|
297 | 322 | overflow: auto; |
298 | 323 | } |
299 | 324 |
|
| 325 | +.rounded-box-compact { |
| 326 | + border: 1px solid var(--gray); |
| 327 | + padding: 0.3em; |
| 328 | + border-radius: 0.4em; |
| 329 | + overflow: auto; |
| 330 | +} |
| 331 | + |
300 | 332 | /* Toggle box |
301 | 333 | * |
302 | 334 | * Big toggler element with visual state indicators: |
|
0 commit comments