scaffolding.less 1.61 KB
Newer Older
1
//
2
// Scaffolding
3
// --------------------------------------------------
Jacob Thornton's avatar
Jacob Thornton committed
4

5

Mark Otto's avatar
Mark Otto committed
6
7
8
9
// Reset the box-sizing
// -------------------------

* {
Mark Otto's avatar
Mark Otto committed
10
  .box-sizing(border-box);
Mark Otto's avatar
Mark Otto committed
11
12
13
}


14
// Body reset
15
// -------------------------
Jacob Thornton's avatar
Jacob Thornton committed
16

17
18
19
20
21
22
23
24
25
26
html {
  font-size: 62.5%;
  // Touch the Mobile Magic™
  -webkit-overflow-scrolling: touch;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

// Disable iOS/WinMobile font size changes
@media screen and (max-device-width: 480px) {
  html {
27
28
    -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
29
30
31
  }
}

Jacob Thornton's avatar
Jacob Thornton committed
32
body {
Mark Otto's avatar
Mark Otto committed
33
34
  color: @text-color;
  background-color: @body-background;
35
36
37
38
39
40
41
42
}

// Reset fonts for revelant elements
body,
input,
button,
select,
textarea {
43
  font-family: @font-family-base;
Mark Otto's avatar
Mark Otto committed
44
  .font-size();
45
  line-height: @line-height-base;
Jacob Thornton's avatar
Jacob Thornton committed
46
47
}

48

49
// Links
50
// -------------------------
Jacob Thornton's avatar
Jacob Thornton committed
51
52

a {
Mark Otto's avatar
Mark Otto committed
53
  color: @link-color;
Jacob Thornton's avatar
Jacob Thornton committed
54
  text-decoration: none;
55
}
56
57
a:hover,
a:focus {
Mark Otto's avatar
Mark Otto committed
58
  color: @link-color-hover;
59
  text-decoration: underline;
Jacob Thornton's avatar
Jacob Thornton committed
60
}
Mark Otto's avatar
Mark Otto committed
61
62
63
a:focus {
  .tab-focus();
}
64
65
66
67
68


// Images
// -------------------------

Mark Otto's avatar
Mark Otto committed
69
70
71
72
73
74
75
76
77
78
img {
  // Responsive images (ensure images don't scale beyond their parents)
  max-width: 100%; // Part 1: Set a maxium relative to the parent
  width: auto\9; // IE8 need help adjusting responsive images
  height: auto; // Part 2: Scale the height according to the width, otherwise you get stretching

  // Match vertical alignment with other comment elements
  vertical-align: middle;
}

Mark Otto's avatar
Mark Otto committed
79
// Rounded corners
80
.img-rounded {
81
  border-radius: 6px;
82
83
}

84
// Image thumbnails
85
// See thumbnails.less for `.img-thumbnail`
86

Mark Otto's avatar
Mark Otto committed
87
// Perfect circle
88
.img-circle {
89
  border-radius: 500px; // crank the border-radius so it works with most reasonably sized images
90
}