Last active
March 7, 2019 08:14
-
-
Save kudinovfedor/85254670b1fed22a9e6cd3ffb7a06dda to your computer and use it in GitHub Desktop.
Text style helpers (SCSS)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.text { | |
&-left { | |
text-align: left; | |
} | |
&-right { | |
text-align: right; | |
} | |
&-center { | |
text-align: center; | |
} | |
&-justify { | |
text-align: justify; | |
} | |
&-wrap { | |
white-space: normal; | |
} | |
&-nowrap { | |
white-space: nowrap; | |
} | |
&-break { | |
word-break: break-word; | |
overflow-wrap: break-word; | |
} | |
&-truncate, | |
&-ellipsis { | |
overflow: hidden; | |
text-overflow: ellipsis; | |
white-space: nowrap; | |
} | |
&-lowercase { | |
text-transform: lowercase; | |
} | |
&-uppercase { | |
text-transform: uppercase; | |
} | |
&-capitalize { | |
text-transform: capitalize; | |
} | |
&-italic { | |
font-style: italic; | |
} | |
&-thin { | |
font-weight: 100; | |
} | |
&-extralight, | |
&-extra-light { | |
font-weight: 200; | |
} | |
&-light { | |
font-weight: 300; | |
} | |
&-regular, | |
&-normal { | |
font-weight: 400; | |
} | |
&-medium { | |
font-weight: 500; | |
} | |
&-semibold, | |
&-semi-bold { | |
font-weight: 600; | |
} | |
&-bold { | |
font-weight: 700; | |
} | |
&-extrabold, | |
&-extra-bold { | |
font-weight: 800; | |
} | |
&-weight-black { | |
font-weight: 900; | |
} | |
&-lighter { | |
font-weight: lighter; | |
} | |
&-bolder { | |
font-weight: bolder; | |
} | |
&-underline { | |
text-decoration: underline; | |
} | |
&-decoration-none { | |
text-decoration: none; | |
} | |
&-linethrough, | |
&-line-through { | |
text-decoration: line-through; | |
} | |
&-white { | |
color: #fff; | |
} | |
&-black { | |
color: #000; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment