Helper classes
私たちはテンプレートに対してセマンティックなアプローチを使用しています。つまり、人間が判読できる意味のある用語 (.button
、.header-nav
、.section
など) をクラスに付ける傾向があります。 これはさまざまな理由 (opens in a new tab)から重要です。
Containers
Class | Description |
---|---|
.container | Large container (1080px wide) |
.container-sm | Small container (896px) |
.container-xs | Smaller container (620px) |
Typography
Class | Description |
---|---|
| To make the text look like headings |
| To make the text look like headings on smaller screens only |
| To make the text look smaller |
| Adds a |
| Same as above, but for smaller screens only |
| To change the |
| To change the text contrast |
| To change the default text color |
.tt-u | Transforms text to uppercase |
Spacing
Class | Description |
---|---|
| Sets the |
| Sets the |
| Sets the |
| Sets the |
| Sets the |
| Sets the |
| Sets the |
| Sets the |
| Sets the |
| Sets the |
| Very helpful when used on an empty div as vertical spacer.
|
| Same as above, but for smaller screens only |
Other utility classes
Class | Description |
---|---|
.screen-reader | Makes content invisible but accessible to screen reader users (opens in a new tab) |
.list-reset | Resets the default style of unordered ( |
.has-bg-color | Inverts the |
.invert-color | Inverts the |
.center-content | Center aligns the element and its descendants |
.center-content-mobile | Same as above, but for smaller screens only |
.center-content-desktop | Same as above, but for larger screens only |
| Adds a |
.image-full | Ensure that an image |
.image-larger | Makes an image overflow its parent container of a certain number of pixels.
|
.has-shadow | Adds some |