UNPKG

4.51 kBCSSView Raw
1
2/**
3 * 1. Do not adjusts the text size automatically.
4 * IE Phone note - If the viewport is set using <meta> element,
5 * the value of the CSS text-size-adjust property is ignored.
6 * Webkit bug - If -webkit-text-size-adjust is explicitely set to none,
7 * Webkit-based desktop browsers, like Chrome or Safari,
8 * instead of ignoring the property, will prevent the user to zoom in or out the Web page.
9 * See Bug 56543, Bug 163359, and Bug 84186.
10 * 2. IE for Windows Phone 8.1 supports "-webkit-text-size-adjust" as an alias for "-ms-text-size-adjust".
11 * 3. Firefox<29, iOS<4, Android<4 need vendor prefixes.
12 * 4. Disable double-tap gestures to remove 350 millisecond delay before single taps.
13 * 5. Improve scroll performance by stop the paint on scroll.
14 * Fix position: fixed in most Android 2.2–2.3 browsers
15 * http://benfrain.com/easy-css-fix-fixed-positioning-android-2-2-2-3/
16 */
17
18*, *:before, *:after {
19 color: inherit;
20 -webkit-box-sizing: inherit; /* 3 */
21 -moz-box-sizing: inherit;
22 box-sizing: inherit;
23 -webkit-backface-visibility: inherit;
24 backface-visibility: inherit;
25}
26
27html {
28 -webkit-text-size-adjust: 100%; /* 1 */
29 -ms-text-size-adjust: 100%; /* 2 */
30 -webkit-font-smoothing: antialiased;
31 -webkit-box-sizing: border-box; /* 3 */
32 -moz-box-sizing: border-box;
33 box-sizing: border-box;
34 touch-action: manipulation; /* 4 */
35 -webkit-backface-visibility: hidden; /* 5 */
36 backface-visibility: hidden;
37}
38
39html,
40body,
41form,
42fieldset,
43legend,
44img,
45.btn,
46.reset {
47 margin: 0;
48 padding: 0;
49 border: 0;
50 outline: 0;
51}
52
53/**
54 * 1. Alternate cursor for IE
55 * 2. Fixes extra padding issue in IE6/7
56 * 3. Firefox default is: b, strong { font-weight: bolder; }
57 * and it does not render well with some fonts (Helvetica Neue on macs for example).
58 */
59
60a,
61button,
62label,
63.btn,
64.hand {
65 cursor: pointer;
66 *cursor: hand; /* 1 */
67 pointer-events: auto;
68}
69
70.no-events {
71 pointer-events: none;
72}
73
74button {
75 width: auto; /* 2 */
76 overflow: visible; /* 2 */
77}
78
79b,
80strong,
81th {
82 font-weight: bold; /* 3 */
83}
84
85audio,
86button,
87canvas,
88iframe,
89img,
90input,
91select,
92svg,
93video {
94 vertical-align: middle;
95}
96
97/**
98 * 1. tables still need cellspacing="0" in the markup
99 * 2. Restores the normal text size
100 * @see http://code.stephenmorley.org/html-and-css/fixing-browsers-broken-monospace-font-handling/
101 */
102
103table {
104 border-collapse: collapse;
105 border-spacing: 0; /* 1 */
106}
107
108code,
109kbd,
110pre,
111samp {
112 font-family: monospace, monospace; /* 2 */
113 font-size: 1em;
114}
115
116textarea {
117 resize: vertical;
118}
119
120button,
121[draggable=true],
122.btn,
123.noselect {
124 -webkit-user-select: none;
125 -khtml-user-select: none;
126 -moz-user-select: none;
127 -ms-user-select: none;
128 -o-user-select: none;
129 user-select: none;
130}
131
132[draggable=true] {
133 -webkit-user-drag: element;
134 -khtml-user-drag: element;
135 user-drag: element;
136}
137
138
139/**
140 * Global Classes
141 * --------------
142 */
143
144.max-height {
145 height: auto !important;
146 height: 100%;
147 min-height: 100%;
148}
149
150.sm .sm-hide,
151.md .md-hide,
152.lg .lg-hide,
153.hide-empty:empty,
154.hide {
155 display: none !important;
156 visibility: hidden;
157}
158.transparent {
159 opacity: 0 !important;
160 filter: alpha(opacity=0) !important;
161}
162.max {
163 top: 0px;
164 left: 0px;
165 width: 100%;
166 height: 100%;
167 overflow: hidden;
168}
169.abs {
170 position: absolute;
171 top: 0px;
172 left: 0px;
173}
174.absr {
175 position: absolute;
176 top: 0px;
177 right: 0px;
178}
179.fix {
180 position: absolute;
181 position: fixed;
182}
183.rel {
184 position: relative;
185 height: 100%;
186}
187
188
189/* establishes a new block formatting context */
190.block {
191 overflow: hidden;
192}
193
194.btn,
195.nowrap,
196.ellipsis {
197 overflow: hidden;
198 text-overflow: ellipsis;
199 white-space: nowrap;
200}
201
202/**
203 * 1. Trigger GPU acceleration.
204 * Remove first flicker on iphone.
205 */
206
207.anim,
208.anim:after,
209.anim:before {
210 -webkit-transition: all .2s cubic-bezier(0, 0, .2, 1) 0s;
211 -moz-transition: all .2s cubic-bezier(0, 0, .2, 1) 0s;
212 -o-transition: all .2s cubic-bezier(0, 0, .2, 1) 0s;
213 transition: all .2s cubic-bezier(0, 0, .2, 1) 0s;
214
215 -webkit-transform: translate3d(0, 0, 0); /* 1 */
216 transform: translate3d(0, 0, 0);
217 -webkit-perspective: 1000;
218 perspective: 1000;
219}
220
221.sm .sm-left,
222.md .md-left,
223.lg .lg-left,
224.left {
225 float: left;
226}
227
228.sm .sm-right,
229.md .md-right,
230.lg .lg-right,
231.right {
232 float: right;
233}
234
235.t-left {
236 text-align: left;
237}
238
239.t-center {
240 text-align: center;
241}
242.t-right {
243 text-align: right;
244}
245
246