|
31 | 31 | h4,
|
32 | 32 | h5,
|
33 | 33 | h6 {
|
34 |
| - padding: $spacing-unit 0 0; |
| 34 | + padding: 0; |
| 35 | + margin: $spacing-unit 0 0; |
| 36 | + } |
| 37 | + |
| 38 | + h1 { |
| 39 | + font-size: 1.7rem; |
| 40 | + } |
| 41 | + |
| 42 | + h1 + p, |
| 43 | + h2 + p, |
| 44 | + h3 + p, |
| 45 | + h4 + p, |
| 46 | + h5 + p, |
| 47 | + h6 + p { |
| 48 | + margin-top: $spacing-unit; |
| 49 | + } |
| 50 | + |
| 51 | + // Remove top margin on elements at the top of the description |
| 52 | + > div:first-child > *:first-child, |
| 53 | + > *:first-child, |
| 54 | + > div:first-child > *:first-child, |
| 55 | + > *:first-child, |
| 56 | + > div:first-child > *:first-child, |
| 57 | + > *:first-child, |
| 58 | + > div:first-child > *:first-child, |
| 59 | + > *:first-child, |
| 60 | + > div:first-child > *:first-child, |
| 61 | + > *:first-child, |
| 62 | + > div:first-child > *:first-child, |
| 63 | + > *:first-child { |
| 64 | + margin-top: 0; |
| 65 | + } |
| 66 | + |
| 67 | + p { |
| 68 | + padding: 0; |
| 69 | + margin-top: $spacing-unit / 2; |
| 70 | + } |
| 71 | + |
| 72 | + li p:first-child { |
| 73 | + margin-top: 0; |
35 | 74 | }
|
36 | 75 |
|
37 | 76 | strong,
|
|
47 | 86 | pre {
|
48 | 87 | display: block;
|
49 | 88 | padding: $spacing-unit / 2;
|
50 |
| - margin-bottom: $spacing-unit / 2; |
| 89 | + margin: $spacing-unit 0 0; |
| 90 | + } |
| 91 | + |
| 92 | + pre code { |
| 93 | + font-size: inherit; |
| 94 | + padding: 0; |
| 95 | + background-color: transparent; |
| 96 | + border: 0; |
| 97 | + color: inherit; |
51 | 98 | }
|
52 | 99 |
|
53 | 100 | ol,
|
54 | 101 | ul {
|
55 |
| - margin: ($spacing-unit / 2) 0 ($spacing-unit / 2) $spacing-unit; |
| 102 | + margin: ($spacing-unit / 2) 0 0 $spacing-unit; |
| 103 | + padding-bottom: 0; |
56 | 104 |
|
57 | 105 | @media only screen and (max-width: $mobile) {
|
58 | 106 | margin-left: $spacing-unit / 2;
|
|
77 | 125 | }
|
78 | 126 |
|
79 | 127 | blockquote {
|
80 |
| - margin: ($spacing-unit / 2) 0 ($spacing-unit / 2) ($spacing-unit / 2); |
| 128 | + margin: ($spacing-unit / 2) 0 0 ($spacing-unit / 2); |
81 | 129 | border-left: 3px solid $light-grey;
|
82 | 130 | font-style: italic;
|
83 | 131 | padding-left: ($spacing-unit / 2);
|
|
89 | 137 | }
|
90 | 138 |
|
91 | 139 | dl {
|
92 |
| - margin: ($spacing-unit / 2) 0 5px 0; |
| 140 | + margin: ($spacing-unit / 2) 0 0 0; |
93 | 141 |
|
94 | 142 | dt {
|
95 | 143 | font-weight: $bold-font-weight;
|
|
102 | 150 |
|
103 | 151 | table {
|
104 | 152 | @include table;
|
105 |
| - margin-bottom: $spacing-unit; |
| 153 | + margin: $spacing-unit 0 0; |
106 | 154 | }
|
107 | 155 |
|
108 | 156 | hr {
|
109 |
| - margin: ($spacing-unit / 2) 0; |
| 157 | + margin: ($spacing-unit / 2) 0 0; |
110 | 158 | border: 1px solid $light-grey;
|
111 | 159 | }
|
112 | 160 |
|
113 |
| - // Add a margin at the bottom of commonly included status badges |
| 161 | + // Add a margin at the top of commonly included status badges |
114 | 162 | > a {
|
115 |
| - margin-bottom: $spacing-unit / 2; |
116 |
| - } |
117 |
| - |
118 |
| - // Remove top padding on titles at the top of the description |
119 |
| - > div:first-child > h1:first-child, |
120 |
| - > h1:first-child, |
121 |
| - > div:first-child > h2:first-child, |
122 |
| - > h2:first-child, |
123 |
| - > div:first-child > h3:first-child, |
124 |
| - > h3:first-child, |
125 |
| - > div:first-child > h4:first-child, |
126 |
| - > h4:first-child, |
127 |
| - > div:first-child > h5:first-child, |
128 |
| - > h5:first-child, |
129 |
| - > div:first-child > h6:first-child, |
130 |
| - > h6:first-child { |
131 |
| - padding-top: 0; |
| 163 | + margin-top: $spacing-unit / 2; |
132 | 164 | }
|
133 | 165 | }
|
134 | 166 |
|
|
0 commit comments