blob: 3bcc15043606c35a31287e052e3dbf930220a2a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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(){}
|