scaffolding.less 1.8 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
10
11
12
13
14
15
// Reset the box-sizing
// -------------------------

* {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}


16
// Body reset
17
// -------------------------
Jacob Thornton's avatar
Jacob Thornton committed
18

19
20
21
22
23
24
25
26
27
28
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 {
29
30
    -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
31
32
33
  }
}

Jacob Thornton's avatar
Jacob Thornton committed
34
body {
35
  margin: 0;
Mark Otto's avatar
Mark Otto committed
36
  color: @text-color;
Mark Otto's avatar
Mark Otto committed
37
  font-family: @font-family-base;
38
39
40
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 1.5;
Mark Otto's avatar
Mark Otto committed
41
  background-color: @body-background;
42
43
44
45
46
47
48
49
}

// Reset fonts for revelant elements
body,
input,
button,
select,
textarea {
50
51
52
  font-family: @font-family-base;
  font-size: @font-size-base;
  line-height: @line-height-base;
Jacob Thornton's avatar
Jacob Thornton committed
53
54
}

55

56
// Links
57
// -------------------------
Jacob Thornton's avatar
Jacob Thornton committed
58
59

a {
Mark Otto's avatar
Mark Otto committed
60
  color: @link-color;
Jacob Thornton's avatar
Jacob Thornton committed
61
  text-decoration: none;
62
}
63
64
a:hover,
a:focus {
Mark Otto's avatar
Mark Otto committed
65
  color: @link-color-hover;
66
  text-decoration: underline;
Jacob Thornton's avatar
Jacob Thornton committed
67
}
Mark Otto's avatar
Mark Otto committed
68
69
70
a:focus {
  .tab-focus();
}
71
72
73
74
75


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

Mark Otto's avatar
Mark Otto committed
76
77
78
79
80
81
82
83
84
85
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
86
// Rounded corners
87
.img-rounded {
88
  border-radius: 6px;
89
90
}

91
// Image thumbnails
92
// See thumbnails.less for `.img-thumbnail`
93

Mark Otto's avatar
Mark Otto committed
94
// Perfect circle
95
.img-circle {
96
  border-radius: 500px; // crank the border-radius so it works with most reasonably sized images
97
}