diff --git a/docs/documentation/modifiers/typography-helpers.html b/docs/documentation/modifiers/typography-helpers.html index 2e1194e3..adbff975 100644 --- a/docs/documentation/modifiers/typography-helpers.html +++ b/docs/documentation/modifiers/typography-helpers.html @@ -266,5 +266,42 @@ doc-subtab: typography-helpers +
+ +

Text transformation

+ +
+

+ You can transform the text with the use of one of 3 text transformation helpers: +

+
+ + + + + + + + + + + + Transforms the first character of each word to uppercase + + + + + + + + + + +
+ Class + + Transformation +
.is-capitalized
.is-lowercaseTransforms all characters to lowercase
.is-uppercaseTransforms all characters to uppercase
+ diff --git a/sass/base/helpers.sass b/sass/base/helpers.sass index 251b03b4..64fdcff5 100755 --- a/sass/base/helpers.sass +++ b/sass/base/helpers.sass @@ -53,6 +53,15 @@ .has-text-right text-align: right !important +.is-capitalized + text-transform: capitalize !important + +.is-lowercase + text-transform: lowercase !important + +.is-uppercase + text-transform: uppercase !important + @each $name, $pair in $colors $color: nth($pair, 1) .has-text-#{$name}