_type.scss 2.06 KB
Newer Older
XhmikosR's avatar
XhmikosR committed
1
2
// stylelint-disable declaration-no-important, selector-list-comma-newline-after

3
//
4
// Headings
5
//
6
7
8

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

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

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

28
29
30
31
// Type display classes
.display-1 {
  font-size: $display1-size;
  font-weight: $display1-weight;
32
  line-height: $display-line-height;
33
34
35
36
}
.display-2 {
  font-size: $display2-size;
  font-weight: $display2-weight;
37
  line-height: $display-line-height;
38
39
40
41
}
.display-3 {
  font-size: $display3-size;
  font-weight: $display3-weight;
42
  line-height: $display-line-height;
43
44
45
46
}
.display-4 {
  font-size: $display4-size;
  font-weight: $display4-weight;
47
  line-height: $display-line-height;
48
49
}

Mark Otto's avatar
Mark Otto committed
50

51
//
52
// Horizontal rules
53
//
54
55

hr {
56
57
  margin-top: $hr-margin-y;
  margin-bottom: $hr-margin-y;
58
  border: 0;
Mark Otto's avatar
Mark Otto committed
59
  border-top: $hr-border-width solid $hr-border-color;
60
61
62
}


63
64
65
//
// Emphasis
//
66

Mark Otto's avatar
Mark Otto committed
67
small,
Nick Schonning's avatar
Nick Schonning committed
68
.small {
69
  font-size: $small-font-size;
70
  font-weight: $font-weight-normal;
Nick Schonning's avatar
Nick Schonning committed
71
}
72

mrmrs's avatar
mrmrs committed
73
74
mark,
.mark {
Chris Rebert's avatar
Chris Rebert committed
75
  padding: $mark-padding;
76
  background-color: $mark-bg;
mrmrs's avatar
mrmrs committed
77
78
}

79

80
//
Mark Otto's avatar
Mark Otto committed
81
// Lists
82
//
83
84

.list-unstyled {
85
  @include list-unstyled;
Jacob Thornton's avatar
Jacob Thornton committed
86
}
87

88
89
// Inline turns list items into inline-block
.list-inline {
90
  @include list-unstyled;
91
92
93
}
.list-inline-item {
  display: inline-block;
94
95
96
97

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

100

101
//
102
// Misc
103
//
104

105
// Builds on `abbr`
106
.initialism {
107
  font-size: 90%;
Mark Otto's avatar
Mark Otto committed
108
  text-transform: uppercase;
109
}
110

111
112
113
114
// Blockquotes
.blockquote {
  margin-bottom: $spacer;
  font-size: $blockquote-font-size;
115
}
116

117
118
.blockquote-footer {
  display: block;
119
  font-size: $blockquote-small-font-size;
120
  color: $blockquote-small-color;
121

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