This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
forked from supple-kit/supple-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_hidden.scss
49 lines (39 loc) · 1.44 KB
/
_hidden.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
/* =========================================================================
utilities.hidden
Completely remove from the flow and hide it from screenreaders
========================================================================= */
/* Variables
========================================================================= */
/**
* Define which namespaced breakpoints you would like to generate for `hidden`.
* This is handy if you only need `hidden` on, say, desk, or you only need it
* at mobile sizes. It allows you to only compile as much CSS as you need.
* All are empty by default, but you can add breakpoints at will.
*
* $supple-breakpoint-has-hidden: (lap, desk);
*
* Or
*
* $supple-breakpoint-has-hidden: (
* from: lap,
* until: lap desk,
* );
*
* Note: the name of the breakpoint must exist in the list of `$mq-breakpoints`
* in `settings/responsive`
*/
$supple-breakpoint-has-hidden: () !default;
/* Module
========================================================================= */
.u-hidden {
display: none !important;
}
/* Responsive
========================================================================= */
@if (mixin-exists(supple-breakpoint-has)) {
@include supple-breakpoint-has($supple-breakpoint-has-hidden, '.u-hidden') {
display: none !important;
}
} @else {
@error 'The hidden utility relies on the `supple-breakpoint-has` mixin. Did you include supple’s mixin file?';
}