Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-app / astakos / im / static / im / less / reset.less @ cf4c546f

History | View | Annotate | Download (3.7 kB)

1 13858d75 Kostas Papadimitriou
/* Reset.less
2 13858d75 Kostas Papadimitriou
 * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here	that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
3 13858d75 Kostas Papadimitriou
 * ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
4 13858d75 Kostas Papadimitriou
5 13858d75 Kostas Papadimitriou
6 13858d75 Kostas Papadimitriou
// ERIC MEYER RESET
7 13858d75 Kostas Papadimitriou
// --------------------------------------------------
8 13858d75 Kostas Papadimitriou
9 13858d75 Kostas Papadimitriou
html, body { margin: 0; padding: 0; }
10 13858d75 Kostas Papadimitriou
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, cite, code, del, dfn, em, img, q, s, samp, small, strike, strong, sub, sup, tt, var, dd, dl, dt, li, ol, ul, fieldset, form, label, legend, button, table, caption, tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; font-weight: normal; font-style: normal; font-size: 100%; line-height: 1; font-family: inherit; }
11 13858d75 Kostas Papadimitriou
table { border-collapse: collapse; border-spacing: 0; }
12 13858d75 Kostas Papadimitriou
ol, ul { list-style: none; }
13 13858d75 Kostas Papadimitriou
q:before, q:after, blockquote:before, blockquote:after { content: ""; }
14 13858d75 Kostas Papadimitriou
15 13858d75 Kostas Papadimitriou
16 13858d75 Kostas Papadimitriou
// Normalize.css
17 13858d75 Kostas Papadimitriou
// Pulling in select resets form the normalize.css project
18 13858d75 Kostas Papadimitriou
// --------------------------------------------------
19 13858d75 Kostas Papadimitriou
20 13858d75 Kostas Papadimitriou
// Display in IE6-9 and FF3
21 13858d75 Kostas Papadimitriou
// -------------------------
22 13858d75 Kostas Papadimitriou
// Source: http://github.com/necolas/normalize.css
23 13858d75 Kostas Papadimitriou
html {
24 13858d75 Kostas Papadimitriou
  overflow-y: scroll;
25 13858d75 Kostas Papadimitriou
  font-size: 100%;
26 13858d75 Kostas Papadimitriou
  -webkit-text-size-adjust: 100%;
27 13858d75 Kostas Papadimitriou
      -ms-text-size-adjust: 100%;
28 13858d75 Kostas Papadimitriou
}
29 13858d75 Kostas Papadimitriou
// Focus states
30 13858d75 Kostas Papadimitriou
a:focus {
31 13858d75 Kostas Papadimitriou
  outline: thin dotted;
32 13858d75 Kostas Papadimitriou
}
33 13858d75 Kostas Papadimitriou
// Hover & Active
34 13858d75 Kostas Papadimitriou
a:hover,
35 13858d75 Kostas Papadimitriou
a:active {
36 13858d75 Kostas Papadimitriou
  outline: 0;
37 13858d75 Kostas Papadimitriou
}
38 13858d75 Kostas Papadimitriou
39 13858d75 Kostas Papadimitriou
// Display in IE6-9 and FF3
40 13858d75 Kostas Papadimitriou
// -------------------------
41 13858d75 Kostas Papadimitriou
// Source: http://github.com/necolas/normalize.css
42 13858d75 Kostas Papadimitriou
article,
43 13858d75 Kostas Papadimitriou
aside,
44 13858d75 Kostas Papadimitriou
details,
45 13858d75 Kostas Papadimitriou
figcaption,
46 13858d75 Kostas Papadimitriou
figure,
47 13858d75 Kostas Papadimitriou
footer,
48 13858d75 Kostas Papadimitriou
header,
49 13858d75 Kostas Papadimitriou
hgroup,
50 13858d75 Kostas Papadimitriou
nav,
51 13858d75 Kostas Papadimitriou
section {
52 13858d75 Kostas Papadimitriou
  display: block;
53 13858d75 Kostas Papadimitriou
}
54 13858d75 Kostas Papadimitriou
55 13858d75 Kostas Papadimitriou
// Display block in IE6-9 and FF3
56 13858d75 Kostas Papadimitriou
// -------------------------
57 13858d75 Kostas Papadimitriou
// Source: http://github.com/necolas/normalize.css
58 13858d75 Kostas Papadimitriou
audio,
59 13858d75 Kostas Papadimitriou
canvas,
60 13858d75 Kostas Papadimitriou
video {
61 13858d75 Kostas Papadimitriou
  display: inline-block;
62 13858d75 Kostas Papadimitriou
  *display: inline;
63 13858d75 Kostas Papadimitriou
  *zoom: 1;
64 13858d75 Kostas Papadimitriou
}
65 13858d75 Kostas Papadimitriou
66 13858d75 Kostas Papadimitriou
// Prevents modern browsers from displaying 'audio' without controls
67 13858d75 Kostas Papadimitriou
// -------------------------
68 13858d75 Kostas Papadimitriou
// Source: http://github.com/necolas/normalize.css
69 13858d75 Kostas Papadimitriou
audio:not([controls]) {
70 13858d75 Kostas Papadimitriou
    display: none;
71 13858d75 Kostas Papadimitriou
}
72 13858d75 Kostas Papadimitriou
73 13858d75 Kostas Papadimitriou
// Prevents sub and sup affecting line-height in all browsers
74 13858d75 Kostas Papadimitriou
// -------------------------
75 13858d75 Kostas Papadimitriou
// Source: http://github.com/necolas/normalize.css
76 13858d75 Kostas Papadimitriou
sub,
77 13858d75 Kostas Papadimitriou
sup {
78 13858d75 Kostas Papadimitriou
  font-size: 75%;
79 13858d75 Kostas Papadimitriou
  line-height: 0;
80 13858d75 Kostas Papadimitriou
  position: relative;
81 13858d75 Kostas Papadimitriou
  vertical-align: baseline;
82 13858d75 Kostas Papadimitriou
}
83 13858d75 Kostas Papadimitriou
sup {
84 13858d75 Kostas Papadimitriou
  top: -0.5em;
85 13858d75 Kostas Papadimitriou
}
86 13858d75 Kostas Papadimitriou
sub {
87 13858d75 Kostas Papadimitriou
  bottom: -0.25em;
88 13858d75 Kostas Papadimitriou
}
89 13858d75 Kostas Papadimitriou
90 13858d75 Kostas Papadimitriou
// Img border in a's and image quality
91 13858d75 Kostas Papadimitriou
// -------------------------
92 13858d75 Kostas Papadimitriou
// Source: http://github.com/necolas/normalize.css
93 13858d75 Kostas Papadimitriou
img {
94 13858d75 Kostas Papadimitriou
    border: 0;
95 13858d75 Kostas Papadimitriou
    -ms-interpolation-mode: bicubic;
96 13858d75 Kostas Papadimitriou
}
97 13858d75 Kostas Papadimitriou
98 13858d75 Kostas Papadimitriou
// Forms
99 13858d75 Kostas Papadimitriou
// -------------------------
100 13858d75 Kostas Papadimitriou
// Source: http://github.com/necolas/normalize.css
101 13858d75 Kostas Papadimitriou
102 13858d75 Kostas Papadimitriou
// Font size in all browsers, margin changes, misc consistency
103 13858d75 Kostas Papadimitriou
button,
104 13858d75 Kostas Papadimitriou
input,
105 13858d75 Kostas Papadimitriou
select,
106 13858d75 Kostas Papadimitriou
textarea {
107 13858d75 Kostas Papadimitriou
  font-size: 100%;
108 13858d75 Kostas Papadimitriou
  margin: 0;
109 13858d75 Kostas Papadimitriou
  vertical-align: baseline;
110 13858d75 Kostas Papadimitriou
  *vertical-align: middle;
111 13858d75 Kostas Papadimitriou
}
112 13858d75 Kostas Papadimitriou
button,
113 13858d75 Kostas Papadimitriou
input {
114 13858d75 Kostas Papadimitriou
  line-height: normal; // FF3/4 have !important on line-height in UA stylesheet
115 13858d75 Kostas Papadimitriou
  *overflow: visible; // Inner spacing ie IE6/7
116 13858d75 Kostas Papadimitriou
}
117 13858d75 Kostas Papadimitriou
button::-moz-focus-inner,
118 13858d75 Kostas Papadimitriou
input::-moz-focus-inner { // Inner padding and border oddities in FF3/4
119 13858d75 Kostas Papadimitriou
  border: 0;
120 13858d75 Kostas Papadimitriou
  padding: 0;
121 13858d75 Kostas Papadimitriou
}
122 13858d75 Kostas Papadimitriou
button,
123 13858d75 Kostas Papadimitriou
input[type="button"],
124 13858d75 Kostas Papadimitriou
input[type="reset"],
125 13858d75 Kostas Papadimitriou
input[type="submit"] {
126 13858d75 Kostas Papadimitriou
  cursor: pointer; // Cursors on all buttons applied consistently
127 13858d75 Kostas Papadimitriou
  -webkit-appearance: button; // Style clicable inputs in iOS
128 13858d75 Kostas Papadimitriou
}
129 13858d75 Kostas Papadimitriou
input[type="search"] { // Appearance in Safari/Chrome
130 13858d75 Kostas Papadimitriou
  -webkit-appearance: textfield;
131 13858d75 Kostas Papadimitriou
  -webkit-box-sizing: content-box;
132 13858d75 Kostas Papadimitriou
     -moz-box-sizing: content-box;
133 13858d75 Kostas Papadimitriou
          box-sizing: content-box;
134 13858d75 Kostas Papadimitriou
}
135 13858d75 Kostas Papadimitriou
input[type="search"]::-webkit-search-decoration {
136 13858d75 Kostas Papadimitriou
  -webkit-appearance: none; // Inner-padding issues in Chrome OSX, Safari 5
137 13858d75 Kostas Papadimitriou
}
138 13858d75 Kostas Papadimitriou
textarea {
139 13858d75 Kostas Papadimitriou
  overflow: auto; // Remove vertical scrollbar in IE6-9
140 13858d75 Kostas Papadimitriou
  vertical-align: top; // Readability and alignment cross-browser
141 13858d75 Kostas Papadimitriou
}