]> git.0d.be Git - panikweb-esperanzah.git/blob - panikweb/static/css/_reset.scss
settings: declare PROJECT_PATH
[panikweb-esperanzah.git] / panikweb / static / css / _reset.scss
1 /**
2  * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
3  * http://cssreset.com
4  */
5 html, body, div, span, applet, object, iframe,
6 h1, h2, h3, h4, h5, h6, p, blockquote, pre,
7 a, abbr, acronym, address, big, cite, code,
8 del, dfn, em, img, ins, kbd, q, s, samp,
9 small, strike, strong, sub, sup, tt, var,
10 b, u, i, center,
11 dl, dt, dd, ol, ul, li,
12 fieldset, form, label, legend, button,
13 table, caption, tbody, tfoot, thead, tr, th, td,
14 article, aside, canvas, details, embed,
15 figure, figcaption, footer, header, hgroup,
16 menu, nav, output, ruby, section, summary,
17 time, mark, audio, video {
18     margin: 0;
19     padding: 0;
20     border: 0;
21     font-size: 100%;
22     /*font: inherit;*/
23         color:inherit;
24 }
25 /* HTML5 display-role reset for older browsers */
26 article, aside, details, figcaption, figure,
27 footer, header, hgroup, menu, nav, section {
28     display: block;
29 }
30 body {
31     line-height: 1;
32 }
33 ol, ul {
34 }
35 blockquote, q {
36     quotes: none;
37 }
38 blockquote:before, blockquote:after,
39 q:before, q:after {
40     content: '';
41     content: none;
42 }
43 table {
44     border-collapse: collapse;
45     border-spacing: 0;
46 }
47
48 h1, h2, h3, h5, h6 {
49     font-weight: normal;
50 }
51 button{background:none;border:none;}
52 button:focus::-moz-focus-inner,
53 button::-moz-focus-inner,
54 input[type="reset"]::-moz-focus-inner,
55 input[type="button"]::-moz-focus-inner,
56 input[type="submit"]::-moz-focus-inner,
57 input[type="file"] > input[type="button"]::-moz-focus-inner {
58   border: 0px dotted transparent;
59 }
60 /* The following code is taken from Normalize.css,
61  * available under the MIT License:
62  *
63  * Copyright (c) Nicolas Gallagher and Jonathan Neal
64  * 
65  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66  * 
67  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
68  * 
69  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
70  *
71  */
72
73 // ==========================================================================
74 // Forms
75 // ==========================================================================
76
77 //
78
79
80 //
81 // 1. Correct `color` not being inherited in IE 8/9.
82 // 2. Remove padding so people aren't caught out if they zero out fieldsets.
83 //
84
85 legend {
86     border: 0; // 1
87     padding: 0; // 2
88 }
89
90 //
91 // 1. Correct font family not being inherited in all browsers.
92 // 2. Correct font size not being inherited in all browsers.
93 // 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
94 //
95
96 button,
97 input,
98 select,
99 textarea {
100     font-family: inherit; // 1
101     font-size: 100%; // 2
102     margin: 0; // 3
103     border: none;
104 }
105
106 //
107 // Address Firefox 4+ setting `line-height` on `input` using `!important` in
108 // the UA stylesheet.
109 //
110
111 button,
112 input {
113     line-height: normal;
114 }
115
116 //
117 // Address inconsistent `text-transform` inheritance for `button` and `select`.
118 // All other form control elements do not inherit `text-transform` values.
119 // Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
120 // Correct `select` style inheritance in Firefox 4+ and Opera.
121 //
122
123 button,
124 select {
125     text-transform: none;
126 }
127
128 //
129 // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
130 //        and `video` controls.
131 // 2. Correct inability to style clickable `input` types in iOS.
132 // 3. Improve usability and consistency of cursor style between image-type
133 //        `input` and others.
134 //
135
136 button,
137 html input[type="button"], // 1
138 input[type="reset"],
139 input[type="submit"] {
140     -webkit-appearance: button; // 2
141     cursor: pointer; // 3
142 }
143
144 //
145 // Re-set default cursor for disabled elements.
146 //
147
148 button[disabled],
149 html input[disabled] {
150     cursor: default;
151 }
152
153 //
154 // 1. Address box sizing set to `content-box` in IE 8/9.
155 // 2. Remove excess padding in IE 8/9.
156 //
157
158 input[type="checkbox"],
159 input[type="radio"] {
160     box-sizing: border-box; // 1
161     padding: 0; // 2
162 }
163
164 //
165 // 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
166 // 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
167 //        (include `-moz` to future-proof).
168 //
169
170 input[type="search"] {
171     -webkit-appearance: textfield; // 1
172     -moz-box-sizing: content-box;
173     -webkit-box-sizing: content-box; // 2
174     box-sizing: content-box;
175 }
176
177 //
178 // Remove inner padding and search cancel button in Safari 5 and Chrome
179 // on OS X.
180 //
181
182 input[type="search"]::-webkit-search-cancel-button,
183 input[type="search"]::-webkit-search-decoration {
184     -webkit-appearance: none;
185 }
186
187 //
188 // Remove inner padding and border in Firefox 4+.
189 //
190
191 button::-moz-focus-inner,
192 input::-moz-focus-inner {
193     border: 0;
194     padding: 0;
195 }
196
197 //
198 // 1. Remove default vertical scrollbar in IE 8/9.
199 // 2. Improve readability and alignment in all browsers.
200 //
201
202 textarea {
203     overflow: auto; // 1
204     vertical-align: top; // 2
205 }
206