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.
57 lines
1.5 KiB
57 lines
1.5 KiB
// Name: Close
|
|
// Description: Component to create a close button
|
|
//
|
|
// Component: `uk-close`
|
|
//
|
|
// ========================================================================
|
|
|
|
|
|
// Variables
|
|
// ========================================================================
|
|
|
|
$close-color: $global-muted-color !default;
|
|
$close-hover-color: $global-color !default;
|
|
|
|
|
|
/* ========================================================================
|
|
Component: Close
|
|
========================================================================== */
|
|
|
|
/*
|
|
* Adopts `uk-icon`
|
|
*/
|
|
|
|
.uk-close {
|
|
color: $close-color;
|
|
@if(mixin-exists(hook-close)) {@include hook-close();}
|
|
}
|
|
|
|
/* Hover + Focus */
|
|
.uk-close:hover,
|
|
.uk-close:focus {
|
|
color: $close-hover-color;
|
|
outline: none;
|
|
@if(mixin-exists(hook-close-hover)) {@include hook-close-hover();}
|
|
}
|
|
|
|
|
|
// Hooks
|
|
// ========================================================================
|
|
|
|
@if(mixin-exists(hook-close-misc)) {@include hook-close-misc();}
|
|
|
|
// @mixin hook-close(){}
|
|
// @mixin hook-close-hover(){}
|
|
// @mixin hook-close-misc(){}
|
|
|
|
|
|
// Inverse
|
|
// ========================================================================
|
|
|
|
$inverse-close-color: $inverse-global-muted-color !default;
|
|
$inverse-close-hover-color: $inverse-global-color !default;
|
|
|
|
|
|
|
|
// @mixin hook-inverse-close(){}
|
|
// @mixin hook-inverse-close-hover(){}
|
|
|