Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 126 lines (111 sloc) 2.425 kb
3157de8 F A T clean up comments for better built files
fat authored
1 // Reset.less
782c994 Nicolas Gallagher Remove global reset in favour of contextual reset.
necolas authored
2 // Adapted from Normalize.css http://github.com/necolas/normalize.css
3157de8 F A T clean up comments for better built files
fat authored
3 // ------------------------------------------------------------------------
6d0b083 F A T update whitspace and comment styles
fat authored
4
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
5 // Display in IE6-9 and FF3
6 // -------------------------
7
8 article,
9 aside,
10 details,
11 figcaption,
12 figure,
13 footer,
14 header,
15 hgroup,
16 nav,
17 section {
9660f6f Mark Otto new buttons, new modal updates around spacing and placeholder content
mdo authored
18 display: block;
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
19 }
20
21 // Display block in IE6-9 and FF3
22 // -------------------------
782c994 Nicolas Gallagher Remove global reset in favour of contextual reset.
necolas authored
23
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
24 audio,
25 canvas,
26 video {
27 display: inline-block;
28 *display: inline;
29 *zoom: 1;
30 }
31
32 // Prevents modern browsers from displaying 'audio' without controls
33 // -------------------------
782c994 Nicolas Gallagher Remove global reset in favour of contextual reset.
necolas authored
34
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
35 audio:not([controls]) {
36 display: none;
37 }
38
782c994 Nicolas Gallagher Remove global reset in favour of contextual reset.
necolas authored
39 // Base settings
40 // -------------------------
41
42 html {
43 font-size: 100%;
44 -webkit-text-size-adjust: 100%;
45 -ms-text-size-adjust: 100%;
46 }
47 // Focus states
48 a:focus {
7e72eb5 Mark Otto new tab focus style and mixin
mdo authored
49 .tab-focus();
782c994 Nicolas Gallagher Remove global reset in favour of contextual reset.
necolas authored
50 }
51 // Hover & Active
52 a:hover,
53 a:active {
54 outline: 0;
55 }
56
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
57 // Prevents sub and sup affecting line-height in all browsers
58 // -------------------------
782c994 Nicolas Gallagher Remove global reset in favour of contextual reset.
necolas authored
59
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
60 sub,
61 sup {
4e6275d Mark Otto update property order and do some misc cleanup
mdo authored
62 position: relative;
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
63 font-size: 75%;
64 line-height: 0;
65 vertical-align: baseline;
66 }
67 sup {
68 top: -0.5em;
69 }
70 sub {
71 bottom: -0.25em;
72 }
73
74 // Img border in a's and image quality
75 // -------------------------
782c994 Nicolas Gallagher Remove global reset in favour of contextual reset.
necolas authored
76
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
77 img {
7b810bf Mark Otto update js in footer, add max-width to img
mdo authored
78 height: auto;
4e6275d Mark Otto update property order and do some misc cleanup
mdo authored
79 border: 0;
80 -ms-interpolation-mode: bicubic;
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
81 }
82
83 // Forms
84 // -------------------------
85
86 // Font size in all browsers, margin changes, misc consistency
87 button,
88 input,
89 select,
90 textarea {
91 margin: 0;
4e6275d Mark Otto update property order and do some misc cleanup
mdo authored
92 font-size: 100%;
b941346 Pete Hopkins Makes inputs and buttons align middle so they line up in all browsers
phopkins authored
93 vertical-align: middle;
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
94 }
95 button,
96 input {
97 *overflow: visible; // Inner spacing ie IE6/7
4e6275d Mark Otto update property order and do some misc cleanup
mdo authored
98 line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
99 }
100 button::-moz-focus-inner,
101 input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
102 padding: 0;
4e6275d Mark Otto update property order and do some misc cleanup
mdo authored
103 border: 0;
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
104 }
105 button,
106 input[type="button"],
107 input[type="reset"],
108 input[type="submit"] {
109 cursor: pointer; // Cursors on all buttons applied consistently
4158701 zhongwei99 Minor typo fix.
zhongwei99 authored
110 -webkit-appearance: button; // Style clickable inputs in iOS
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
111 }
112 input[type="search"] { // Appearance in Safari/Chrome
113 -webkit-appearance: textfield;
114 -webkit-box-sizing: content-box;
115 -moz-box-sizing: content-box;
116 box-sizing: content-box;
117 }
8825443 Nicolas Gallagher Remove search input cancel button in WebKit-OSX.
necolas authored
118 input[type="search"]::-webkit-search-decoration,
119 input[type="search"]::-webkit-search-cancel-button {
2d99e3f Mark Otto base import of normalize into the reset css, tweaks to selector specific...
mdo authored
120 -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
121 }
122 textarea {
123 overflow: auto; // Remove vertical scrollbar in IE6-9
124 vertical-align: top; // Readability and alignment cross-browser
8825443 Nicolas Gallagher Remove search input cancel button in WebKit-OSX.
necolas authored
125 }
Something went wrong with that request. Please try again.