Skip to content

Instantly share code, notes, and snippets.

@ZackBoe
Created June 16, 2023 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZackBoe/b7887daaf37be974f80d425431688c38 to your computer and use it in GitHub Desktop.
Save ZackBoe/b7887daaf37be974f80d425431688c38 to your computer and use it in GitHub Desktop.
Blue's News userstyle
:root {
--style-color: #282c34;
--style-color-alt: #1d1f24;
--sale-color: #97c37c;
--headline-color: #4aa4ed;
--visited-color: #c678dd;
--link-color: var(--headline-color);
--max-width: 1200px;
}
.updated-notice {
padding: 10px;
}
.col-12.header img.img-fluid {
height: 100px;
width: auto;
}
.content a,
.content .postdate a:link {
color: var(--link-color);
}
.content a:visited {
color: var(--visited-color);
}
.content.col-12 .row {
max-width: var(--max-width);
}
.content .col-12:nth-child(odd of div:has(.posting)) {
background: var(--style-color-alt);
}
.content .col-12:has(.posting) {
padding: 0 1rem !important;
border-radius: 15px;
line-height: 1.25rem;
margin: 10px 0;
}
@media screen and (max-width: 600px) {
.content.col-lg { padding: 0; }
.content .col-12:has(.posting) {
line-height: 1.5rem;
margin: 0;
border-radius: 0;
}
}
.content .postquote {
color: white;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-in-out;
}
.content .col-12:has(.posting):hover .postquote {
max-height: 10000vh;
}
.content .col-12:has(.postquote):after {
position: absolute;
content: '+';
right: 1rem;
bottom: .5rem;
font-size: 150%;
}
/* .posting:before {
position: absolute;
right: 0;
top: 0;
border-radius: 50%;
background: white;
padding: 1rem;
} */
.posting:has(a[href*="for-free"]):before { content: '๐Ÿ’ธ'; }
.content .col-12:has(.posting a[href*="for-free"]) {
border: 2px solid var(--sale-color);
}
.posting:has(a[href*="on-sale"]):before,
.posting:has(a[href*="humble-choice"]):before
{ content: '๐Ÿ›’'; }
.posting:has(a[href*="multiplex"]):before,
.posting:has(a[href*="footage"]):before,
.posting:has(a[href*="trailer"]):before
{ content: '๐Ÿ“บ'; }
.posting:has(a[href*="sports"]):before { content: '๐Ÿ†'; }
/* 'demo-available', 'demo-released' */
.posting:has(a[href*="demo"]):before { content: '๐Ÿ•น๏ธ'; }
.posting:has(a[href*="safety-dance"]):before { content: 'โš ๏ธ'; }
.posting:has(a[href*="patch"]):before { content: '๐Ÿ‘พ'; }
.posting:has(a[href*="virtual"]):before { content: '๐Ÿ‘“'; }
.posting:has(a[href*="legal"]):before { content: '๐Ÿ’ผ'; }
.posting:has(a[href*="biz-buzz"]):before { content: '๐Ÿ’ผ'; }
.posting:has(a[href*="reviews"]):before { content: '๐Ÿ“ƒ'; }
.posting:has(a[href*="interview"]):before { content: '๐ŸŽค'; }
.posting:has(a[href*="event"]):before { content: '๐Ÿ“…'; }
.posting:has(a[href*="rumor"]):before { content: '๐Ÿ’ญ'; }
.posting:has(a[href*="quoteworthy"]):before { content: '๐Ÿ’ฌ'; }
.posting:has(a[href*="mobilization"]):before { content: '๐Ÿ“ฑ'; }
.posting:has(a[href*="crossover"]):before { content: '๐Ÿ”€'; }
.posting:has(a[href*="consolidation"]):before { content: '๐ŸŽฎ'; }
.posting:has(a[href*="out-of-the-blue"]):before { content: '๐Ÿ”ต'; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment