|
| 1 | +// ---------------------------- |
| 2 | +// Results List |
| 3 | +// ---------------------------- |
| 4 | + |
1 | 5 | .top-space { |
2 | 6 | margin-top: 1.2rem; |
3 | 7 | @media (min-width: $bp-screen-md) { |
|
28 | 32 | margin-top: 0; |
29 | 33 | } |
30 | 34 | } |
| 35 | +} |
31 | 36 |
|
32 | | - .results-list { |
33 | | - @media (max-width: $bp-screen-md) { |
34 | | - .result { |
35 | | - padding-left: 0; |
36 | | - padding-right: 0; |
37 | | - margin-left: 3rem; |
38 | | - } |
39 | | - } |
40 | | - } |
| 37 | +.results-list { |
| 38 | + list-style-type: none; |
| 39 | + padding: 0; |
41 | 40 | } |
42 | 41 |
|
43 | | -.result { |
44 | | - padding: 2rem; |
45 | | - border-top: 1px solid $brand-primary; |
46 | | - font-size: $fs-small; |
47 | | - line-height: 0; /* line height needs to be reset so iOS doesn't act weird */ |
| 42 | +// ---------------------------- |
| 43 | +// Individual Results |
| 44 | +// ---------------------------- |
48 | 45 |
|
49 | | - &::marker { |
50 | | - font-size: 2.5rem; |
51 | | - font-weight: $fw-bold; |
52 | | - } |
| 46 | +li.result { |
| 47 | + margin-bottom: 48px; |
53 | 48 |
|
54 | | - &:hover, |
55 | | - &:focus { |
56 | | - background-color: $gray-l4; |
| 49 | + .eyebrow { |
| 50 | + color: $color-text-secondary; |
| 51 | + font-size: 1.3rem; |
| 52 | + font-weight: $fw-medium; |
| 53 | + letter-spacing: 0.05em; |
| 54 | + text-transform: uppercase; |
57 | 55 | } |
58 | 56 |
|
59 | | - .result-content { |
60 | | - line-height: 1.2; |
| 57 | + .record-title { |
| 58 | + font-size: 2.4rem; |
| 59 | + line-height: 1.3; |
| 60 | + margin-bottom: 8px; |
61 | 61 |
|
62 | | - .record-title { |
63 | | - font-size: 2.5rem; |
64 | | - line-height: 1.1; |
| 62 | + a { |
| 63 | + @include underlinedLinks; |
| 64 | + font-weight: $fw-semibold; |
65 | 65 | } |
| 66 | + } |
66 | 67 |
|
67 | | - a:visited { |
68 | | - color: $brand-secondary; |
| 68 | + .pub-info { |
| 69 | + font-size: $fs-base; |
| 70 | + color: $color-text-secondary; |
| 71 | + span:first-child:after { |
| 72 | + content: " • "; |
| 73 | + color: $color-text-disabled; |
69 | 74 | } |
| 75 | + margin-bottom: 1em; |
| 76 | + } |
70 | 77 |
|
71 | | - .pub-info { |
72 | | - font-size: $fs-base; |
73 | | - color: $gray-d1; |
74 | | - span:first-child:after { |
75 | | - content: " | "; |
| 78 | + .result-summary { |
| 79 | + margin-bottom: 2.4em; |
| 80 | + } |
| 81 | + |
| 82 | + .result-highlights { |
| 83 | + margin-top: 1.4em; |
| 84 | + ul { |
| 85 | + list-style: none; |
| 86 | + li { |
| 87 | + margin-left: 2rem; |
76 | 88 | } |
77 | | - margin: 1em 0; |
78 | 89 | } |
| 90 | + } |
79 | 91 |
|
80 | | - .result-summary { |
81 | | - margin-bottom: 2.4em; |
82 | | - } |
| 92 | + .result-highlights.use { |
| 93 | + margin-top: 0; |
83 | 94 |
|
84 | | - .result-highlights { |
85 | | - margin-top: 1.4em; |
86 | | - ul { |
87 | | - list-style: none; |
88 | | - li { |
89 | | - margin-left: 2rem; |
90 | | - } |
| 95 | + ul { |
| 96 | + list-style: disc inside; |
| 97 | + |
| 98 | + li { |
| 99 | + margin-left: 0.6rem; |
91 | 100 | } |
92 | 101 | } |
93 | 102 | } |
94 | 103 |
|
95 | 104 | .result-get, |
96 | 105 | .result-record { |
97 | | - padding-top: 5px; |
98 | 106 | a:visited { |
99 | 107 | color: $white; |
100 | 108 | } |
|
118 | 126 | font-size: 1.8rem; |
119 | 127 | line-height: 1.1; |
120 | 128 | } |
| 129 | + |
| 130 | + .highlight { |
| 131 | + background-color: $color-highlight; |
| 132 | + } |
| 133 | + |
| 134 | + &.use, &.primo { |
| 135 | + .result-metadata { |
| 136 | + margin-bottom: 16px; |
| 137 | + } |
| 138 | + |
| 139 | + .pub-info { |
| 140 | + margin-bottom: 4px; |
| 141 | + } |
| 142 | + |
| 143 | + ul.contributors { |
| 144 | + li { |
| 145 | + font-weight: $fw-normal; |
| 146 | + |
| 147 | + a { |
| 148 | + color: $color-text-secondary; |
| 149 | + text-decoration: none; |
| 150 | + |
| 151 | + &:hover { |
| 152 | + text-decoration: underline; |
| 153 | + } |
| 154 | + } |
| 155 | + } |
| 156 | + } |
| 157 | + |
| 158 | + .inner-heading { |
| 159 | + font-size: 1.6rem; |
| 160 | + font-family: $base-font; // Since we're using 16px, override to use body font |
| 161 | + } |
| 162 | + |
| 163 | + // Make result buttons present as underlined links |
| 164 | + a.button { |
| 165 | + @include underlinedLinks; |
| 166 | + font-weight: $fw-medium; |
| 167 | + margin-right: 16px; |
| 168 | + } |
| 169 | + |
| 170 | + // Except the first button, which should present as a secondary button |
| 171 | + a.button:first-child { |
| 172 | + @include buttonSecondary; |
| 173 | + } |
| 174 | + |
| 175 | + .truncate-list li:last-child {margin-bottom: 0;} |
| 176 | + |
| 177 | + } |
121 | 178 | } |
122 | 179 |
|
123 | | -/* USE Specific Overrides */ |
124 | | -/* Layout of results and sidebar columns */ |
| 180 | +/* Start USE specific overrides */ |
| 181 | + |
| 182 | +// ---------------------------- |
| 183 | +// Result list and Sidebar |
| 184 | +// ---------------------------- |
| 185 | + |
125 | 186 | #content-wrapper { |
126 | 187 | padding-top: 12px; |
127 | 188 | padding-bottom: 44px; |
|
167 | 228 |
|
168 | 229 | a { |
169 | 230 | @include underlinedLinks; |
| 231 | + font-weight: $fw-medium; |
170 | 232 | } |
171 | 233 | } |
172 | 234 |
|
|
205 | 267 |
|
206 | 268 | } |
207 | 269 |
|
208 | | -/* Callouts below results */ |
| 270 | +// ---------------------------- |
| 271 | +// Result callout boxes |
| 272 | +// ---------------------------- |
| 273 | + |
209 | 274 | #callout-wrapper { |
210 | 275 | display: flex; |
211 | 276 | gap: 12px; |
|
0 commit comments