Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ScarletPonytail/966e069fb68ac99872fddba4950ce98a to your computer and use it in GitHub Desktop.
Save ScarletPonytail/966e069fb68ac99872fddba4950ce98a to your computer and use it in GitHub Desktop.
CSS - Test Align Viewport Bootstrap
text-xs-center text-sm-center text-md-left text-lg-left text-xl-left
// Alignment
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.text-justify { text-align: justify !important; }
.text-nowrap { white-space: nowrap !important; }
.text-xs-left { text-align: left !important; }
.text-xs-right { text-align: right !important; }
.text-xs-center { text-align: center !important; }
.text-xs-justify { text-align: justify !important; }
@media (min-width: $bp-small) {
.text-sm-left { text-align: left !important; }
.text-sm-right { text-align: right !important; }
.text-sm-center { text-align: center !important; }
.text-sm-justify { text-align: justify !important; }
}
@media (min-width: $bp-medium) {
.text-md-left { text-align: left !important; }
.text-md-right { text-align: right !important; }
.text-md-center { text-align: center !important; }
.text-md-justify { text-align: justify !important; }
}
@media (min-width: $bp-large) {
.text-lg-left { text-align: left !important; }
.text-lg-right { text-align: right !important; }
.text-lg-center { text-align: center !important; }
.text-lg-justify { text-align: justify !important; }
}
@media (min-width: $bp-xlarge) {
.text-xl-left { text-align: left !important; }
.text-xl-right { text-align: right !important; }
.text-xl-center { text-align: center !important; }
.text-xl-justify { text-align: justify !important; }
}
// Transformation
.text-lowercase { text-transform: lowercase; }
.text-uppercase { text-transform: uppercase; }
.text-capitalize { text-transform: capitalize; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment