UNPKG

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