diff options
Diffstat (limited to 'scss/uikit/components/height.scss')
-rw-r--r-- | scss/uikit/components/height.scss | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/scss/uikit/components/height.scss b/scss/uikit/components/height.scss new file mode 100644 index 00000000..3bcc1504 --- /dev/null +++ b/scss/uikit/components/height.scss @@ -0,0 +1,54 @@ +// Name: Height +// Description: Utilities for heights +// +// Component: `uk-height-*` +// +// ======================================================================== + + +// Variables +// ======================================================================== + +$height-small-height: 150px !default; +$height-medium-height: 300px !default; +$height-large-height: 450px !default; + + +/* ======================================================================== + Component: Height + ========================================================================== */ + +[class*='uk-height'] { box-sizing: border-box; } + +/* + * Only works if parent element has a height set + */ + +.uk-height-1-1 { height: 100%; } + +/* + * Useful to create image teasers + */ + +.uk-height-viewport { min-height: 100vh; } + +/* + * Pixel + * Useful for `overflow: auto` + */ + +.uk-height-small { height: $height-small-height; } +.uk-height-medium { height: $height-medium-height; } +.uk-height-large { height: $height-large-height; } + +.uk-height-max-small { max-height: $height-small-height; } +.uk-height-max-medium { max-height: $height-medium-height; } +.uk-height-max-large { max-height: $height-large-height; } + + +// Hooks +// ======================================================================== + +@if(mixin-exists(hook-height-misc)) {@include hook-height-misc();} + +// @mixin hook-height-misc(){} |