forked from quasarframework/quasar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQLayout.sass
More file actions
182 lines (156 loc) · 4.28 KB
/
QLayout.sass
File metadata and controls
182 lines (156 loc) · 4.28 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
.q-layout
width: 100%
.q-layout-container
position: relative
width: 100%
height: 100%
.q-layout
min-height: 100%
> div
transform: translate3d(0, 0, 0)
> div
min-height: 0
max-height: 100%
.q-layout__shadow
width: 100%
&:after
content: ''
position: absolute
top: 0
right: 0
bottom: 0
left: 0
box-shadow: $layout-shadow
.q-layout__section--marginal
background-color: $primary
background-color: var(--q-color-primary)
color: #fff
.q-header
&--hidden
transform: translateY(-110%)
&--bordered
border-bottom: $layout-border
.q-layout__shadow
bottom: -10px
&:after
bottom: 10px
.q-footer
&--hidden
transform: translateY(110%)
&--bordered
border-top: $layout-border
.q-layout__shadow
top: -10px
&:after
top: 10px
.q-header, .q-footer
z-index: $z-marginals
.q-drawer
position: absolute
top: 0
bottom: 0
background: #fff
z-index: $z-side
&--on-top
z-index: $z-fixed-drawer
&--left
left: 0
transform: translateX(-100%)
&.q-drawer--bordered
border-right: $layout-border
.q-layout__shadow
left: 10px
right: -10px
&:after
right: 10px
&--right
right: 0
transform: translateX(100%)
&.q-drawer--bordered
border-left: $layout-border
.q-layout__shadow
left: -10px
&:after
left: 10px
&-container:not(&--mini-animate) &--mini
padding: 0 !important
.q-item, .q-item__section
text-align: center
justify-content: center
padding-left: 0
padding-right: 0
min-width: 0
.q-item__label, .q-item__section--main, .q-item__section--side ~ .q-item__section--side
display: none
&--mini
.q-mini-drawer-hide, .q-expansion-item__content
display: none
&--mini-animate &__content
overflow-x: hidden
white-space: nowrap
&--standard
.q-mini-drawer-only
display: none
&--mobile
.q-mini-drawer-only, .q-mini-drawer-hide
display: none
&__backdrop
z-index: ($z-fixed-drawer - 1) !important
will-change: background-color
&__opener
z-index: ($z-marginals + 1)
height: 100%
width: 15px
user-select: none
.q-layout, .q-header, .q-footer, .q-page
position: relative
.q-page-sticky--shrink
pointer-events: none
> div
display: inline-block
pointer-events: auto
body.q-ios-padding
.q-layout--standard .q-header > .q-toolbar:nth-child(1),
.q-layout--standard .q-header > .q-tabs:nth-child(1) .q-tabs-head,
.q-layout--standard .q-drawer--top-padding .q-drawer__content
padding-top: $ios-statusbar-height
min-height: ($toolbar-min-height + $ios-statusbar-height)
padding-top: env(safe-area-inset-top)
min-height: calc(env(safe-area-inset-top) + #{$toolbar-min-height})
.q-layout--standard .q-footer > .q-toolbar:last-child,
.q-layout--standard .q-footer > .q-tabs:last-child .q-tabs-head,
.q-layout--standard .q-drawer--top-padding .q-drawer__content
padding-bottom: env(safe-area-inset-bottom)
min-height: calc(env(safe-area-inset-bottom) + #{$toolbar-min-height})
.q-body--layout-animate
.q-drawer__backdrop
transition: background-color .12s !important
.q-drawer
transition: transform .12s, width .12s, top .12s, bottom .12s !important
.q-layout__section--marginal
transition: transform .12s, left .12s, right .12s !important
.q-page-container
transition: padding-top .12s, padding-right .12s, padding-bottom .12s, padding-left .12s !important
.q-page-sticky
transition: transform .12s, left .12s, right .12s, top .12s, bottom .12s !important
body:not(.q-body--layout-animate)
.q-layout--prevent-focus
visibility: hidden
.q-body--drawer-toggle
overflow-x: hidden !important
.q-layout-padding
@media (max-width: $breakpoint-xs-max)
padding: 8px
@media (min-width: $breakpoint-sm-min) and (max-width: $breakpoint-md-max)
padding: 16px
@media (min-width: $breakpoint-lg-min)
padding: 24px
body.body--dark
.q-header, .q-footer, .q-drawer
border-color: $separator-dark-color
body.platform-ios
.q-layout--containerized
// https://github.com/quasarframework/quasar/issues/4127
// Fixes scroll issues with containerized Layout inside Dialog on iOS;
// QDrawer needs to be forced into fixed position
position: unset !important