|
| 1 | +:root { |
| 2 | + --font-family--heading: 'Hind Siliguri', sans-serif; |
| 3 | + --font-family--content: 'Montserrat', sans-serif; |
| 4 | + --font-weight--light: 300; |
| 5 | + --font-weight--semibold: 600; |
| 6 | + --font-weight--medium: 500; |
| 7 | + --color--white: #FFFFFF; |
| 8 | + --color--dark-grey: #2A2A2A; |
| 9 | + --color--orange: #F26430; |
| 10 | + --color--green: #77BA99; |
| 11 | + --color--blue: #004DB9; |
| 12 | + --color--grey: #626262; |
| 13 | + --font-size--content: calc(1em * 0.75); |
| 14 | +} |
| 15 | + |
| 16 | +body { |
| 17 | + margin: 0; |
| 18 | + padding: 0; |
| 19 | + font-size: 1em; |
| 20 | + font-family: var(--font-family--content); |
| 21 | +} |
| 22 | + |
| 23 | +/* Font-sizing */ |
| 24 | +h1 { font-size: 86px; } |
| 25 | +h2 { font-size: 36px; } |
| 26 | +h3 { font-size: 1.5em; } |
| 27 | +h4 { font-size: 28px; } |
| 28 | +h5 { font-size: 24px; } |
| 29 | +h6 { font-size: 22px; } |
| 30 | +p { font-size: 18px; } |
| 31 | + |
| 32 | +/* End Font-sizing */ |
| 33 | + |
| 34 | +/* Line Height */ |
| 35 | +h1 { line-height: 100px; } |
| 36 | +h2 { line-height: 46px; } |
| 37 | +.this-week h2 { line-height: 68px;} |
| 38 | +h3 { line-height: 1.25;} |
| 39 | +/* End Line Height */ |
| 40 | + |
| 41 | +/* Font-families */ |
| 42 | +h1, h2, h3, h4, h5, h6, nav { |
| 43 | + font-family: var(--font-family--heading); |
| 44 | + margin: 0 0 10px 0; padding: 0; |
| 45 | +} |
| 46 | +p { font-family: var(--font-family--content); } |
| 47 | +/* End Font-families */ |
| 48 | + |
| 49 | +/* Margin */ |
| 50 | +h1 { margin-bottom: 42px; } |
| 51 | +h2 { margin-bottom: 42px; } |
| 52 | +.convo h2 { margin-bottom: 0; } |
| 53 | +/* End Margin */ |
| 54 | + |
| 55 | +/* Font-weights */ |
| 56 | +h1, h2, h4 { |
| 57 | + font-weight: var(--font-weight--light); |
| 58 | +} |
| 59 | +h3,h5 { font-weight: var(--font-weight--semibold); } |
| 60 | +h6 { font-weight: var(--font-weight--medium); } |
| 61 | +/* End Font-weights */ |
| 62 | + |
| 63 | +/* Text-Transform */ |
| 64 | +h1, h2, h4, h6 { text-transform: uppercase; } |
| 65 | + |
| 66 | + |
| 67 | +/* Element Styling */ |
| 68 | +h2 { vertical-align: middle;} |
| 69 | +p { |
| 70 | + font-size: 18px; |
| 71 | + line-height: 24px; |
| 72 | + margin: 0 0 30px 0; |
| 73 | +} |
| 74 | +a { color: #004DB9; } |
| 75 | +img { max-width: 100%; } |
| 76 | +body > header { |
| 77 | + background: var(--color--dark-grey); |
| 78 | + display: flex; |
| 79 | + flex-direction: row; |
| 80 | + height: 160px; |
| 81 | + align-items: center; |
| 82 | + border-bottom: 40px solid var(--color--green); |
| 83 | + padding: 0 140px; |
| 84 | + margin-bottom: 60px; |
| 85 | +} |
| 86 | +body.this-week > header { border-bottom: 0; margin-bottom: 0;} |
| 87 | + |
| 88 | +header a.site-home { |
| 89 | + color: var(--color--white); |
| 90 | + text-decoration: none; |
| 91 | + font-weight: var(--font-weight--light); |
| 92 | + font-family: var(--font-family--heading); |
| 93 | + flex: 0 0 200px; |
| 94 | +} |
| 95 | +header a.site-home strong { font-weight: var(--font-weight--semibold);} |
| 96 | + |
| 97 | +body > header > nav { |
| 98 | + flex: 1 1 auto; |
| 99 | + list-style: none; |
| 100 | + display: flex; |
| 101 | + flex-direction: row; |
| 102 | + align-items: center; |
| 103 | + justify-content: flex-end; |
| 104 | +} |
| 105 | +body > header > nav a { |
| 106 | + flex: 1 1 1fr; margin-right: 1em; |
| 107 | + color: var(--color--green); |
| 108 | + text-transform: uppercase; |
| 109 | + text-decoration: none; |
| 110 | + font-size: 32px; |
| 111 | + font-weight: var(--font-weight--semibold); |
| 112 | +} |
| 113 | +body > header > nav a:last-child { |
| 114 | + margin-right: 0; |
| 115 | +} |
| 116 | +body > header > nav a.active { |
| 117 | + color: var(--color--white); |
| 118 | + border-bottom: 8px solid var(--color--orange); |
| 119 | + margin-bottom: -8px; |
| 120 | +} |
| 121 | +body > header > nav a .icon { |
| 122 | + font-size: 24px; |
| 123 | + vertical-align: top; |
| 124 | +} |
| 125 | + |
| 126 | +main { |
| 127 | + display: flex; |
| 128 | + flex-direction: row; |
| 129 | + align-items: stretch; |
| 130 | +} |
| 131 | +.site-home { font-size: 65px; } |
| 132 | +.site-home span { font-size: 70px; } |
| 133 | +.this-week { flex: 0 0 58%; --convo-bg-color: var(--color--orange); } |
| 134 | +.blog-feed, .twitter-feed { flex: 0 0 42%; --convo-bg-color: var(--color--green); } |
| 135 | +.convo { |
| 136 | + background-color: var(--convo-bg-color); |
| 137 | + position: relative; |
| 138 | + height: 180px; |
| 139 | + color: white; |
| 140 | + display: flex; |
| 141 | + flex-direction: column; |
| 142 | + justify-content: center; |
| 143 | + margin-bottom: 190px; |
| 144 | +} |
| 145 | +.convo p { margin: 0; } |
| 146 | +.convo::after { |
| 147 | + content: ''; |
| 148 | + display: block; |
| 149 | + background-color: var(--convo-bg-color); |
| 150 | + height: 0; |
| 151 | + width: 0; |
| 152 | + position: absolute; |
| 153 | + top: 100%; |
| 154 | + left: 140px; |
| 155 | + border-width: 70px; |
| 156 | + border-style: solid; |
| 157 | + background: transparent; |
| 158 | + border-right-color: transparent; |
| 159 | + border-bottom-color: transparent; |
| 160 | + border-left-color: var(--convo-bg-color); |
| 161 | + border-top-color: var(--convo-bg-color); |
| 162 | +} |
| 163 | +main article { |
| 164 | + position: relative; |
| 165 | +} |
| 166 | +main article > * { |
| 167 | + padding-left: 140px; |
| 168 | + padding-right: 140px; |
| 169 | +} |
| 170 | +.this-week main article:first-child > * { padding-right: 30px; } |
| 171 | + |
| 172 | +.this-week .author { |
| 173 | + margin-bottom: 50px; |
| 174 | + margin-top: -100px; |
| 175 | + margin-left: 140px; |
| 176 | +} |
| 177 | +.author { |
| 178 | + margin-bottom: 20px; |
| 179 | + display:flex; |
| 180 | + flex-direction: row; |
| 181 | + align-items: center; |
| 182 | + font-size: 18px; |
| 183 | +} |
| 184 | +.author pfe-avatar { |
| 185 | + --pfe-avatar--width: 50px; |
| 186 | + display: inline-block; |
| 187 | + margin-right:20px; |
| 188 | +} |
| 189 | +p.byline { |
| 190 | + margin: 0; |
| 191 | + padding: 0; |
| 192 | + color: #454545; |
| 193 | + font-size: 16px; |
| 194 | +} |
| 195 | +p.end-of-results { |
| 196 | + text-align: center; |
| 197 | + font-size: 16px; |
| 198 | +} |
| 199 | + |
| 200 | +.preamble { |
| 201 | + font-size: 24px; |
| 202 | + line-height: 32px; |
| 203 | + vertical-align: middle; |
| 204 | + color: #454545; |
| 205 | +} |
| 206 | + |
| 207 | +.twitter-feed h3 { |
| 208 | + font-size: 16px; |
| 209 | + color: #454545; |
| 210 | +} |
| 211 | +.twitter-feed p a { |
| 212 | + font-size: 20px; |
| 213 | + font-weight: 600; |
| 214 | +} |
| 215 | + |
| 216 | +.blogs-page main, .twitter-page main { |
| 217 | + display: flex; |
| 218 | +} |
| 219 | +.blogs-page main article:first-child, .twitter-page main article:first-child { |
| 220 | + flex: 0 0 65%; |
| 221 | + padding-right: 30px; |
| 222 | +} |
| 223 | + |
| 224 | +.blogs-page hr { |
| 225 | + width: 50%; |
| 226 | +} |
| 227 | +.blogs-page h3 { |
| 228 | + margin-top: 30px; |
| 229 | +} |
| 230 | + |
| 231 | +.rhd-banner { |
| 232 | + background-color: var(--color--grey); |
| 233 | + color: var(--color--white); |
| 234 | + padding: 64px 140px; |
| 235 | +} |
| 236 | +.rhd-banner .three-cols { |
| 237 | + display: flex; |
| 238 | + flex-direction: row; |
| 239 | +} |
| 240 | + |
| 241 | +.rhd-banner .three-cols p { |
| 242 | + flex: 2; |
| 243 | +} |
| 244 | +.rhd-banner .three-cols a { |
| 245 | + flex: 1; |
| 246 | + margin-left: 140px; |
| 247 | + color: var(--color--white); |
| 248 | + font-size: 22px; |
| 249 | + font-weight: bold; |
| 250 | +} |
| 251 | + |
| 252 | +@media (max-width: 1200px) { |
| 253 | + h2, .this-week h2 { |
| 254 | + font-size: 24px; |
| 255 | + line-height: 34px; |
| 256 | + } |
| 257 | + .rhd-banner .three-cols { |
| 258 | + flex-direction: column; |
| 259 | + } |
| 260 | + body > header, .rhd-banner { |
| 261 | + padding-left: 70px; |
| 262 | + padding-right: 70px; |
| 263 | + } |
| 264 | + body > header { |
| 265 | + height: 80px; |
| 266 | + } |
| 267 | + .rhd-banner { |
| 268 | + padding-top: 16px; |
| 269 | + padding-bottom: 16px; |
| 270 | + } |
| 271 | + .rhd-banner .three-cols a { |
| 272 | + margin-left: 0; |
| 273 | + margin-bottom: 30px; |
| 274 | + } |
| 275 | + .this-week main article:first-child > * { |
| 276 | + padding-right: 30px; |
| 277 | + } |
| 278 | + main article > * { |
| 279 | + padding-left: 70px; |
| 280 | + padding-right: 70px; |
| 281 | + } |
| 282 | + .convo { |
| 283 | + height: 120px; |
| 284 | + margin-bottom: 120px; |
| 285 | + } |
| 286 | + .convo::after { |
| 287 | + border-width: 35px; |
| 288 | + left: 70px; |
| 289 | + } |
| 290 | +} |
| 291 | + |
| 292 | +@media (max-width: 769px) { |
| 293 | + h2, .this-week h2 { |
| 294 | + font-size: 24px; |
| 295 | + line-height: 28px; |
| 296 | + margin-bottom: 1em; |
| 297 | + } |
| 298 | + body > header, .rhd-banner { |
| 299 | + padding-left: 30px; |
| 300 | + padding-right: 30px; |
| 301 | + } |
| 302 | + body > header { |
| 303 | + height: auto; |
| 304 | + } |
| 305 | + header a.site-home { |
| 306 | + flex: 0 0 auto; |
| 307 | + font-size: 32px; |
| 308 | + } |
| 309 | + body > header > nav a { |
| 310 | + font-size: 24px; |
| 311 | + } |
| 312 | + .this-week h2 { |
| 313 | + line-height: 34px; |
| 314 | + } |
| 315 | + main { |
| 316 | + flex-direction: column; |
| 317 | + } |
| 318 | + main article > * { |
| 319 | + padding-left: 30px; |
| 320 | + padding-right: 30px; |
| 321 | + } |
| 322 | +} |
| 323 | + |
| 324 | +@media (prefers-color-scheme: dark) { |
| 325 | + body { |
| 326 | + color: white; |
| 327 | + background: black; |
| 328 | + } |
| 329 | + |
| 330 | + h3 { color: #bababa; } |
| 331 | + a { color: #6BB5FF; } |
| 332 | +} |
0 commit comments