-
Notifications
You must be signed in to change notification settings - Fork 0
/
_hide-n-seek.scss
68 lines (54 loc) · 2.22 KB
/
_hide-n-seek.scss
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* -------------------------------------------------------------------------------------------------
////////////////////////////////////////////////////////////////////////////////////////////////////
HIDE-N-SEEK | V 2.0.0
////////////////////////////////////////////////////////////////////////////////////////////////////
mdurchholz.com | Martin Durchholz
////////////////////////////////////////////////////////////////////////////////////////////////////
------------------------------------------------------------------------------------------------- */
/* Import variables
----------------------------------------
////////////////////////////////////// */
@import 'vairables';
/* Classname : `display` property
----------------------------------------
`get object value` => map-get($map, key)
----------------------------------------
////////////////////////////////////// */
$classes:
'' 'block',
'.nl' 'inline',
'.nlb' 'inline-block';
/* Create initial display styles
----------------------------------------
////////////////////////////////////// */
@each $c, $p in $classes
{
.show#{$c},
.desktop .desk#{$c},
.mobile .mobi#{$c} { display: #{$p} !important;}
}
.hide,
.mobile .desk,
.desktop .mobi { display: none !important;}
/* Loop Through Responsive Breakpoints
----------------------------------------
////////////////////////////////////// */
@each $size, $px in $grid-breakpoints
{
.show-#{$size} { display: none !important;}
@include media-breakpoint( #{$size} )
{
$class : '.show-' + $size;
@each $c, $p in $classes
{
#{($class+$c)} { display: #{$p} !important;}
}
table
{
&#{$class} { display: table !important;}
tr#{$class} { display: table-row !important;}
th, td { &#{$class} { display: table-cell !important;}}
}
.hide-#{$size} { display: none !important;}
}
}