_type.scss 2.44 KB
Newer Older
1
//
2
// Headings
3
//
4
5
6

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
7
  margin-bottom: $headings-margin-bottom;
Mark Otto's avatar
Mark Otto committed
8
9
10
11
  font-family: $headings-font-family;
  font-weight: $headings-font-weight;
  line-height: $headings-line-height;
  color: $headings-color;
12
13
}

14
15
16
17
18
19
h1, .h1 { font-size: $font-size-h1; }
h2, .h2 { font-size: $font-size-h2; }
h3, .h3 { font-size: $font-size-h3; }
h4, .h4 { font-size: $font-size-h4; }
h5, .h5 { font-size: $font-size-h5; }
h6, .h6 { font-size: $font-size-h6; }
20

21
.lead {
Mark Otto's avatar
Mark Otto committed
22
23
  font-size: $lead-font-size;
  font-weight: $lead-font-weight;
24
}
Jacob Thornton's avatar
Jacob Thornton committed
25

26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Type display classes
.display-1 {
  font-size: $display1-size;
  font-weight: $display1-weight;
}
.display-2 {
  font-size: $display2-size;
  font-weight: $display2-weight;
}
.display-3 {
  font-size: $display3-size;
  font-weight: $display3-weight;
}
.display-4 {
  font-size: $display4-size;
  font-weight: $display4-weight;
}

Mark Otto's avatar
Mark Otto committed
44

45
//
46
// Horizontal rules
47
//
48
49

hr {
Mark Otto's avatar
Mark Otto committed
50
51
  margin-top: $spacer-y;
  margin-bottom: $spacer-y;
52
  border: 0;
Mark Otto's avatar
Mark Otto committed
53
  border-top: $hr-border-width solid $hr-border-color;
54
55
56
}


57
58
59
//
// Emphasis
//
60

Mark Otto's avatar
Mark Otto committed
61
small,
Nick Schonning's avatar
Nick Schonning committed
62
.small {
63
64
  font-size: 80%;
  font-weight: normal;
Nick Schonning's avatar
Nick Schonning committed
65
}
66

mrmrs's avatar
mrmrs committed
67
68
69
mark,
.mark {
  padding: .2em;
70
  background-color: $state-warning-bg;
mrmrs's avatar
mrmrs committed
71
72
}

73

74
//
Mark Otto's avatar
Mark Otto committed
75
// Lists
76
//
77
78

.list-unstyled {
79
  @include list-unstyled;
Jacob Thornton's avatar
Jacob Thornton committed
80
}
81

82
83
// Inline turns list items into inline-block
.list-inline {
84
  @include list-unstyled;
85
86
87
}
.list-inline-item {
  display: inline-block;
88
89
90
91

  &:not(:last-child) {
    margin-right: $list-inline-padding;
  }
92
}
Jacob Thornton's avatar
Jacob Thornton committed
93

94

95
//
96
// Misc
97
//
98

99
// Builds on `abbr`
100
.initialism {
101
  font-size: 90%;
Mark Otto's avatar
Mark Otto committed
102
  text-transform: uppercase;
103
}
104

105
106
107
108
109
// Blockquotes
.blockquote {
  padding: ($spacer / 2) $spacer;
  margin-bottom: $spacer;
  font-size: $blockquote-font-size;
110
  border-left: $blockquote-border-width solid $blockquote-border-color;
111
}
112

113
114
115
116
.blockquote-footer {
  display: block;
  font-size: 80%; // back to default font-size
  color: $blockquote-small-color;
117

118
119
  &::before {
    content: "\2014 \00A0"; // em dash, nbsp
120
121
122
123
124
125
126
127
  }
}

// Opposite alignment of blockquote
.blockquote-reverse {
  padding-right: $spacer;
  padding-left: 0;
  text-align: right;
128
  border-right: $blockquote-border-width solid $blockquote-border-color;
129
  border-left: 0;
130
}
131

132
133
134
135
136
137
.blockquote-reverse .blockquote-footer {
  &::before {
    content: "";
  }
  &::after {
    content: "\00A0 \2014"; // nbsp, em dash
138
139
  }
}
140
141
142
143
144
145
146
147
148

// Clean up some horizontal `<dl>`s built with grids
// scss-lint:disable QualifyingElement
dl.row {
  > dd + dt {
    clear: left;
  }
}
// scss-lint:enable QualifyingElement