1
|
// Name: Inverse
|
2
|
// Description: Inverse component style for light or dark backgrounds
|
3
|
//
|
4
|
// Component: `uk-light`
|
5
|
// `uk-dark`
|
6
|
//
|
7
|
// ========================================================================
|
8
|
|
9
|
|
10
|
// Variables
|
11
|
// ========================================================================
|
12
|
|
13
|
$inverse-global-color-mode: light !default;
|
14
|
|
15
|
$inverse-global-color: rgba($global-inverse-color, 0.7) !default;
|
16
|
$inverse-global-emphasis-color: $global-inverse-color !default;
|
17
|
$inverse-global-muted-color: rgba($global-inverse-color, 0.5) !default;
|
18
|
$inverse-global-inverse-color: $global-color !default;
|
19
|
|
20
|
$inverse-global-primary-background: $global-inverse-color !default;
|
21
|
$inverse-global-muted-background: rgba($global-inverse-color, 0.1) !default;
|
22
|
|
23
|
$inverse-global-border: rgba($global-inverse-color, 0.2) !default;
|
24
|
|
25
|
|
26
|
/* ========================================================================
|
27
|
Component: Inverse
|
28
|
========================================================================== */
|
29
|
|
30
|
|
31
|
|
32
|
/*
|
33
|
* Implemented class depends on the general theme color
|
34
|
* `uk-light` is for light colors on dark backgrounds
|
35
|
* `uk-dark` is or dark colors on light backgrounds
|
36
|
*/
|
37
|
|
38
|
@if ($inverse-global-color-mode == light) { .uk-light { @if(mixin-exists(hook-inverse)) {@include hook-inverse();}}}
|
39
|
|
40
|
@if ($inverse-global-color-mode == dark) { .uk-dark { @if(mixin-exists(hook-inverse)) {@include hook-inverse();}}}
|
41
|
|
42
|
|
43
|
// Hooks
|
44
|
// ========================================================================
|
45
|
|
46
|
// @mixin hook-inverse(){}
|