UNPKG

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