-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy path_utilities.scss
More file actions
71 lines (56 loc) · 1.69 KB
/
_utilities.scss
File metadata and controls
71 lines (56 loc) · 1.69 KB
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
69
70
71
//====================================================
// Display
//====================================================
.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.overflow-hidden { overflow: hidden; }
.overflow-scroll { overflow: scroll; }
.overflow-auto { overflow: auto; }
.hide-on-small { @include small { display: none !important; }}
.hide-on-medium { @include medium { display: none !important; }}
.hide-on-large { @include large { display: none !important; }}
//====================================================
// Text wrap
//====================================================
.pre { white-space: pre; }
.nowrap { white-space: nowrap; }
//====================================================
// Scrolling
//====================================================
.scroll-horizontal {
overflow-x: scroll;
overflow-y: hidden;
}
.scroll-vertical {
overflow-x: hidden;
overflow-y: scroll;
}
.no-scrollbar::-webkit-scrollbar {
width: 0px;
height: 0px;
background: transparent;
}
//====================================================
// Textareas
//====================================================
.resize-none { resize: none; }
.resize-vertical { resize: vertical; }
.resize-horizontal { resize: horizontal; }
//====================================================
// Misc.
//====================================================
.cursor-pointer {
cursor: pointer;
}
.no-pointer-events {
pointer-events: none;
}
.disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}