UNPKG

15.9 kBCSSView Raw
1/*! onsenui - v2.10.10 - 2019-07-29 */
2ons-page, ons-navigator,
3ons-tabbar,
4ons-gesture-detector {
5 display: block;
6 touch-action: manipulation; /* Remove click delay */
7}
8
9ons-navigator,
10ons-tabbar,
11ons-splitter,
12ons-action-sheet,
13ons-dialog,
14ons-toast,
15ons-alert-dialog {
16 position: absolute;
17 top: 0;
18 left: 0;
19 bottom: 0;
20 right: 0;
21 overflow: hidden;
22 touch-action: manipulation; /* Remove click delay */
23}
24
25ons-toast {
26 pointer-events: none;
27}
28
29ons-toast .toast {
30 pointer-events: auto;
31}
32
33ons-tab {
34 -webkit-transform: translate3d(0, 0, 0);
35 transform: translate3d(0, 0, 0);
36}
37
38ons-page, ons-navigator, ons-tabbar, ons-dialog, ons-alert-dialog, ons-action-sheet, ons-toast {
39 z-index: 2;
40}
41
42ons-fab, ons-speed-dial {
43 z-index: 10001;
44}
45
46ons-toolbar:not([inline]), ons-bottom-toolbar {
47 position: absolute;
48 left: 0;
49 right: 0;
50 z-index: 10000;
51}
52
53ons-toolbar:not([inline]) {
54 top: 0;
55}
56
57ons-bottom-toolbar {
58 bottom: 0;
59}
60
61.page, .page__content,
62.page--material, .page--material__content {
63 background-color: transparent !important;
64 background: transparent !important;
65}
66
67.page__content {
68 overflow: auto;
69 -webkit-overflow-scrolling: touch;
70 z-index: 0;
71 -ms-touch-action: pan-y;
72}
73
74.page.overflow-visible,
75.page.overflow-visible .page,
76.page.overflow-visible .page__content,
77.page.overflow-visible ons-navigator,
78.page.overflow-visible ons-splitter {
79 overflow: visible;
80}
81
82.page.overflow-visible .page__content.content-swiping,
83.page.overflow-visible .page__content.content-swiping .page,
84.page.overflow-visible .page__content.content-swiping .page__content {
85 overflow: auto;
86}
87
88.page[status-bar-fill] > .page__content {
89 top: 20px;
90}
91
92.page[status-bar-fill] > .toolbar {
93 padding-top: 20px;
94 box-sizing: content-box;
95}
96
97.page[status-bar-fill] > .toolbar:not(.toolbar--transparent) + .page__background,
98.page[status-bar-fill] > .toolbar:not(.toolbar--cover-content) + .page__background + .page__content {
99 top: 64px;
100}
101
102.page[status-bar-fill] > .toolbar--material:not(.toolbar-transparent) + .page__background,
103.page[status-bar-fill] > .toolbar--material:not(.toolbar--cover-content) + .page__background + .page__content {
104 top: 76px;
105}
106
107.page[status-bar-fill] > .toolbar.toolbar--transparent + .page__background {
108 top: 0;
109}
110
111ons-tabbar[status-bar-fill] > .tabbar--top__content {
112 top: 71px;
113}
114
115ons-tabbar[status-bar-fill] > .tabbar--top {
116 padding-top: 22px;
117}
118
119ons-tabbar[position="top"] .page[status-bar-fill] > .page__content {
120 top: 0px;
121}
122
123.toolbar + .page__background + .page__content ons-tabbar[status-bar-fill] > .tabbar--top {
124 top: 0px;
125}
126
127.toolbar + .page__background + .page__content ons-tabbar[status-bar-fill] > .tabbar--top__content {
128 top: 49px;
129}
130
131.page__content > .list:not(.list--material):first-child {
132 margin-top: -1px; /* Avoid double border with toolbar */
133}
134
135.page--wrapper > .page__background {
136 display: none;
137}
138
139ons-action-sheet[disabled],
140ons-dialog[disabled],
141ons-alert-dialog[disabled],
142ons-popover[disabled] {
143 pointer-events: none;
144 opacity: 0.75;
145}
146
147ons-list-item[disabled] {
148 pointer-events: none;
149}
150
151ons-range[disabled] {
152 opacity: 0.3;
153 pointer-events: none;
154}
155
156ons-pull-hook {
157 position: relative;
158 display: block;
159 margin: auto;
160 text-align: center;
161 z-index: 20002;
162}
163
164ons-splitter, ons-splitter-mask, ons-splitter-content, ons-splitter-side {
165 display: block;
166 position: absolute;
167 left: 0;
168 right: 0;
169 top: 0;
170 bottom: 0;
171 box-sizing: border-box;
172 z-index: 0;
173}
174
175ons-splitter-mask {
176 z-index: 4;
177 background-color: rgba(0, 0, 0, 0.1);
178 display: none;
179 opacity: 0;
180}
181
182ons-splitter-content {
183 z-index: 2;
184}
185
186ons-splitter-side {
187 right: auto;
188 z-index: 2;
189}
190
191ons-splitter-side[side="right"] {
192 right: 0;
193 left: auto;
194}
195
196ons-splitter-side[mode="collapse"] {
197 z-index: 5;
198 left: auto;
199 right: 100%;
200}
201
202ons-splitter-side[side="right"][mode="collapse"] {
203 right: auto;
204 left: 100%;
205}
206
207ons-splitter-side[mode="split"] {
208 z-index: 3;
209}
210
211ons-toolbar-button > ons-icon[icon*="ion-"] {
212 font-size: 26px;
213}
214
215ons-range, ons-select {
216 display: inline-block;
217}
218
219ons-range > input {
220 min-width: 50px;
221 width: 100%;
222}
223
224ons-select > select {
225 width: 100%;
226}
227
228ons-carousel[disabled] {
229 pointer-events: none;
230 opacity: 0.75;
231}
232
233ons-carousel[fullscreen] {
234 height: 100%;
235}
236
237.ons-status-bar-mock {
238 position: absolute;
239 width: 100%;
240 height: 20px;
241 padding: 0 16px 0 6px;
242 box-sizing: border-box;
243 z-index: 30000;
244 display: -webkit-box;
245 display: -webkit-flex;
246 display: flex;
247 -webkit-box-pack: justify;
248 -webkit-justify-content: space-between;
249 justify-content: space-between;
250 font-size: 12px;
251 line-height: 20px;
252 font-family: Arial, Helvetica;
253}
254
255.ons-status-bar-mock i {
256 padding: 0 2px;
257}
258
259.ons-status-bar-mock.android {
260 color: white;
261 background-color: #222;
262 font-family: Roboto, Arial, Helvetica;
263}
264
265.ons-status-bar-mock.android ~ * {
266 top: 20px;
267 bottom: 0;
268 position: inherit;
269 width: 100%;
270}
271
272.ons-ios-scroll-fix .page:not(.page--wrapper)[shown] > .page__content {
273 overflow-y: hidden;
274}
275.ons-ios-scroll-fix ons-splitter-side > .page:not(.page--wrapper)[shown] > .page__content {
276 overflow-y: auto;
277}
278
279ons-row {
280 display: -webkit-box;
281 display: -webkit-flex;
282 display: -moz-box;
283 display: -moz-flex;
284 display: -ms-flexbox;
285 display: flex;
286 -webkit-flex-wrap: wrap;
287 flex-wrap: wrap;
288 width: 100%;
289 box-sizing: border-box;
290}
291
292ons-row[vertical-align="top"], ons-row[align="top"] {
293 -webkit-box-align: start;
294 box-align: start;
295 -ms-flex-align: start;
296 -webkit-align-items: flex-start;
297 -moz-align-items: flex-start;
298 align-items: flex-start;
299}
300
301ons-row[vertical-align="bottom"], ons-row[align="bottom"] {
302 -webkit-box-align: end;
303 box-align: end;
304 -ms-flex-align: end;
305 -webkit-align-items: flex-end;
306 -moz-align-items: flex-end;
307 align-items: flex-end;
308}
309
310ons-row[vertical-align="center"], ons-row[align="center"] {
311 -webkit-box-align: center;
312 box-align: center;
313 -ms-flex-align: center;
314 -webkit-align-items: center;
315 -moz-align-items: center;
316 align-items: center;
317 text-align: inherit;
318}
319
320ons-row + ons-row {
321 padding-top: 0;
322}
323
324ons-col {
325 -webkit-box-flex: 1;
326 -webkit-flex: 1;
327 -moz-box-flex: 1;
328 -moz-flex: 1;
329 -ms-flex: 1;
330 flex: 1;
331 display: block;
332 width: 100%;
333 box-sizing: border-box;
334}
335
336ons-col[vertical-align="top"], ons-col[align="top"] {
337 -webkit-align-self: flex-start;
338 -moz-align-self: flex-start;
339 -ms-flex-item-align: start;
340 align-self: flex-start;
341}
342
343ons-col[vertical-align="bottom"], ons-col[align="bottom"] {
344 -webkit-align-self: flex-end;
345 -moz-align-self: flex-end;
346 -ms-flex-item-align: end;
347 align-self: flex-end; }
348
349ons-col[vertical-align="center"], ons-col[align="center"] {
350 -webkit-align-self: center;
351 -moz-align-self: center;
352 -ms-flex-item-align: center;
353 text-align: inherit;
354}
355
356
357/*
358Copyright 2013-2015 ASIAL CORPORATION
359
360Licensed under the Apache License, Version 2.0 (the "License");
361you may not use this file except in compliance with the License.
362You may obtain a copy of the License at
363
364 http://www.apache.org/licenses/LICENSE-2.0
365
366Unless required by applicable law or agreed to in writing, software
367distributed under the License is distributed on an "AS IS" BASIS,
368WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
369See the License for the specific language governing permissions and
370limitations under the License.
371
372 */
373
374.ons-icon {
375 display: inline-block;
376 line-height: inherit;
377 font-style: normal;
378 font-weight: normal;
379 font-size: inherit;
380 text-rendering: auto;
381 -webkit-font-smoothing: antialiased;
382 -moz-osx-font-smoothing: grayscale;
383}
384
385.segment__button .ons-icon {
386 line-height: initial;
387}
388
389:not(ons-toolbar-button):not(ons-action-sheet-button):not(.segment__button) > .ons-icon--ion {
390 line-height: 0.75em;
391 vertical-align: -25%;
392}
393
394.ons-icon[spin] {
395 -webkit-animation: ons-icon-spin 2s infinite linear;
396 -moz-animation: ons-icon-spin 2s infinite linear;
397 animation: ons-icon-spin 2s infinite linear;
398}
399
400@-moz-keyframes ons-icon-spin {
401 0% {
402 -moz-transform: rotate(0deg);
403 }
404 100% {
405 -moz-transform: rotate(359deg);
406 }
407}
408
409@-webkit-keyframes ons-icon-spin {
410 0% {
411 -webkit-transform: rotate(0deg);
412 }
413 100% {
414 -webkit-transform: rotate(359deg);
415 }
416}
417
418@keyframes ons-icon-spin {
419 0% {
420 -webkit-transform: rotate(0deg);
421 transform: rotate(0deg);
422 }
423 100% {
424 -webkit-transform: rotate(359deg);
425 transform: rotate(359deg);
426 }
427}
428
429.ons-icon[rotate="90"] {
430 -webkit-transform: rotate(90deg);
431 -moz-transform: rotate(90deg);
432 transform: rotate(90deg);
433}
434
435.ons-icon[rotate="180"] {
436 -webkit-transform: rotate(180deg);
437 -moz-transform: rotate(180deg);
438 transform: rotate(180deg);
439}
440
441.ons-icon[rotate="270"] {
442 -webkit-transform: rotate(270deg);
443 -moz-transform: rotate(270deg);
444 transform: rotate(270deg);
445}
446
447.ons-icon[fixed-width] {
448 width: 1.28571429em;
449 text-align: center;
450}
451
452.ons-icon--lg {
453 font-size: 1.33333333em;
454 line-height: 0.75em;
455 vertical-align: -15%;
456}
457
458.ons-icon--2x {
459 font-size: 2em;
460}
461
462.ons-icon--3x {
463 font-size: 3em;
464}
465
466.ons-icon--4x {
467 font-size: 4em;
468}
469
470.ons-icon--5x {
471 font-size: 5em;
472}
473
474/**
475 * ons-icon with Font Awesome backward compatibility
476 */
477.ons-icon.fa {
478 font-family: 'Font Awesome 5 Brands', 'Font Awesome 5 Free';
479 font-weight: 900;
480}
481
482ons-input, ons-radio, ons-checkbox, ons-search-input {
483 display: inline-block;
484 position: relative;
485}
486
487ons-input .text-input,
488ons-search-input .search-input {
489 width: 100%;
490 display: inline-block;
491}
492
493ons-input .text-input__label:not(.text-input--material__label) {
494 display: none;
495}
496
497ons-input:not([float]) .text-input--material__label--active {
498 display: none;
499}
500
501ons-input[disabled],
502ons-radio[disabled],
503ons-checkbox[disabled],
504ons-segment[disabled],
505ons-search-input[disabled] {
506 opacity: 0.5;
507 pointer-events: none;
508}
509
510ons-input input.text-input--material::-webkit-input-placeholder {
511 color: transparent;
512}
513
514ons-input input.text-input--material::-moz-placeholder {
515 color: transparent;
516}
517
518ons-input input.text-input--material:-ms-input-placeholder {
519 color: transparent;
520}
521
522/* Suppress safe area support for pages in splitter sides */
523@media (orientation: landscape) {
524 html[onsflag-iphonex-landscape] ons-splitter-side[side="left"] .page__content {
525 padding-right: 0;
526 }
527 html[onsflag-iphonex-landscape] ons-splitter-side[side="right"] .page__content {
528 padding-left: 0;
529 }
530}
531/* Support the situation that a progress bar is located just below a toolbar */
532@media (orientation: landscape) {
533 html[onsflag-iphonex-landscape] .page__content > ons-progress-bar > .progress-bar {
534 margin-left: -44px;
535 margin-right: -44px;
536 width: calc(100% + 88px);
537 }
538}
539/* Lists in .page__content in splitter-sides */
540@media (orientation: landscape) {
541 /* Suppress left safe area support for pages in right splitter sides */
542 html[onsflag-iphonex-landscape] ons-splitter-side[side="right"] .page__content > .list:not(.list--inset) {
543 margin-left: 0;
544 }
545 html[onsflag-iphonex-landscape] ons-splitter-side[side="right"] .page__content > .list:not(.list--inset) > .list-header {
546 padding-left: 15px;
547 }
548 html[onsflag-iphonex-landscape] ons-splitter-side[side="right"] .page__content > .list:not(.list--inset) > .list-item {
549 padding-left: 14px;
550 }
551
552 /* Suppress right safe area support for pages in left splitter sides */
553 html[onsflag-iphonex-landscape] ons-splitter-side[side="left"] .page__content > .list:not(.list--inset) {
554 margin-right: 0;
555 }
556 html[onsflag-iphonex-landscape] ons-splitter-side[side="left"] .page__content > .list:not(.list--inset) > .list-item--chevron:before {
557 right: 16px;
558 }
559 html[onsflag-iphonex-landscape] ons-splitter-side[side="left"] .page__content > .list:not(.list--inset) > .list-item > .list-item__center:last-child {
560 padding-right: 6px;
561 }
562 html[onsflag-iphonex-landscape] ons-splitter-side[side="left"] .page__content > .list:not(.list--inset) > .list-item > .list-item__right {
563 padding-right: 12px;
564 }
565 html[onsflag-iphonex-landscape] ons-splitter-side[side="left"] .page__content > .list:not(.list--inset) > .list-item > .list-item--chevron__right {
566 padding-right: 30px;
567 }
568}
569
570/*
571Copyright 2013-2015 ASIAL CORPORATION
572
573Licensed under the Apache License, Version 2.0 (the "License");
574you may not use this file except in compliance with the License.
575You may obtain a copy of the License at
576
577 http://www.apache.org/licenses/LICENSE-2.0
578
579Unless required by applicable law or agreed to in writing, software
580distributed under the License is distributed on an "AS IS" BASIS,
581WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
582See the License for the specific language governing permissions and
583limitations under the License.
584
585 */
586
587ons-progress-bar {
588 display: block;
589}
590
591ons-progress-circular {
592 display: inline-block;
593 width: 32px;
594 height: 32px;
595}
596
597ons-progress-circular > svg.progress-circular {
598 width: 100%;
599 height: 100%;
600}
601
602/*
603Copyright 2013-2015 ASIAL CORPORATION
604
605Licensed under the Apache License, Version 2.0 (the "License");
606you may not use this file except in compliance with the License.
607You may obtain a copy of the License at
608
609 http://www.apache.org/licenses/LICENSE-2.0
610
611Unless required by applicable law or agreed to in writing, software
612distributed under the License is distributed on an "AS IS" BASIS,
613WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
614See the License for the specific language governing permissions and
615limitations under the License.
616
617 */
618.ripple {
619 display: block;
620 position: absolute;
621 overflow: hidden;
622 top: 0;
623 left: 0;
624 right: 0;
625 bottom: 0;
626 pointer-events: none;
627}
628
629.ripple__background {
630 background: rgba(255, 255, 255, 0.2);
631 position: absolute;
632 top: 0;
633 left: 0;
634 right: 0;
635 bottom: 0;
636 opacity: 0;
637 pointer-events: none;
638}
639
640.ripple__wave {
641 background: rgba(255, 255, 255, 0.2);
642 width: 0;
643 height: 0;
644 border-radius: 50%;
645 position: absolute;
646 top: 0;
647 left: 0;
648 z-index: 0;
649 pointer-events: none;
650}
651
652/* FIXME */
653ons-list-item .ripple__wave,
654ons-list-item .ripple__background,
655.button--material--flat .ripple__wave,
656.button--material--flat .ripple__background {
657 background: rgba(189, 189, 189, 0.3);
658}
659
660.ripple--light-gray__wave,
661.ripple--light-gray__background {
662 background: rgba(189, 189, 189, 0.3);
663}
664
665
666/*
667Copyright 2013-2015 ASIAL CORPORATION
668
669Licensed under the Apache License, Version 2.0 (the "License");
670you may not use this file except in compliance with the License.
671You may obtain a copy of the License at
672
673 http://www.apache.org/licenses/LICENSE-2.0
674
675Unless required by applicable law or agreed to in writing, software
676distributed under the License is distributed on an "AS IS" BASIS,
677WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
678See the License for the specific language governing permissions and
679limitations under the License.
680
681 */
682
683.ons-swiper {
684 overflow: hidden;
685 display: block;
686 box-sizing: border-box;
687}
688
689.ons-swiper-target {
690 display: -webkit-box;
691 display: -webkit-flex;
692 display: flex;
693 height: 100%;
694 z-index: 1;
695 -webkit-box-orient: horizontal;
696 -webkit-box-direction: normal;
697 -webkit-flex-direction: row;
698 flex-direction: row;
699}
700
701.ons-swiper-target--vertical {
702 -webkit-box-orient: vertical;
703 -webkit-box-direction: normal;
704 -webkit-flex-direction: column;
705 flex-direction: column;
706}
707
708.ons-swiper-target > * {
709 height: inherit;
710 -webkit-flex-shrink: 0;
711 flex-shrink: 0;
712 box-sizing: border-box;
713 width: 100%;
714 position: relative !important;
715}
716
717.ons-swiper-target.active:not(.swiping) > .page:not([shown]) {
718 visibility: hidden;
719}
720
721.ons-swiper-tabbar .tabbar--material__button:after {
722 display: none;
723}
724
725.ons-swiper-blocker {
726 display: block;
727 position: absolute;
728 top: 0;
729 bottom: 0;
730 left: 0;
731 right: 0;
732 pointer-events: none
733}