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

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

13
14
15
h1, .h1,
h2, .h2,
h3, .h3 {
Mark Otto's avatar
Mark Otto committed
16
  margin-bottom: $headings-margin-bottom;
17
}
18
19
20
h4, .h4,
h5, .h5,
h6, .h6 {
Mark Otto's avatar
Mark Otto committed
21
  margin-bottom: $headings-margin-bottom;
22
23
}

Mark Otto's avatar
Mark Otto committed
24
25
26
27
28
29
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; }
30

31
.lead {
Mark Otto's avatar
Mark Otto committed
32
33
  font-size: $lead-font-size;
  font-weight: $lead-font-weight;
34
}
Jacob Thornton's avatar
Jacob Thornton committed
35

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// 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
54

55
//
56
// Horizontal rules
57
//
58
59

hr {
Mark Otto's avatar
Mark Otto committed
60
61
  margin-top: $spacer-y;
  margin-bottom: $spacer-y;
62
  border: 0;
Mark Otto's avatar
Mark Otto committed
63
  border-top: $hr-border-width solid $hr-border-color;
64
65
66
}


67
68
69
//
// Emphasis
//
70

Mark Otto's avatar
Mark Otto committed
71
small,
Nick Schonning's avatar
Nick Schonning committed
72
.small {
73
74
  font-size: 80%;
  font-weight: normal;
Nick Schonning's avatar
Nick Schonning committed
75
}
76

mrmrs's avatar
mrmrs committed
77
78
79
mark,
.mark {
  padding: .2em;
80
  background-color: $state-warning-bg;
mrmrs's avatar
mrmrs committed
81
82
}

83

84
//
Mark Otto's avatar
Mark Otto committed
85
// Lists
86
//
87

88
// Unstyled keeps list items block level, just removes default browser padding and list-style
89
.list-unstyled {
90
  padding-left: 0;
91
  list-style: none;
Jacob Thornton's avatar
Jacob Thornton committed
92
}
93

94
95
// Inline turns list items into inline-block
.list-inline {
Mark Otto's avatar
Mark Otto committed
96
  padding-left: 0;
97
  margin-left: -5px;
Mark Otto's avatar
Mark Otto committed
98
  list-style: none;
99

100
101
102
  > li {
    display: inline-block;
    padding-right: 5px;
103
    padding-left: 5px;
104
  }
105
}
Jacob Thornton's avatar
Jacob Thornton committed
106

107
// Horizontal description lists w/ grid classes
108
.dl-horizontal {
109
110
111
  margin-right: -$grid-gutter-width;
  margin-left: -$grid-gutter-width;
  @include clearfix;
112
}
Jacob Thornton's avatar
Jacob Thornton committed
113

114

115
//
116
// Misc
117
//
118

119
// Builds on `abbr`
120
.initialism {
121
  font-size: 90%;
Mark Otto's avatar
Mark Otto committed
122
  text-transform: uppercase;
123
}
124

125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// Blockquotes
.blockquote {
  padding: ($spacer / 2) $spacer;
  margin-bottom: $spacer;
  font-size: $blockquote-font-size;
  border-left: .25rem solid $blockquote-border-color;

  p,
  ul,
  ol {
    &:last-child {
      margin-bottom: 0;
    }
  }

  footer {
    display: block;
    font-size: 80%; // back to default font-size
143
    line-height: $line-height;
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
    color: $blockquote-small-color;

    &:before {
      content: "\2014 \00A0"; // em dash, nbsp
    }
  }
}

// Opposite alignment of blockquote
.blockquote-reverse {
  padding-right: $spacer;
  padding-left: 0;
  text-align: right;
  border-right: .25rem solid $blockquote-border-color;
  border-left: 0;

  // Account for citation
  footer {
    &:before { content: ""; }
    &:after {
      content: "\00A0 \2014"; // nbsp, em dash
    }
  }
}
Mark Otto's avatar
Mark Otto committed
168
169
170
171
172
173

//
// Figures
//

.figure {
Mark Otto's avatar
Mark Otto committed
174
175
176
  // Ensures the caption's text aligns with the image.
  display: inline-block;

Mark Otto's avatar
Mark Otto committed
177
178
179
  > img {
    @extend .img-responsive;
    margin-bottom: ($spacer-y / 2);
180
    line-height: 1;
Mark Otto's avatar
Mark Otto committed
181
182
183
184
185
186
187
  }
}

.figure-caption {
  font-size: 90%;
  color: $gray-light;
}