forked from quasarframework/quasar
/
visibility.styl
166 lines (144 loc) · 3.89 KB
/
visibility.styl
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
.no-margin
margin: 0 !important
.no-padding
padding: 0 !important
.no-border
border: 0 !important
.no-border-radius
border-radius: 0 !important
.no-box-shadow
box-shadow: none !important
.no-outline
outline: 0 !important
.ellipsis
text-overflow: ellipsis
white-space: nowrap
overflow: hidden
&-2-lines, &-3-lines
overflow: hidden
display: -webkit-box
-webkit-box-orient: vertical
&-2-lines
-webkit-line-clamp: 2
&-3-lines
-webkit-line-clamp: 3
.readonly
cursor: default !important
.disabled, [disabled]
&, * // @stylint ignore
outline: 0 !important
cursor: not-allowed !important
.disabled, [disabled]
opacity: .6 !important
.hidden
display: none !important
.invisible, .invisible *
visibility: hidden !important
transition: none !important
animation: none !important
.invisible svg *
display: none
.transparent
background: transparent !important
.overflow-auto
overflow: auto !important
.overflow-hidden
overflow: hidden !important
.overflow-hidden-y
overflow-y: hidden !important
.hide-scrollbar
scrollbar-width: none
-ms-overflow-style: none
&::-webkit-scrollbar
width: 0
height: 0
display: none
.dimmed, .light-dimmed
&:after
content: ''
position: absolute
top: 0
right: 0 /* rtl:ignore */
bottom: 0
left: 0 /* rtl:ignore */
.dimmed:after
background: $dimmed-background !important
.light-dimmed:after
background: $light-dimmed-background !important
.z-top
z-index: $z-top !important
.z-max
z-index: $z-max !important
for type in desktop mobile native-mobile cordova capacitor electron touch within-iframe platform-ios platform-android
body:not(.{type}) .{type}-only,
body.{type} .{type}-hide
display: none !important
@media all and (orientation: portrait)
.orientation-landscape
display: none !important
@media all and (orientation: landscape)
.orientation-portrait
display: none !important
@media screen
.print-only
display: none !important
@media print
.print-hide
display: none !important
@media (max-width: $breakpoint-xs-max)
.xs-hide, .gt-xs, .sm, .gt-sm, .md, .gt-md, .lg, .gt-lg, .xl
display: none !important
@media (min-width: $breakpoint-sm-min) and (max-width: $breakpoint-sm-max)
.sm-hide, .xs, .lt-sm, .gt-sm, .md, .gt-md, .lg, .gt-lg, .xl
display: none !important
@media (min-width: $breakpoint-md-min) and (max-width: $breakpoint-md-max)
.md-hide, .xs, .lt-sm, .sm, .lt-md, .gt-md, .lg, .gt-lg, .xl
display: none !important
@media (min-width: $breakpoint-lg-min) and (max-width: $breakpoint-lg-max)
.lg-hide, .xs, .lt-sm, .sm, .lt-md, .md, .lt-lg, .gt-lg, .xl
display: none !important
@media (min-width: $breakpoint-xl-min)
.xl-hide, .xs, .lt-sm, .sm, .lt-md, .md, .lt-lg, .lg, .lt-xl
display: none !important
.q-focus-helper, .q-focusable, .q-manual-focusable, .q-hoverable
outline: 0
body.desktop
.q-focus-helper
position: absolute
top: 0
left: 0 /* rtl:ignore */
width: 100%
height: 100%
pointer-events: none
border-radius: inherit
opacity: 0
transition: background-color .3s cubic-bezier(.25,.8,.5,1), opacity .4s cubic-bezier(.25,.8,.5,1)
&:before, &:after
content: ''
position: absolute
top: 0
left: 0 /* rtl:ignore */
width: 100%
height: 100%
opacity: 0
border-radius: inherit
transition: background-color .3s cubic-bezier(.25,.8,.5,1), opacity .6s cubic-bezier(.25,.8,.5,1)
&:before
background: #000
&:after
background: #fff
&--rounded
border-radius: $generic-border-radius
&--round
border-radius: 50%
.q-focusable:focus, .q-manual-focusable--focused, .q-hoverable:hover
> .q-focus-helper
background: currentColor
opacity: .15
&:before
opacity: .1
&:after
opacity: .4
.q-focusable:focus, .q-manual-focusable--focused
> .q-focus-helper
opacity: .22