annotate data/css/normalize.css @ 3:8e1efafa6277

Updated version * Bugfix: blue lines in some plots (bar colors were not set correctly) * Cookiecutter template * Additional unit tests * Add plot legend
author Vimalkumar Velayudhan <vimal@biotechcoder.com>
date Wed, 12 Aug 2015 09:27:45 +0100
parents ca58e9466cbf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
1 /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
2
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
3 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
4 * 1. Set default font family to sans-serif.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
5 * 2. Prevent iOS text size adjust after orientation change, without disabling
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
6 * user zoom.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
7 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
8
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
9 html {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
10 font-family: sans-serif; /* 1 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
11 -ms-text-size-adjust: 100%; /* 2 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
12 -webkit-text-size-adjust: 100%; /* 2 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
13 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
14
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
15 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
16 * Remove default margin.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
17 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
18
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
19 body {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
20 margin: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
21 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
22
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
23 /* HTML5 display definitions
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
24 ========================================================================== */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
25
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
26 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
27 * Correct `block` display not defined for any HTML5 element in IE 8/9.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
28 * Correct `block` display not defined for `details` or `summary` in IE 10/11
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
29 * and Firefox.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
30 * Correct `block` display not defined for `main` in IE 11.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
31 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
32
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
33 article,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
34 aside,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
35 details,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
36 figcaption,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
37 figure,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
38 footer,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
39 header,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
40 hgroup,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
41 main,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
42 menu,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
43 nav,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
44 section,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
45 summary {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
46 display: block;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
47 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
48
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
49 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
50 * 1. Correct `inline-block` display not defined in IE 8/9.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
51 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
52 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
53
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
54 audio,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
55 canvas,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
56 progress,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
57 video {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
58 display: inline-block; /* 1 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
59 vertical-align: baseline; /* 2 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
60 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
61
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
62 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
63 * Prevent modern browsers from displaying `audio` without controls.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
64 * Remove excess height in iOS 5 devices.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
65 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
66
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
67 audio:not([controls]) {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
68 display: none;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
69 height: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
70 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
71
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
72 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
73 * Address `[hidden]` styling not present in IE 8/9/10.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
74 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
75 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
76
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
77 [hidden],
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
78 template {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
79 display: none;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
80 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
81
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
82 /* Links
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
83 ========================================================================== */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
84
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
85 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
86 * Remove the gray background color from active links in IE 10.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
87 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
88
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
89 a {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
90 background-color: transparent;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
91 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
92
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
93 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
94 * Improve readability when focused and also mouse hovered in all browsers.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
95 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
96
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
97 a:active,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
98 a:hover {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
99 outline: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
100 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
101
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
102 /* Text-level semantics
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
103 ========================================================================== */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
104
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
105 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
106 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
107 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
108
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
109 abbr[title] {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
110 border-bottom: 1px dotted;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
111 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
112
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
113 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
114 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
115 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
116
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
117 b,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
118 strong {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
119 font-weight: bold;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
120 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
121
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
122 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
123 * Address styling not present in Safari and Chrome.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
124 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
125
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
126 dfn {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
127 font-style: italic;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
128 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
129
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
130 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
131 * Address variable `h1` font-size and margin within `section` and `article`
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
132 * contexts in Firefox 4+, Safari, and Chrome.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
133 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
134
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
135 h1 {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
136 font-size: 2em;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
137 margin: 0.67em 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
138 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
139
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
140 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
141 * Address styling not present in IE 8/9.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
142 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
143
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
144 mark {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
145 background: #ff0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
146 color: #000;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
147 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
148
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
149 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
150 * Address inconsistent and variable font size in all browsers.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
151 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
152
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
153 small {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
154 font-size: 80%;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
155 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
156
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
157 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
158 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
159 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
160
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
161 sub,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
162 sup {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
163 font-size: 75%;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
164 line-height: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
165 position: relative;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
166 vertical-align: baseline;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
167 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
168
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
169 sup {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
170 top: -0.5em;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
171 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
172
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
173 sub {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
174 bottom: -0.25em;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
175 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
176
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
177 /* Embedded content
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
178 ========================================================================== */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
179
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
180 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
181 * Remove border when inside `a` element in IE 8/9/10.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
182 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
183
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
184 img {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
185 border: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
186 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
187
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
188 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
189 * Correct overflow not hidden in IE 9/10/11.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
190 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
191
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
192 svg:not(:root) {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
193 overflow: hidden;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
194 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
195
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
196 /* Grouping content
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
197 ========================================================================== */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
198
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
199 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
200 * Address margin not present in IE 8/9 and Safari.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
201 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
202
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
203 figure {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
204 margin: 1em 40px;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
205 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
206
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
207 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
208 * Address differences between Firefox and other browsers.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
209 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
210
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
211 hr {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
212 -moz-box-sizing: content-box;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
213 box-sizing: content-box;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
214 height: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
215 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
216
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
217 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
218 * Contain overflow in all browsers.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
219 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
220
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
221 pre {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
222 overflow: auto;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
223 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
224
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
225 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
226 * Address odd `em`-unit font size rendering in all browsers.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
227 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
228
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
229 code,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
230 kbd,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
231 pre,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
232 samp {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
233 font-family: monospace, monospace;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
234 font-size: 1em;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
235 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
236
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
237 /* Forms
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
238 ========================================================================== */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
239
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
240 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
241 * Known limitation: by default, Chrome and Safari on OS X allow very limited
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
242 * styling of `select`, unless a `border` property is set.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
243 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
244
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
245 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
246 * 1. Correct color not being inherited.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
247 * Known issue: affects color of disabled elements.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
248 * 2. Correct font properties not being inherited.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
249 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
250 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
251
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
252 button,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
253 input,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
254 optgroup,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
255 select,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
256 textarea {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
257 color: inherit; /* 1 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
258 font: inherit; /* 2 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
259 margin: 0; /* 3 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
260 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
261
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
262 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
263 * Address `overflow` set to `hidden` in IE 8/9/10/11.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
264 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
265
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
266 button {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
267 overflow: visible;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
268 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
269
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
270 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
271 * Address inconsistent `text-transform` inheritance for `button` and `select`.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
272 * All other form control elements do not inherit `text-transform` values.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
273 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
274 * Correct `select` style inheritance in Firefox.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
275 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
276
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
277 button,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
278 select {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
279 text-transform: none;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
280 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
281
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
282 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
283 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
284 * and `video` controls.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
285 * 2. Correct inability to style clickable `input` types in iOS.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
286 * 3. Improve usability and consistency of cursor style between image-type
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
287 * `input` and others.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
288 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
289
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
290 button,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
291 html input[type="button"], /* 1 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
292 input[type="reset"],
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
293 input[type="submit"] {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
294 -webkit-appearance: button; /* 2 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
295 cursor: pointer; /* 3 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
296 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
297
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
298 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
299 * Re-set default cursor for disabled elements.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
300 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
301
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
302 button[disabled],
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
303 html input[disabled] {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
304 cursor: default;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
305 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
306
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
307 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
308 * Remove inner padding and border in Firefox 4+.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
309 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
310
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
311 button::-moz-focus-inner,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
312 input::-moz-focus-inner {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
313 border: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
314 padding: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
315 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
316
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
317 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
318 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
319 * the UA stylesheet.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
320 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
321
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
322 input {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
323 line-height: normal;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
324 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
325
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
326 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
327 * It's recommended that you don't attempt to style these elements.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
328 * Firefox's implementation doesn't respect box-sizing, padding, or width.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
329 *
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
330 * 1. Address box sizing set to `content-box` in IE 8/9/10.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
331 * 2. Remove excess padding in IE 8/9/10.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
332 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
333
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
334 input[type="checkbox"],
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
335 input[type="radio"] {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
336 box-sizing: border-box; /* 1 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
337 padding: 0; /* 2 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
338 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
339
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
340 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
341 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
342 * `font-size` values of the `input`, it causes the cursor style of the
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
343 * decrement button to change from `default` to `text`.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
344 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
345
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
346 input[type="number"]::-webkit-inner-spin-button,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
347 input[type="number"]::-webkit-outer-spin-button {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
348 height: auto;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
349 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
350
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
351 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
352 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
353 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
354 * (include `-moz` to future-proof).
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
355 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
356
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
357 input[type="search"] {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
358 -webkit-appearance: textfield; /* 1 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
359 -moz-box-sizing: content-box;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
360 -webkit-box-sizing: content-box; /* 2 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
361 box-sizing: content-box;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
362 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
363
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
364 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
365 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
366 * Safari (but not Chrome) clips the cancel button when the search input has
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
367 * padding (and `textfield` appearance).
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
368 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
369
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
370 input[type="search"]::-webkit-search-cancel-button,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
371 input[type="search"]::-webkit-search-decoration {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
372 -webkit-appearance: none;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
373 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
374
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
375 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
376 * Define consistent border, margin, and padding.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
377 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
378
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
379 fieldset {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
380 border: 1px solid #c0c0c0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
381 margin: 0 2px;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
382 padding: 0.35em 0.625em 0.75em;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
383 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
384
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
385 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
386 * 1. Correct `color` not being inherited in IE 8/9/10/11.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
387 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
388 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
389
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
390 legend {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
391 border: 0; /* 1 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
392 padding: 0; /* 2 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
393 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
394
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
395 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
396 * Remove default vertical scrollbar in IE 8/9/10/11.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
397 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
398
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
399 textarea {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
400 overflow: auto;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
401 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
402
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
403 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
404 * Don't inherit the `font-weight` (applied by a rule above).
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
405 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
406 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
407
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
408 optgroup {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
409 font-weight: bold;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
410 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
411
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
412 /* Tables
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
413 ========================================================================== */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
414
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
415 /**
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
416 * Remove most spacing between table cells.
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
417 */
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
418
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
419 table {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
420 border-collapse: collapse;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
421 border-spacing: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
422 }
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
423
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
424 td,
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
425 th {
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
426 padding: 0;
ca58e9466cbf First commit
Vimalkumar Velayudhan <vimal@biotechcoder.com>
parents:
diff changeset
427 }