UNPKG

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