UNPKG

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