UNPKG

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