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