@ -0,0 +1,34 @@ | |||
/** | |||
* helper: visibility | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
@mixin crispy__modifiers() { | |||
.is-absolute { | |||
position: absolute !important; | |||
} | |||
.is-fixed { | |||
position: fixed !important; | |||
} | |||
.is-relative { | |||
position: relative !important; | |||
} | |||
.is-hidden { | |||
display: none !important; | |||
} | |||
.is-visible { | |||
display: block !important; | |||
&--inline { | |||
display: inline; | |||
} | |||
} | |||
} |
@ -1,76 +0,0 @@ | |||
/** | |||
* helper: text | |||
* | |||
* align, font-sizes, color, background-color | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
$crispy__text-colors: $crispy__colors !default; | |||
$crispy__text-font-sizes: $crispy__font-sizes !default; | |||
@mixin crispy__text() { | |||
.text-left { | |||
text-align: left; | |||
} | |||
.text-right { | |||
text-align: right; | |||
} | |||
.text-center { | |||
text-align: center; | |||
} | |||
.text-justify { | |||
text-align: justify; | |||
} | |||
.text-italic { | |||
font-style: italic; | |||
} | |||
.text-normal { | |||
font-style: normal; | |||
} | |||
.text-bold { | |||
font-weight: bold; | |||
} | |||
.text-uppercase { | |||
text-transform: uppercase; | |||
} | |||
.text-lowercase { | |||
text-transform: lowercase; | |||
} | |||
.text-small { | |||
font-size: 80%; | |||
} | |||
.text-crossed { | |||
text-decoration: line-through; | |||
} | |||
@each $name, $font-size in $crispy__font-sizes { | |||
.text-#{$name} { | |||
@include crispy__font-size($font-size); | |||
} | |||
} | |||
@each $name, $color in $crispy__text-colors { | |||
.text-#{$name} { | |||
color: $color; | |||
} | |||
} | |||
@each $name, $color in $crispy__text-colors { | |||
.background-#{$name} { | |||
background-color: $color; | |||
} | |||
} | |||
} |
@ -0,0 +1,89 @@ | |||
/** | |||
* helper: typography | |||
* | |||
* align, font-sizes, color, background-color | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
$crispy__typography-colors: $crispy__colors !default; | |||
$crispy__typography-font-sizes: $crispy__font-sizes !default; | |||
@mixin crispy__typography() { | |||
.has-text-left { | |||
text-align: left !important; | |||
} | |||
.has-text-right { | |||
text-align: right !important; | |||
} | |||
.has-text-center { | |||
text-align: center !important; | |||
} | |||
.has-text-justify { | |||
text-align: justify !important; | |||
} | |||
.has-text-italic { | |||
font-style: italic !important; | |||
} | |||
.has-text-uppercase { | |||
text-transform: uppercase !important; | |||
} | |||
.has-text-lowercase { | |||
text-transform: lowercase !important; | |||
} | |||
.has-text-crossed { | |||
text-decoration: line-through !important; | |||
} | |||
.is-capitalized { | |||
text-transform: capitalize !important; | |||
} | |||
// text weight | |||
.is-text-weight-light { | |||
font-weight: light !important; | |||
} | |||
.is-text-weight-normal { | |||
font-weight: normal !important; | |||
} | |||
.is-text-weight-bold { | |||
font-weight: bold !important; | |||
} | |||
.has-text-weight-medium { | |||
} | |||
.has-text-weight-semibold { | |||
} | |||
@each $name, $font-size in $crispy__typography-font-sizes { | |||
.has-font-size-#{$name} { | |||
font-size: $font-size !important; | |||
} | |||
} | |||
@each $name, $color in $crispy__typography-colors { | |||
.has-text-#{$name} { | |||
color: $color !important; | |||
} | |||
} | |||
@each $name, $color in $crispy__typography-colors { | |||
.has-background-#{$name} { | |||
background-color: $color !important; | |||
} | |||
} | |||
} |
@ -1,21 +0,0 @@ | |||
/** | |||
* helper: visibility | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
@mixin crispy__visibility() { | |||
.hide { | |||
display: none; | |||
} | |||
.show { | |||
display: block; | |||
&--inline { | |||
display: inline; | |||
} | |||
} | |||
} |