tizen beta release
[framework/web/web-ui-fw.git] / src / themes / tizen / common / jquery.mobile.core.less
1 /*
2 * jQuery Mobile Framework
3 * Copyright (c) jQuery Project
4 * Dual licensed under the MIT (MIT-LICENSE.txt) and GPL (GPL-LICENSE.txt) licenses.
5 */
6
7 /*** less definitions ***/
8 @import "config.less";
9 /************************/
10
11
12 /* some unsets - more probably needed */
13 .ui-mobile, .ui-mobile body { height: 100%; font-size: @font_size_default; }
14 .ui-mobile fieldset, .ui-page { padding: 0; margin: 0; }
15 .ui-mobile a img, .ui-mobile fieldset { border: 0; }
16
17 /* responsive page widths */
18 .ui-mobile-viewport {  margin: 0; overflow-x: hidden; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
19
20 /* "page" containers - full-screen views, one should always be in view post-pageload */
21 .ui-mobile [data-role=page], .ui-mobile [data-role=dialog], .ui-page { top: 0; left: 0; width: 100%; min-height: 100%; position: absolute; display: none; border: 0; } 
22 .ui-mobile .ui-page-active { display: block; overflow: visible; }
23
24 /* on ios4, setting focus on the page element causes flashing during transitions when there is an outline, so we turn off outlines */
25 .ui-page { outline: none; }
26
27 /*orientations from js are available */
28 @media screen and (orientation: portrait){
29 .ui-mobile, .ui-mobile .ui-page { min-height: 420px; background: black; }
30 }
31 @media screen and (orientation: landscape){
32 .ui-mobile, .ui-mobile .ui-page { min-height: 300px; background: black; }
33 }
34
35 /* native overflow scrolling */
36 .ui-page.ui-mobile-touch-overflow,
37 .ui-mobile-touch-overflow.ui-native-fixed .ui-content {
38         overflow: auto;
39         height: 100%;
40         -webkit-overflow-scrolling: touch;
41         -moz-overflow-scrolling: touch;
42         -o-overflow-scrolling: touch;
43         -ms-overflow-scrolling: touch;
44         overflow-scrolling: touch;
45 }
46 .ui-page.ui-mobile-touch-overflow,
47 .ui-page.ui-mobile-touch-overflow * {
48         /* some level of transform keeps elements from blinking out of visibility on iOS */
49         -webkit-transform: rotateY(0);
50 }
51 .ui-page.ui-mobile-pre-transition {
52         display: block;
53 }
54
55 /* loading screen */
56 .ui-loading .ui-mobile-viewport { overflow: hidden !important; }
57 .ui-loading .ui-loader { display: block; }
58 .ui-loading .ui-page { overflow: hidden;  }
59 .ui-loader { display: none; position: absolute; opacity: .85; z-index: @z_base_loader; left: 50%; width: 200px; margin-left: -130px; margin-top: -35px; padding: 10px 30px; }
60 .ui-loader h1 { font-size: 0.5 * @font_size_default; text-align: center; }
61 .ui-loader .ui-icon { position: static; display: block; opacity: .9; margin: 0 auto; width: 35px; height: 35px; background-color: transparent; }
62
63 /*fouc*/
64 .ui-mobile-rendering > * { visibility: hidden; }
65
66 /*headers, content panels*/
67 .ui-bar, .ui-body { position: relative; padding: .4em 15px;  overflow: hidden; display: block;  clear:both;  }
68 .ui-bar { font-size: 16px; margin: 0; }
69 .ui-bar h1, .ui-bar h2, .ui-bar h3, .ui-bar h4, .ui-bar h5, .ui-bar h6 { margin: 0; padding: 0; font-size: 16px; display: inline-block; }
70
71 .ui-header, .ui-footer { display: block; }
72 .ui-page .ui-header, .ui-page .ui-footer { 
73         position : fixed; /*position: relative;*/ 
74         z-index : @z_base_header_footer;
75 }/* Option header reposition : Jinhyuk */
76 .ui-header .ui-btn-left { position: absolute; left: 10px; top: .4em;  }
77 .ui-header .ui-btn-right { position: absolute; right: 10px; top: .4em; }
78 .ui-header .ui-title, .ui-footer .ui-title { min-height: 1.1em; text-align: center; font-size: 16px; display: block; margin: .6em 90px .8em;  padding: 0;  text-overflow: ellipsis; overflow: hidden; white-space: nowrap; outline: 0 !important; }
79
80 /*content area*/
81 .ui-content { border-width: 0; overflow: visible; overflow-x: hidden; padding: 15px; }
82 .ui-page-fullscreen .ui-content { padding:0; }
83
84 /* native fixed headers and footers */
85 .ui-mobile-touch-overflow.ui-page.ui-native-fixed,
86 .ui-mobile-touch-overflow.ui-page.ui-native-fullscreen {
87         overflow: visible;
88 }
89 .ui-mobile-touch-overflow.ui-native-fixed .ui-header,
90 .ui-mobile-touch-overflow.ui-native-fixed .ui-footer {
91         position: fixed;
92         left: 0;
93         right: 0;
94         top: 0;
95         z-index: 200;
96 }
97 .ui-mobile-touch-overflow.ui-page.ui-native-fixed .ui-footer {
98         top: auto;
99         bottom: 0;
100 }
101 .ui-mobile-touch-overflow.ui-native-fixed .ui-content {
102         padding-top: 2.5em;
103         padding-bottom: 3em;
104         top: 0;
105         bottom: 0;
106         height: auto;
107         position: absolute;
108 }
109 .ui-mobile-touch-overflow.ui-native-fullscreen .ui-content {
110         padding-top: 0;
111         padding-bottom: 0;
112 }
113 .ui-mobile-touch-overflow.ui-native-fullscreen .ui-header,
114 .ui-mobile-touch-overflow.ui-native-fullscreen .ui-footer {
115         opacity: .9;
116 }
117 .ui-native-bars-hidden {
118         display: none;
119 }
120
121 /* icons sizing */
122 .ui-icon { width: 18px; height: 18px; }
123
124 /* fullscreen class on ui-content div */
125 .ui-fullscreen {  }
126 .ui-fullscreen img { max-width: 100%; }
127
128 /* non-js content hiding */
129 .ui-nojs { position: absolute; left: -9999px; }