bootstrap-source/bootstrap-3.0.3/less Kopie/normalize.less
author stetrabby <info@trabucchi.de>
Fri, 20 Dec 2013 22:49:16 +0100
changeset 54 0ded9d7748b7
permissions -rwxr-xr-x
initial less based on the pymove3d.css
info@54
     1
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
info@54
     2
info@54
     3
// ==========================================================================
info@54
     4
// HTML5 display definitions
info@54
     5
// ==========================================================================
info@54
     6
info@54
     7
//
info@54
     8
// Correct `block` display not defined in IE 8/9.
info@54
     9
//
info@54
    10
info@54
    11
article,
info@54
    12
aside,
info@54
    13
details,
info@54
    14
figcaption,
info@54
    15
figure,
info@54
    16
footer,
info@54
    17
header,
info@54
    18
hgroup,
info@54
    19
main,
info@54
    20
nav,
info@54
    21
section,
info@54
    22
summary {
info@54
    23
  display: block;
info@54
    24
}
info@54
    25
info@54
    26
//
info@54
    27
// Correct `inline-block` display not defined in IE 8/9.
info@54
    28
//
info@54
    29
info@54
    30
audio,
info@54
    31
canvas,
info@54
    32
video {
info@54
    33
  display: inline-block;
info@54
    34
}
info@54
    35
info@54
    36
//
info@54
    37
// Prevent modern browsers from displaying `audio` without controls.
info@54
    38
// Remove excess height in iOS 5 devices.
info@54
    39
//
info@54
    40
info@54
    41
audio:not([controls]) {
info@54
    42
  display: none;
info@54
    43
  height: 0;
info@54
    44
}
info@54
    45
info@54
    46
//
info@54
    47
// Address `[hidden]` styling not present in IE 8/9.
info@54
    48
// Hide the `template` element in IE, Safari, and Firefox < 22.
info@54
    49
//
info@54
    50
info@54
    51
[hidden],
info@54
    52
template {
info@54
    53
  display: none;
info@54
    54
}
info@54
    55
info@54
    56
// ==========================================================================
info@54
    57
// Base
info@54
    58
// ==========================================================================
info@54
    59
info@54
    60
//
info@54
    61
// 1. Set default font family to sans-serif.
info@54
    62
// 2. Prevent iOS text size adjust after orientation change, without disabling
info@54
    63
//    user zoom.
info@54
    64
//
info@54
    65
info@54
    66
html {
info@54
    67
  font-family: sans-serif; // 1
info@54
    68
  -ms-text-size-adjust: 100%; // 2
info@54
    69
  -webkit-text-size-adjust: 100%; // 2
info@54
    70
}
info@54
    71
info@54
    72
//
info@54
    73
// Remove default margin.
info@54
    74
//
info@54
    75
info@54
    76
body {
info@54
    77
  margin: 0;
info@54
    78
}
info@54
    79
info@54
    80
// ==========================================================================
info@54
    81
// Links
info@54
    82
// ==========================================================================
info@54
    83
info@54
    84
//
info@54
    85
// Remove the gray background color from active links in IE 10.
info@54
    86
//
info@54
    87
info@54
    88
a {
info@54
    89
  background: transparent;
info@54
    90
}
info@54
    91
info@54
    92
//
info@54
    93
// Address `outline` inconsistency between Chrome and other browsers.
info@54
    94
//
info@54
    95
info@54
    96
a:focus {
info@54
    97
  outline: thin dotted;
info@54
    98
}
info@54
    99
info@54
   100
//
info@54
   101
// Improve readability when focused and also mouse hovered in all browsers.
info@54
   102
//
info@54
   103
info@54
   104
a:active,
info@54
   105
a:hover {
info@54
   106
  outline: 0;
info@54
   107
}
info@54
   108
info@54
   109
// ==========================================================================
info@54
   110
// Typography
info@54
   111
// ==========================================================================
info@54
   112
info@54
   113
//
info@54
   114
// Address variable `h1` font-size and margin within `section` and `article`
info@54
   115
// contexts in Firefox 4+, Safari 5, and Chrome.
info@54
   116
//
info@54
   117
info@54
   118
h1 {
info@54
   119
  font-size: 2em;
info@54
   120
  margin: 0.67em 0;
info@54
   121
}
info@54
   122
info@54
   123
//
info@54
   124
// Address styling not present in IE 8/9, Safari 5, and Chrome.
info@54
   125
//
info@54
   126
info@54
   127
abbr[title] {
info@54
   128
  border-bottom: 1px dotted;
info@54
   129
}
info@54
   130
info@54
   131
//
info@54
   132
// Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
info@54
   133
//
info@54
   134
info@54
   135
b,
info@54
   136
strong {
info@54
   137
  font-weight: bold;
info@54
   138
}
info@54
   139
info@54
   140
//
info@54
   141
// Address styling not present in Safari 5 and Chrome.
info@54
   142
//
info@54
   143
info@54
   144
dfn {
info@54
   145
  font-style: italic;
info@54
   146
}
info@54
   147
info@54
   148
//
info@54
   149
// Address differences between Firefox and other browsers.
info@54
   150
//
info@54
   151
info@54
   152
hr {
info@54
   153
  -moz-box-sizing: content-box;
info@54
   154
  box-sizing: content-box;
info@54
   155
  height: 0;
info@54
   156
}
info@54
   157
info@54
   158
//
info@54
   159
// Address styling not present in IE 8/9.
info@54
   160
//
info@54
   161
info@54
   162
mark {
info@54
   163
  background: #ff0;
info@54
   164
  color: #000;
info@54
   165
}
info@54
   166
info@54
   167
//
info@54
   168
// Correct font family set oddly in Safari 5 and Chrome.
info@54
   169
//
info@54
   170
info@54
   171
code,
info@54
   172
kbd,
info@54
   173
pre,
info@54
   174
samp {
info@54
   175
  font-family: monospace, serif;
info@54
   176
  font-size: 1em;
info@54
   177
}
info@54
   178
info@54
   179
//
info@54
   180
// Improve readability of pre-formatted text in all browsers.
info@54
   181
//
info@54
   182
info@54
   183
pre {
info@54
   184
  white-space: pre-wrap;
info@54
   185
}
info@54
   186
info@54
   187
//
info@54
   188
// Set consistent quote types.
info@54
   189
//
info@54
   190
info@54
   191
q {
info@54
   192
  quotes: "\201C" "\201D" "\2018" "\2019";
info@54
   193
}
info@54
   194
info@54
   195
//
info@54
   196
// Address inconsistent and variable font size in all browsers.
info@54
   197
//
info@54
   198
info@54
   199
small {
info@54
   200
  font-size: 80%;
info@54
   201
}
info@54
   202
info@54
   203
//
info@54
   204
// Prevent `sub` and `sup` affecting `line-height` in all browsers.
info@54
   205
//
info@54
   206
info@54
   207
sub,
info@54
   208
sup {
info@54
   209
  font-size: 75%;
info@54
   210
  line-height: 0;
info@54
   211
  position: relative;
info@54
   212
  vertical-align: baseline;
info@54
   213
}
info@54
   214
info@54
   215
sup {
info@54
   216
  top: -0.5em;
info@54
   217
}
info@54
   218
info@54
   219
sub {
info@54
   220
  bottom: -0.25em;
info@54
   221
}
info@54
   222
info@54
   223
// ==========================================================================
info@54
   224
// Embedded content
info@54
   225
// ==========================================================================
info@54
   226
info@54
   227
//
info@54
   228
// Remove border when inside `a` element in IE 8/9.
info@54
   229
//
info@54
   230
info@54
   231
img {
info@54
   232
  border: 0;
info@54
   233
}
info@54
   234
info@54
   235
//
info@54
   236
// Correct overflow displayed oddly in IE 9.
info@54
   237
//
info@54
   238
info@54
   239
svg:not(:root) {
info@54
   240
  overflow: hidden;
info@54
   241
}
info@54
   242
info@54
   243
// ==========================================================================
info@54
   244
// Figures
info@54
   245
// ==========================================================================
info@54
   246
info@54
   247
//
info@54
   248
// Address margin not present in IE 8/9 and Safari 5.
info@54
   249
//
info@54
   250
info@54
   251
figure {
info@54
   252
  margin: 0;
info@54
   253
}
info@54
   254
info@54
   255
// ==========================================================================
info@54
   256
// Forms
info@54
   257
// ==========================================================================
info@54
   258
info@54
   259
//
info@54
   260
// Define consistent border, margin, and padding.
info@54
   261
//
info@54
   262
info@54
   263
fieldset {
info@54
   264
  border: 1px solid #c0c0c0;
info@54
   265
  margin: 0 2px;
info@54
   266
  padding: 0.35em 0.625em 0.75em;
info@54
   267
}
info@54
   268
info@54
   269
//
info@54
   270
// 1. Correct `color` not being inherited in IE 8/9.
info@54
   271
// 2. Remove padding so people aren't caught out if they zero out fieldsets.
info@54
   272
//
info@54
   273
info@54
   274
legend {
info@54
   275
  border: 0; // 1
info@54
   276
  padding: 0; // 2
info@54
   277
}
info@54
   278
info@54
   279
//
info@54
   280
// 1. Correct font family not being inherited in all browsers.
info@54
   281
// 2. Correct font size not being inherited in all browsers.
info@54
   282
// 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
info@54
   283
//
info@54
   284
info@54
   285
button,
info@54
   286
input,
info@54
   287
select,
info@54
   288
textarea {
info@54
   289
  font-family: inherit; // 1
info@54
   290
  font-size: 100%; // 2
info@54
   291
  margin: 0; // 3
info@54
   292
}
info@54
   293
info@54
   294
//
info@54
   295
// Address Firefox 4+ setting `line-height` on `input` using `!important` in
info@54
   296
// the UA stylesheet.
info@54
   297
//
info@54
   298
info@54
   299
button,
info@54
   300
input {
info@54
   301
  line-height: normal;
info@54
   302
}
info@54
   303
info@54
   304
//
info@54
   305
// Address inconsistent `text-transform` inheritance for `button` and `select`.
info@54
   306
// All other form control elements do not inherit `text-transform` values.
info@54
   307
// Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
info@54
   308
// Correct `select` style inheritance in Firefox 4+ and Opera.
info@54
   309
//
info@54
   310
info@54
   311
button,
info@54
   312
select {
info@54
   313
  text-transform: none;
info@54
   314
}
info@54
   315
info@54
   316
//
info@54
   317
// 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
info@54
   318
//    and `video` controls.
info@54
   319
// 2. Correct inability to style clickable `input` types in iOS.
info@54
   320
// 3. Improve usability and consistency of cursor style between image-type
info@54
   321
//    `input` and others.
info@54
   322
//
info@54
   323
info@54
   324
button,
info@54
   325
html input[type="button"], // 1
info@54
   326
input[type="reset"],
info@54
   327
input[type="submit"] {
info@54
   328
  -webkit-appearance: button; // 2
info@54
   329
  cursor: pointer; // 3
info@54
   330
}
info@54
   331
info@54
   332
//
info@54
   333
// Re-set default cursor for disabled elements.
info@54
   334
//
info@54
   335
info@54
   336
button[disabled],
info@54
   337
html input[disabled] {
info@54
   338
  cursor: default;
info@54
   339
}
info@54
   340
info@54
   341
//
info@54
   342
// 1. Address box sizing set to `content-box` in IE 8/9/10.
info@54
   343
// 2. Remove excess padding in IE 8/9/10.
info@54
   344
//
info@54
   345
info@54
   346
input[type="checkbox"],
info@54
   347
input[type="radio"] {
info@54
   348
  box-sizing: border-box; // 1
info@54
   349
  padding: 0; // 2
info@54
   350
}
info@54
   351
info@54
   352
//
info@54
   353
// 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
info@54
   354
// 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
info@54
   355
//    (include `-moz` to future-proof).
info@54
   356
//
info@54
   357
info@54
   358
input[type="search"] {
info@54
   359
  -webkit-appearance: textfield; // 1
info@54
   360
  -moz-box-sizing: content-box;
info@54
   361
  -webkit-box-sizing: content-box; // 2
info@54
   362
  box-sizing: content-box;
info@54
   363
}
info@54
   364
info@54
   365
//
info@54
   366
// Remove inner padding and search cancel button in Safari 5 and Chrome
info@54
   367
// on OS X.
info@54
   368
//
info@54
   369
info@54
   370
input[type="search"]::-webkit-search-cancel-button,
info@54
   371
input[type="search"]::-webkit-search-decoration {
info@54
   372
  -webkit-appearance: none;
info@54
   373
}
info@54
   374
info@54
   375
//
info@54
   376
// Remove inner padding and border in Firefox 4+.
info@54
   377
//
info@54
   378
info@54
   379
button::-moz-focus-inner,
info@54
   380
input::-moz-focus-inner {
info@54
   381
  border: 0;
info@54
   382
  padding: 0;
info@54
   383
}
info@54
   384
info@54
   385
//
info@54
   386
// 1. Remove default vertical scrollbar in IE 8/9.
info@54
   387
// 2. Improve readability and alignment in all browsers.
info@54
   388
//
info@54
   389
info@54
   390
textarea {
info@54
   391
  overflow: auto; // 1
info@54
   392
  vertical-align: top; // 2
info@54
   393
}
info@54
   394
info@54
   395
// ==========================================================================
info@54
   396
// Tables
info@54
   397
// ==========================================================================
info@54
   398
info@54
   399
//
info@54
   400
// Remove most spacing between table cells.
info@54
   401
//
info@54
   402
info@54
   403
table {
info@54
   404
  border-collapse: collapse;
info@54
   405
  border-spacing: 0;
info@54
   406
}
Impressum Datenschutzerklärung