mirror of https://github.com/lukechilds/docs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.4 KiB
45 lines
1.4 KiB
6 years ago
|
// Name: Placeholder
|
||
|
// Description: Component to create placeholder boxes
|
||
|
//
|
||
|
// Component: `uk-placeholder`
|
||
|
//
|
||
|
// ========================================================================
|
||
|
|
||
|
|
||
|
// Variables
|
||
|
// ========================================================================
|
||
|
|
||
|
$placeholder-margin-vertical: $global-margin !default;
|
||
|
$placeholder-padding-vertical: $global-gutter !default;
|
||
|
$placeholder-padding-horizontal: $global-gutter !default;
|
||
|
$placeholder-background: $global-muted-background !default;
|
||
|
|
||
|
|
||
|
/* ========================================================================
|
||
|
Component: Placeholder
|
||
|
========================================================================== */
|
||
|
|
||
|
.uk-placeholder {
|
||
|
margin-bottom: $placeholder-margin-vertical;
|
||
|
padding: $placeholder-padding-vertical $placeholder-padding-horizontal;
|
||
|
background: $placeholder-background;
|
||
|
@if(mixin-exists(hook-placeholder)) {@include hook-placeholder();}
|
||
|
}
|
||
|
|
||
|
/* Add margin if adjacent element */
|
||
|
* + .uk-placeholder { margin-top: $placeholder-margin-vertical; }
|
||
|
|
||
|
/*
|
||
|
* Remove margin from the last-child
|
||
|
*/
|
||
|
|
||
|
.uk-placeholder > :last-child { margin-bottom: 0; }
|
||
|
|
||
|
|
||
|
// Hooks
|
||
|
// ========================================================================
|
||
|
|
||
|
@if(mixin-exists(hook-placeholder-misc)) {@include hook-placeholder-misc();}
|
||
|
|
||
|
// @mixin hook-placeholder(){}
|
||
|
// @mixin hook-placeholder-misc(){}
|