bootstrap-source/bootstrap-3.0.3/less Kopie/scaffolding.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
//
info@54
     2
// Scaffolding
info@54
     3
// --------------------------------------------------
info@54
     4
info@54
     5
info@54
     6
// Reset the box-sizing
info@54
     7
info@54
     8
*,
info@54
     9
*:before,
info@54
    10
*:after {
info@54
    11
  .box-sizing(border-box);
info@54
    12
}
info@54
    13
info@54
    14
info@54
    15
// Body reset
info@54
    16
info@54
    17
html {
info@54
    18
  font-size: 62.5%;
info@54
    19
  -webkit-tap-highlight-color: rgba(0,0,0,0);
info@54
    20
}
info@54
    21
info@54
    22
body {
info@54
    23
  font-family: @font-family-base;
info@54
    24
  font-size: @font-size-base;
info@54
    25
  line-height: @line-height-base;
info@54
    26
  color: @text-color;
info@54
    27
  background-color: @body-bg;
info@54
    28
}
info@54
    29
info@54
    30
// Reset fonts for relevant elements
info@54
    31
input,
info@54
    32
button,
info@54
    33
select,
info@54
    34
textarea {
info@54
    35
  font-family: inherit;
info@54
    36
  font-size: inherit;
info@54
    37
  line-height: inherit;
info@54
    38
}
info@54
    39
info@54
    40
info@54
    41
// Links
info@54
    42
info@54
    43
a {
info@54
    44
  color: @link-color;
info@54
    45
  text-decoration: none;
info@54
    46
info@54
    47
  &:hover,
info@54
    48
  &:focus {
info@54
    49
    color: @link-hover-color;
info@54
    50
    text-decoration: underline;
info@54
    51
  }
info@54
    52
info@54
    53
  &:focus {
info@54
    54
    .tab-focus();
info@54
    55
  }
info@54
    56
}
info@54
    57
info@54
    58
info@54
    59
// Images
info@54
    60
info@54
    61
img {
info@54
    62
  vertical-align: middle;
info@54
    63
}
info@54
    64
info@54
    65
// Responsive images (ensure images don't scale beyond their parents)
info@54
    66
.img-responsive {
info@54
    67
  .img-responsive();
info@54
    68
}
info@54
    69
info@54
    70
// Rounded corners
info@54
    71
.img-rounded {
info@54
    72
  border-radius: @border-radius-large;
info@54
    73
}
info@54
    74
info@54
    75
// Image thumbnails
info@54
    76
//
info@54
    77
// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
info@54
    78
.img-thumbnail {
info@54
    79
  padding: @thumbnail-padding;
info@54
    80
  line-height: @line-height-base;
info@54
    81
  background-color: @thumbnail-bg;
info@54
    82
  border: 1px solid @thumbnail-border;
info@54
    83
  border-radius: @thumbnail-border-radius;
info@54
    84
  .transition(all .2s ease-in-out);
info@54
    85
info@54
    86
  // Keep them at most 100% wide
info@54
    87
  .img-responsive(inline-block);
info@54
    88
}
info@54
    89
info@54
    90
// Perfect circle
info@54
    91
.img-circle {
info@54
    92
  border-radius: 50%; // set radius in percents
info@54
    93
}
info@54
    94
info@54
    95
info@54
    96
// Horizontal rules
info@54
    97
info@54
    98
hr {
info@54
    99
  margin-top:    @line-height-computed;
info@54
   100
  margin-bottom: @line-height-computed;
info@54
   101
  border: 0;
info@54
   102
  border-top: 1px solid @hr-border;
info@54
   103
}
info@54
   104
info@54
   105
info@54
   106
// Only display content to screen readers
info@54
   107
//
info@54
   108
// See: http://a11yproject.com/posts/how-to-hide-content/
info@54
   109
info@54
   110
.sr-only {
info@54
   111
  position: absolute;
info@54
   112
  width: 1px;
info@54
   113
  height: 1px;
info@54
   114
  margin: -1px;
info@54
   115
  padding: 0;
info@54
   116
  overflow: hidden;
info@54
   117
  clip: rect(0,0,0,0);
info@54
   118
  border: 0;
info@54
   119
}
Impressum Datenschutzerklärung