928 lines
14 KiB
CSS
928 lines
14 KiB
CSS
/* General */
|
|
|
|
:root {
|
|
--accent: aqua;
|
|
--green: #5cff85;
|
|
--nsfw: #FF5C5D;
|
|
--text: white;
|
|
--foreground: #222;
|
|
--background: #0F0F0F;
|
|
--outside: #1F1F1F;
|
|
--post: #161616;
|
|
--highlighted: #333;
|
|
--shadow: 0 1px 3px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
::selection {
|
|
color: var(--foreground);
|
|
background: var(--accent);
|
|
}
|
|
|
|
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote,
|
|
pre, form, fieldset, table, th, td, select, input {
|
|
margin: 0;
|
|
color: var(--text);
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
body {
|
|
background: var(--background);
|
|
font-size: 15px;
|
|
}
|
|
|
|
nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
color: var(--accent);
|
|
background: var(--outside);
|
|
padding: 5px 15px;
|
|
font-size: 20px;
|
|
min-height: 40px;
|
|
position: fixed;
|
|
width: calc(100% - 30px);
|
|
box-shadow: var(--shadow);
|
|
top: 0;
|
|
z-index: 1;
|
|
}
|
|
|
|
nav * { color: var(--text); }
|
|
nav #reddit { color: var(--accent); }
|
|
nav #version { opacity: 25%; }
|
|
|
|
#settings_link {
|
|
font-size: 18px;
|
|
margin-left: 20px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
justify-content: center;
|
|
max-width: 1000px;
|
|
padding: 10px 20px;
|
|
margin: 60px auto 20px auto
|
|
}
|
|
|
|
.wide main {
|
|
max-width: calc(100% - 40px);
|
|
}
|
|
|
|
.wide #column_one {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
#column_one {
|
|
max-width: 750px;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
footer > a {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
button {
|
|
background: none;
|
|
border: none;
|
|
font-weight: bold;
|
|
}
|
|
|
|
hr {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
transition: 0.2s all;
|
|
}
|
|
|
|
a:not(.post_right):hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
img[src=""] {
|
|
display: none;
|
|
}
|
|
|
|
aside {
|
|
flex-grow: 1;
|
|
margin: 20px 20px 0 10px;
|
|
max-width: 350px;
|
|
}
|
|
|
|
.post, .panel {
|
|
border: 1px solid var(--highlighted);
|
|
}
|
|
|
|
.dot {
|
|
font-size: 12px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Light Theme */
|
|
|
|
.light {
|
|
--accent: #009a9a;
|
|
--green: #00a229;
|
|
--text: black;
|
|
--foreground: #f5f5f5;
|
|
--background: #DDD;
|
|
--outside: #ECECEC;
|
|
--post: #eee;
|
|
--highlighted: white;
|
|
--shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* User & Subreddit */
|
|
|
|
#user, #subreddit, #sidebar {
|
|
margin: 40px auto 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
height: max-content;
|
|
background: var(--outside);
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#user *, #subreddit * { text-align: center; }
|
|
|
|
#user, #sub_meta, #sidebar_contents { padding: 20px; }
|
|
|
|
#sidebar, #sidebar_contents { margin-top: 10px; }
|
|
#sidebar_label { padding: 10px; }
|
|
|
|
#user_icon, #sub_icon {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 2px solid var(--accent);
|
|
border-radius: 100%;
|
|
padding: 10px;
|
|
margin: 10px;
|
|
}
|
|
|
|
#user_title, #sub_title {
|
|
margin: 0 20px;
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#user_description, #sub_description {
|
|
margin: 0 20px;
|
|
}
|
|
|
|
#user_name, #user_description:not(:empty), #user_icon
|
|
#sub_name, #sub_icon, #sub_description:not(:empty) {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#user_details, #sub_details {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-column-gap: 20px;
|
|
}
|
|
|
|
#user_details > label, #sub_details > label {
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* Wiki Pages */
|
|
|
|
#wiki {
|
|
background: var(--foreground);
|
|
padding: 35px;
|
|
}
|
|
|
|
#top {
|
|
background: var(--highlighted);
|
|
width: 100%;
|
|
display: flex;
|
|
}
|
|
|
|
#top > * {
|
|
flex-grow: 1;
|
|
text-align: center;
|
|
height: 35px;
|
|
line-height: 35px;
|
|
}
|
|
|
|
#top > div {
|
|
border-bottom: 2px solid var(--text);
|
|
}
|
|
|
|
/* Sorting and Search */
|
|
|
|
.search_label {
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
select {
|
|
background: var(--outside);
|
|
transition: 0.2s all;
|
|
}
|
|
|
|
select, #search {
|
|
border: none;
|
|
padding: 0 15px;
|
|
height: 40px;
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
border-radius: 5px 0px 0px 5px;
|
|
}
|
|
|
|
#searchbox {
|
|
display: flex;
|
|
box-shadow: var(--shadow);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#searchbox > *, #sort_submit {
|
|
background: var(--highlighted);
|
|
height: 40px;
|
|
}
|
|
|
|
#search {
|
|
border-right: 2px var(--outside) solid;
|
|
min-width: 0;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
#inside {
|
|
display: flex;
|
|
align-items: center;
|
|
border-right: 2px var(--outside) solid;
|
|
height: 40px;
|
|
padding: 0 10px;
|
|
}
|
|
|
|
#restrict_sr { margin-right: 5px; }
|
|
|
|
input[type="submit"] {
|
|
border: 0;
|
|
border-radius: 0px 5px 5px 0px;
|
|
transition: 0.2s all;
|
|
}
|
|
|
|
select:hover { background: var(--foreground); }
|
|
input[type="submit"]:hover { color: var(--accent); }
|
|
|
|
#timeframe {
|
|
margin: 0 2px;
|
|
border-radius: 0;
|
|
}
|
|
|
|
#sort_options + #timeframe:not(#search_sort > #timeframe) {
|
|
margin-left: 10px;
|
|
border-radius: 5px 0px 0px 5px;
|
|
}
|
|
|
|
#search_sort {
|
|
background: var(--highlighted);
|
|
border-radius: 5px;
|
|
overflow: auto;
|
|
}
|
|
|
|
#search_sort > #search {
|
|
border: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
#search_sort > *, #searchbox > * { font-size: 15px; }
|
|
|
|
#search_sort > :not(:first-child), #search_sort > #sort_options {
|
|
margin: 0;
|
|
border-radius: 0;
|
|
border-right: 0;
|
|
border-left: 2px solid var(--background);
|
|
box-shadow: none;
|
|
background: transparent;
|
|
}
|
|
|
|
#sort_options {
|
|
height: 40px;
|
|
}
|
|
|
|
#sort, #search_sort {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
#sort_options, footer > a {
|
|
border-radius: 5px;
|
|
box-shadow: var(--shadow);
|
|
background: var(--outside);
|
|
display: flex;
|
|
overflow: auto;
|
|
}
|
|
|
|
#sort_options > a, footer > a {
|
|
color: var(--text);
|
|
padding: 10px 20px;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
transition: 0.2s all;
|
|
}
|
|
|
|
#sort_options > a.selected {
|
|
background: var(--accent);
|
|
color: var(--foreground);
|
|
}
|
|
|
|
#sort_options > a:not(.selected):hover {
|
|
background: var(--foreground);
|
|
}
|
|
|
|
#search_subreddits {
|
|
border-radius: 5px;
|
|
background: var(--post);
|
|
box-shadow: var(--shadow);
|
|
transition: 0.2s all;
|
|
border: 1px solid var(--highlighted);
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.search_subreddit {
|
|
padding: 16px 20px;
|
|
display: block;
|
|
}
|
|
|
|
a.search_subreddit:hover {
|
|
text-decoration: none;
|
|
background: var(--foreground);
|
|
}
|
|
|
|
.search_subreddit:not(:last-child) {
|
|
border-bottom: 1px solid var(--highlighted);
|
|
}
|
|
|
|
.search_subreddit_header {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.search_subreddit_name {
|
|
font-weight: bold;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.search_subreddit_description {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
/* Post */
|
|
|
|
.thread {
|
|
word-break: break-word;
|
|
}
|
|
|
|
.post {
|
|
border-radius: 5px;
|
|
background: var(--post);
|
|
box-shadow: var(--shadow);
|
|
display: flex;
|
|
transition: 0.2s all;
|
|
}
|
|
|
|
.post:not(:last-child) { margin-bottom: 10px; }
|
|
|
|
.post.highlighted {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.post.highlighted > .post_right {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.post:hover {
|
|
background: var(--foreground);
|
|
}
|
|
|
|
.post:hover > .post_left {
|
|
background: var(--highlighted);
|
|
}
|
|
|
|
.post_left, .post_right {
|
|
display: flex;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.post_left {
|
|
text-align: center;
|
|
background: var(--foreground);
|
|
border-radius: 5px 0 0 5px;
|
|
flex-direction: column;
|
|
min-width: 50px;
|
|
transition: 0.2s all;
|
|
}
|
|
|
|
.post_score {
|
|
margin-top: 20px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
#post_footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
opacity: 0.5;
|
|
font-size: 14px;
|
|
}
|
|
|
|
#post_links {
|
|
display: flex;
|
|
list-style: none;
|
|
padding: 0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#post_links > li {
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.post_subreddit {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.post_title {
|
|
font-size: 16px;
|
|
line-height: 1.5;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.post_text {
|
|
padding: 15px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.post_right {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.post_right > * {
|
|
margin: 5px;
|
|
}
|
|
|
|
.post_media {
|
|
max-width: 90%;
|
|
align-self: center;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.post_body {
|
|
opacity: 0.9;
|
|
font-weight: normal;
|
|
margin: 10px 5px;
|
|
}
|
|
|
|
#post_url {
|
|
color: var(--accent);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.post_thumbnail {
|
|
border-radius: 5px;
|
|
border: 1px solid var(--foreground);
|
|
width: 20%;
|
|
max-width: 140px;
|
|
display: grid;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
background-color: black;
|
|
}
|
|
|
|
.post_thumbnail img {
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
width: 100%;
|
|
object-fit: cover;
|
|
align-self: center;
|
|
justify-self: center;
|
|
}
|
|
|
|
.post_thumbnail.no_thumbnail {
|
|
background-color: var(--highlighted)
|
|
}
|
|
|
|
.post_thumbnail svg {
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
align-self: center;
|
|
justify-self: center;
|
|
stroke: var(--text);
|
|
}
|
|
|
|
.post_thumbnail span {
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
background-color: rgba(0,0,0,0.8);
|
|
color: white;
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
padding: 5px;
|
|
align-self: end;
|
|
}
|
|
|
|
.post_flair {
|
|
background: var(--accent);
|
|
color: var(--background);
|
|
padding: 5px;
|
|
border-radius: 5px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.emoji {
|
|
width: 1em;
|
|
height: 1em;
|
|
display: inline-block;
|
|
background-size: contain;
|
|
background-position: 50% 50%;
|
|
background-repeat: no-repeat;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.nsfw {
|
|
color: var(--nsfw);
|
|
margin-top: 20px;
|
|
border: 1px solid var(--nsfw);
|
|
padding: 5px;
|
|
font-size: 12px;
|
|
border-radius: 5px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.stickied {
|
|
--accent: var(--green);
|
|
border: 1px solid var(--green);
|
|
}
|
|
|
|
/* Comment */
|
|
|
|
.comment {
|
|
margin: 10px 0;
|
|
border-radius: 5px;
|
|
display: flex;
|
|
}
|
|
|
|
.comment_left, .comment_right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.comment_left {
|
|
text-align: center;
|
|
min-width: 50px;
|
|
padding: 5px 0;
|
|
align-items: center;
|
|
}
|
|
|
|
.comment_title { font-size: 20px; }
|
|
.comment_link { text-decoration: underline; }
|
|
.comment_author { opacity: 0.9; }
|
|
|
|
.comment_author.op {
|
|
color: var(--accent);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.author_flair {
|
|
background: var(--highlighted);
|
|
color: var(--text);
|
|
padding: 5px;
|
|
margin-right: 5px;
|
|
border-radius: 5px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.comment_subreddit {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.comment_score {
|
|
color: var(--accent);
|
|
background: var(--foreground);
|
|
min-width: 40px;
|
|
border-radius: 5px;
|
|
padding: 10px 0;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.comment_right {
|
|
word-wrap: anywhere;
|
|
padding: 10px 0 10px 5px;
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
}
|
|
|
|
.comment_data > * {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.comment_image {
|
|
max-width: 500px;
|
|
align-self: center;
|
|
}
|
|
|
|
.comment_body {
|
|
opacity: 0.9;
|
|
font-weight: normal;
|
|
margin: 10px 5px;
|
|
}
|
|
|
|
.comment_body > p:not(:first-child) {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.comment_body a {
|
|
text-decoration: underline;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.deeper_replies {
|
|
color: var(--accent);
|
|
margin-left: 15px;
|
|
}
|
|
|
|
::marker {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.replies > .comment {
|
|
margin-left: -20px;
|
|
padding: 5px;
|
|
}
|
|
|
|
.datetime {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.line {
|
|
width: 2px;
|
|
height: 100%;
|
|
background: var(--foreground);
|
|
}
|
|
|
|
/* Layouts */
|
|
|
|
.compact .post:not(.highlighted) {
|
|
border-radius: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.compact .post:first-of-type {
|
|
border-radius: 5px 5px 0 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.compact .post:last-of-type {
|
|
border-radius: 0 0 5px 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.compact .post.highlighted {
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.compact .post:not(:last-of-type):not(.highlighted):not(.stickied) {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.compact .post_left {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.compact .post_header {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.compact .post_title {
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.compact .post_text {
|
|
padding: 10px;
|
|
}
|
|
|
|
.compact .post_thumbnail {
|
|
width: 75px;
|
|
height: 75px;
|
|
}
|
|
|
|
.compact footer {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.card_post .post_right {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.card_post:not(.highlighted) .post_media {
|
|
margin-top: 0;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
/* Settings */
|
|
|
|
#settings {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
#settings_note {
|
|
font-size: 14px;
|
|
max-width: 300px;
|
|
margin-top: 10px;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
#prefs {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
background: var(--post);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#prefs > div {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
height: 35px;
|
|
align-items: center;
|
|
}
|
|
|
|
#prefs > div:not(:last-of-type) {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#prefs select {
|
|
border-radius: 5px;
|
|
box-shadow: var(--shadow);
|
|
margin-left: 20px;
|
|
background: var(--foreground);
|
|
}
|
|
|
|
#save {
|
|
background: var(--highlighted);
|
|
padding: 10px 15px;
|
|
border-radius: 5px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
input[type="submit"] {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
}
|
|
/* Markdown */
|
|
|
|
.md > *:not(:first-child) {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.md h1 { font-size: 22px; }
|
|
.md h2 { font-size: 20px; }
|
|
.md h3 { font-size: 18px; }
|
|
.md h4 { font-size: 16px; }
|
|
.md h5 { font-size: 14px; }
|
|
.md h6 { font-size: 12px; }
|
|
|
|
.md blockquote {
|
|
padding-left: 6px;
|
|
margin: 4px 0 4px 5px;
|
|
border-left: 4px solid var(--highlighted);
|
|
}
|
|
|
|
.md a, .md a * {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.md .md-spoiler-text {
|
|
background: var(--highlighted);
|
|
color: transparent;
|
|
}
|
|
|
|
.md .md-spoiler-text:hover {
|
|
background: var(--foreground);
|
|
color: var(--text);
|
|
}
|
|
|
|
.md li { margin: 10px 0; }
|
|
.toc_child { list-style: none; }
|
|
|
|
.md pre {
|
|
background: var(--outside);
|
|
padding: 20px;
|
|
margin-top: 10px;
|
|
border-radius: 5px;
|
|
box-shadow: var(--shadow);
|
|
overflow: auto;
|
|
}
|
|
|
|
.md table {
|
|
margin: 5px;
|
|
}
|
|
|
|
.md code {
|
|
font-family: monospace;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.md code:not(.md pre > code) { background: var(--highlighted); }
|
|
|
|
/* Tables */
|
|
|
|
table {
|
|
border: 3px var(--highlighted) solid;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
td, th {
|
|
border: 1px var(--highlighted) solid;
|
|
padding: 10px;
|
|
}
|
|
|
|
/* Mobile */
|
|
|
|
@media screen and (max-width: 480px) {
|
|
.post {
|
|
flex-direction: column-reverse;
|
|
}
|
|
|
|
.post_header {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.post_left {
|
|
border-radius: 0 0 5px 5px;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.nsfw {
|
|
margin: 5px 0px 5px 10px;
|
|
}
|
|
|
|
.post_score {
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.replies > .comment {
|
|
margin-left: -25px;
|
|
padding: 5px 0;
|
|
}
|
|
|
|
.datetime {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 800px) {
|
|
main {
|
|
flex-direction: column-reverse;
|
|
padding: 10px;
|
|
margin: 100px 0 10px 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
nav {
|
|
flex-direction: column;
|
|
padding: 10px;
|
|
width: calc(100% - 20px);
|
|
}
|
|
|
|
aside, #subreddit, #user {
|
|
margin: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
#user, #sidebar { margin: 20px 0; }
|
|
#logo { margin: 5px auto; }
|
|
#searchbox { width: 100%; }
|
|
#github { display: none; }
|
|
}
|