1
|
// Name: Placeholder
|
2
|
// Description: Component to create placeholder boxes
|
3
|
//
|
4
|
// Component: `uk-placeholder`
|
5
|
//
|
6
|
// ========================================================================
|
7
|
|
8
|
|
9
|
// Variables
|
10
|
// ========================================================================
|
11
|
|
12
|
$placeholder-margin-vertical: $global-margin !default;
|
13
|
$placeholder-padding-vertical: $global-gutter !default;
|
14
|
$placeholder-padding-horizontal: $global-gutter !default;
|
15
|
$placeholder-background: $global-muted-background !default;
|
16
|
|
17
|
|
18
|
/* ========================================================================
|
19
|
Component: Placeholder
|
20
|
========================================================================== */
|
21
|
|
22
|
.uk-placeholder {
|
23
|
margin-bottom: $placeholder-margin-vertical;
|
24
|
padding: $placeholder-padding-vertical $placeholder-padding-horizontal;
|
25
|
background: $placeholder-background;
|
26
|
@if(mixin-exists(hook-placeholder)) {@include hook-placeholder();}
|
27
|
}
|
28
|
|
29
|
/* Add margin if adjacent element */
|
30
|
* + .uk-placeholder { margin-top: $placeholder-margin-vertical; }
|
31
|
|
32
|
/*
|
33
|
* Remove margin from the last-child
|
34
|
*/
|
35
|
|
36
|
.uk-placeholder > :last-child { margin-bottom: 0; }
|
37
|
|
38
|
|
39
|
// Hooks
|
40
|
// ========================================================================
|
41
|
|
42
|
@if(mixin-exists(hook-placeholder-misc)) {@include hook-placeholder-misc();}
|
43
|
|
44
|
// @mixin hook-placeholder(){}
|
45
|
// @mixin hook-placeholder-misc(){}
|