Created
February 13, 2025 07:46
-
-
Save phun-ky/a6171cceb6b974d1e00422f432a33842 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--color-white: #FFFFFF; | |
--color-black-stallion: #0A1C1B; | |
--color-sci-fi-petrol: #006666; | |
--color-aquatic-green: #499A9A; | |
--container-padding: 2em; | |
--size-unit: 16; | |
/* body font-size in design - no px */ | |
--size-container-ideal: 1440; | |
/* screen-size in design - no px */ | |
--size-container-min: 992px; | |
--size-container-max: 1920px; | |
--size-container: clamp(var(--size-container-min), 100vw, var(--size-container-max)); | |
--size-font: calc(var(--size-container) / (var(--size-container-ideal) / var(--size-unit))); | |
--color-text: var(--color-black-stallion); | |
--color-background: var(--color-white); | |
--color-link: var(--color-sci-fi-petrol); | |
} | |
@media (prefers-color-scheme: dark) { | |
:root { | |
--color-text: var(--color-white); | |
--color-background: var(--color-black-stallion); | |
--color-link: var(--color-aquatic-green); | |
} | |
} | |
/* Tablet */ | |
@media screen and (max-width: 991px) { | |
:root { | |
--size-container-ideal: 834; | |
/* screen-size in design - no px */ | |
--size-container-min: 768px; | |
--size-container-max: 991px; | |
} | |
} | |
/* Mobile Landscape */ | |
@media screen and (max-width: 767px) { | |
:root { | |
--size-container-ideal: 390; | |
/* screen-size in design - no px */ | |
--size-container-min: 480px; | |
--size-container-max: 767px; | |
} | |
} | |
/* Mobile Portrait */ | |
@media screen and (max-width: 479px) { | |
:root { | |
--size-container-ideal: 440; | |
/* screen-size in design - no px */ | |
--size-container-min: 0px; | |
--size-container-max: 479px; | |
} | |
} | |
*, | |
*::before, | |
*::after { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
} | |
html, | |
body { | |
-webkit-font-smoothing: antialiased; | |
} | |
html { | |
scroll-behavior: initial; | |
} | |
body { | |
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif; | |
font-size: var(--size-font); | |
line-height: 1.5; | |
color: var(--color-text); | |
background-color: var(--color-background); | |
padding: 0; | |
} | |
body > section{ | |
background-color: var(--color-background); | |
} | |
aside, | |
.banner-wrapper, | |
#announcement, | |
.nav-wrap, | |
.message-bar, | |
.nav-secondary-wrap, | |
#bottomadspace, | |
#fhft, | |
.bq, | |
#ft, | |
.topic, | |
.comment-bubble, | |
.extlnk, | |
.deals-wrapper, | |
.article-foot{ | |
display: none !important; | |
} | |
#slashboxes article, | |
#firehose article, | |
#comments article { | |
color: var(--color-text); | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif; | |
} | |
#firehose article header h2, | |
#firehose article header h1, | |
.main-content h2 { | |
padding: 0; | |
line-height: 1.2; | |
word-break: break-word; | |
margin-bottom: 2rem; | |
color: var(--color-text); | |
background-color: transparent; | |
} | |
.main-content h2 .story-title, | |
.main-content h2 .story-title a, | |
#firehose article header .story-title, | |
#firehose article header .story-title a { | |
font-weight: 600; | |
line-height: 1.2; | |
word-break: break-word; | |
color: var(--color-text); | |
} | |
#firehose article header .story-title a { | |
font-size: 2em; | |
max-width: 48ch; | |
display: block; | |
} | |
p, | |
.p, | |
.article:not(.fhitem-journal) .body .p { | |
text-wrap: pretty; | |
line-height: 1.5; | |
max-width: 70ch; | |
margin: 0; | |
margin-top: 1.25em; | |
margin-bottom: 1.25em; | |
} | |
ul, | |
ol, | |
li { | |
margin-top: 1.25em; | |
margin-bottom: 1.25em; | |
} | |
li { | |
max-width: 65ch; | |
padding-left: 1em; | |
} | |
blockquote, | |
.article .body .p > i { | |
position: relative; | |
padding: 3em 1.2em 0.85em 2em; | |
display: block; | |
} | |
.article .body .p > i { | |
font-weight: 500; | |
max-width: 64ch; | |
font-style: italic; | |
border: none; | |
margin: 0; | |
margin-top: 2em; | |
margin-bottom: 2em; | |
} | |
blockquote p { | |
font-weight: 500; | |
max-width: 64ch; | |
font-style: italic; | |
} | |
blockquote::before, | |
.article .body .p > i::before { | |
content: "“"; | |
font-size: 7em; | |
position: absolute; | |
top: -0.325em; | |
left: 0; | |
} | |
a { | |
color: inherit; | |
text-decoration: none; | |
} | |
.container { | |
z-index: 1; | |
max-width: calc(var(--size-container) * .85); | |
padding-left: var(--container-padding); | |
padding-right: var(--container-padding); | |
width: 100%; | |
margin-left: auto; | |
margin-right: auto; | |
position: relative; | |
} | |
article { | |
padding-top: 5em; | |
padding-bottom: 5em; | |
width: 100% !important; | |
} | |
article p a, | |
article li a { | |
text-decoration: underline; | |
color: var(--color-link); | |
font-weight: 600; | |
} | |
article header { | |
background-color: transparent; | |
} | |
article.article { | |
float: none !important; | |
margin: 0 !important; | |
} | |
.main-wrap.has-rail-right > .main-content { | |
margin: 0; | |
} | |
article .p a, | |
article .p i a, #firehose article header .details a { | |
text-decoration: underline; | |
color: var(--color-link); | |
font-weight: 600; | |
} | |
article + article { | |
padding-top: 0 !important; | |
} | |
#firehose article header .story-title { | |
left: 0; | |
position: static; | |
} | |
#firehose article header .details { | |
background-color: transparent; | |
font-style: italic; | |
padding: 0; | |
color: var(--color-text); | |
opacity: 0.7; | |
} | |
.story-details { | |
display: none !important; | |
} | |
#firehose article header .details .story-byline { | |
height: auto; | |
position: static; | |
padding: 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment