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

5

6
// Body reset
7
// -------------------------
Jacob Thornton's avatar
Jacob Thornton committed
8

9
10
11
12
13
14
15
16
17
18
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 {
19
20
    -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
21
22
23
  }
}

Jacob Thornton's avatar
Jacob Thornton committed
24
body {
25
  margin: 0;
Mark Otto's avatar
Mark Otto committed
26
  color: @text-color;
Mark Otto's avatar
Mark Otto committed
27
  font-family: @font-family-base;
28
29
30
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 1.5;
Mark Otto's avatar
Mark Otto committed
31
  background-color: @body-background;
32
33
34
35
36
37
38
39
}

// Reset fonts for revelant elements
body,
input,
button,
select,
textarea {
40
41
42
  font-family: @font-family-base;
  font-size: @font-size-base;
  line-height: @line-height-base;
Jacob Thornton's avatar
Jacob Thornton committed
43
44
}

45

46
// Links
47
// -------------------------
Jacob Thornton's avatar
Jacob Thornton committed
48
49

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


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

Mark Otto's avatar
Mark Otto committed
66
67
68
69
70
71
72
73
74
75
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
76
// Rounded corners
77
.img-rounded {
78
  border-radius: 6px;
79
80
}

81
// Image thumbnails
82
// See thumbnails.less for `.img-thumbnail`
83

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