forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQTabs.styl
More file actions
188 lines (144 loc) · 2.97 KB
/
QTabs.styl
File metadata and controls
188 lines (144 loc) · 2.97 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
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
.q-tab
padding: 0 16px
min-height: 48px
transition: color .3s, background-color .3s
text-transform: uppercase
white-space: nowrap
// for route tabs
color: inherit
text-decoration: none
&--full
min-height: 72px
&--no-caps
text-transform: none
&__content
height: inherit
padding: 4px 0
min-width: 40px
&--inline
.q-tab__icon + .q-tab__label
padding-left: 8px
.q-chip--floating
top: 0
right: -16px
&__icon
width: 24px
height: 24px
font-size: 24px
&__label
font-size: $button-font-size
line-height: $button-line-height
font-weight: $button-font-weight
.q-badge
top: 3px
right: -12px
&__alert, &__alert-icon
position: absolute
&__alert
top: 7px
right: -9px
height: 10px
width: 10px
border-radius: 50%
background: currentColor
&__alert-icon
top: 2px
right: -12px
font-size: 18px
&__indicator
opacity: 0
height: 2px
background: currentColor
&--active .q-tab__indicator
opacity: 1
transform-origin: left /* rtl:ignore */
&--inactive
opacity: .85
.q-tabs
position: relative
transition: color .3s, background-color .3s
&--scrollable
&.q-tabs__arrows--outside
&.q-tabs--horizontal
padding-left: 36px
padding-right: 36px
&.q-tabs--vertical
padding-top: 36px
padding-bottom: 36px
.q-tabs__arrow--faded
opacity: 0.3
pointer-events: none
&.q-tabs__arrows--inside
.q-tabs__arrow--faded
display: none
&--not-scrollable
.q-tabs__arrow
display: none
.q-tabs__content
border-radius: inherit
&__arrow
cursor: pointer
font-size: 32px
min-width: 36px
text-shadow: 0 0 3px #fff, 0 0 1px #fff, 0 0 1px #000
transition: opacity .3s
&__content
overflow: hidden
flex: 1 1 auto
&--align
&-center
justify-content: center
&-right
justify-content: flex-end
&-justify .q-tab
flex: 1 1 auto
&__offset
display: none
&--horizontal .q-tabs__arrow
height: 100%
&--start
top: 0
left: 0
bottom: 0
&--end
top: 0
right: 0
bottom: 0
&--vertical
display: block !important
height: 100%
.q-tabs__content
display: block !important
height: 100%
.q-tabs__arrow
width: 100%
height: 36px
text-align: center
&--start
top: 0
left: 0
right: 0
&--end
left: 0
right: 0
bottom: 0
.q-tab
padding: 0 8px
.q-tab__indicator
height: unset
width: 2px
&--vertical.q-tabs--not-scrollable
.q-tabs__content
height: 100%
&--vertical.q-tabs--dense
.q-tab__content
min-width: 24px
&--dense
.q-tab
min-height: 36px
&--full
min-height: 52px
@media (min-width: $breakpoint-lg-min)
.q-header, .q-footer
.q-tab__content
min-width: 128px