redsunlib/static/style.css

2279 lines
38 KiB
CSS
Raw Permalink Normal View History

2021-01-18 15:11:36 +13:00
/* Define themes */
2020-10-26 09:25:59 +13:00
2021-01-18 15:11:36 +13:00
/* Constants */
2020-12-20 16:54:46 +13:00
:root {
--nsfw: #ff5c5d;
--admin: #ea0027;
/* Reddit redirect warning constants */
--popup-red: #ea0027;
--popup-black: #111;
--popup-text: #fff;
--popup-background-1: #0f0f0f;
--popup-background-2: #220f0f;
--popup-reddit-url: var(--popup-red);
--popup-background: repeating-linear-gradient(
-45deg,
var(--popup-background-1),
var(--popup-background-1) 50px,
var(--popup-background-2) 50px,
var(--popup-background-2) 100px
);
--popup-toreddit-background: var(--popup-black);
--popup-toreddit-text: var(--popup-red);
--popup-goback-background: var(--popup-red);
--popup-goback-text: #222;
--popup-border: 1px solid var(--popup-red);
--footer-height: 30px;
2020-12-20 16:54:46 +13:00
}
2021-05-20 11:09:08 +12:00
@font-face {
font-family: "Inter";
src: url("/Inter.var.woff2") format("woff2-variations");
font-style: normal;
font-weight: 100 900;
2021-05-20 11:09:08 +12:00
}
2021-01-18 15:11:36 +13:00
/* Automatic theme selection */
:root,
.dark {
/* Default & fallback theme (dark) */
2024-10-13 04:42:15 +13:00
--accent: #d54455;
--green: #5cff85;
--text: white;
--foreground: #222;
--background: #0f0f0f;
--outside: #1f1f1f;
--post: #161616;
--panel-border: 1px solid #333;
--highlighted: #333;
--visited: #aaa;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
--popup: #b80a27;
--spoiler: #ddd;
/* Hint color theme to browser for scrollbar */
color-scheme: dark;
2021-01-18 15:11:36 +13:00
}
/* Browser-defined light theme */
@media (prefers-color-scheme: light) {
:root {
2024-10-13 04:42:15 +13:00
--accent: #bb2b3b;
--green: #00a229;
--text: black;
--foreground: #f5f5f5;
--background: #ddd;
--outside: #ececec;
--post: #eee;
--panel-border: 1px solid #ccc;
--highlighted: white;
--visited: #555;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
--spoiler: #0f0f0f;
/* Hint color theme to browser for scrollbar */
color-scheme: light;
}
2021-01-18 15:11:36 +13:00
}
/* Other themes are located in the "themes" folder */
2021-11-25 08:31:19 +13:00
2023-12-27 09:45:12 +13:00
/* Tokyo Night theme setting */
.tokyoNight {
--accent: #565f89;
--green: #73daca;
--text: #a9b1d6;
--foreground: #24283b;
--background: #1a1b26;
--outside: #24283b;
--post: #1a1b26;
--panel-border: 1px solid #a9b1d6;
--highlighted: #414868;
--visited: #414868;
--shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
2023-12-27 09:45:12 +13:00
}
2021-01-18 15:11:36 +13:00
/* General */
2021-01-01 12:54:13 +13:00
::selection {
color: var(--foreground);
background: var(--accent);
2021-01-01 12:54:13 +13:00
}
2021-02-14 10:38:12 +13:00
:focus-visible {
outline: 2px solid 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 {
accent-color: var(--accent);
margin: 0;
color: var(--text);
font-family: "Inter", sans-serif;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
word-wrap: anywhere;
2020-10-26 09:25:59 +13:00
}
html.fixed_navbar {
scroll-padding-top: 50px;
}
@media screen and (max-width: 800px) {
html.fixed_navbar {
scroll-padding-top: 100px;
}
}
2020-12-20 16:54:46 +13:00
body {
background: var(--background);
padding-bottom: var(--footer-height);
font-size: 15px;
position: relative;
}
body.card {
min-height: calc(100vh - 30px);
2020-10-26 09:25:59 +13:00
}
body.fixed_navbar {
min-height: calc(100vh - 90px);
padding-top: 60px;
}
2020-12-21 14:45:26 +13:00
nav {
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
display: flex;
2021-01-18 10:24:44 +13:00
align-items: center;
color: var(--accent);
background: var(--outside);
box-shadow: var(--shadow);
font-size: 20px;
z-index: 2;
top: 0;
padding: 5px 15px;
margin-bottom: 10px;
min-height: 40px;
width: calc(100% - 30px);
}
nav.fixed_navbar {
position: fixed;
2020-10-26 09:25:59 +13:00
}
nav * {
color: var(--text);
}
2024-10-13 04:42:15 +13:00
nav #red,
#code > span {
color: var(--accent);
}
nav #code > svg {
stroke: var(--accent);
}
nav #logo {
white-space: nowrap;
margin-right: 5px;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
flex-grow: 1;
flex-basis: 0;
}
2021-01-31 11:52:18 +13:00
nav #links {
margin-left: 10px;
display: flex;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
flex-grow: 1;
flex-basis: 0;
justify-content: flex-end;
2021-02-01 10:22:11 +13:00
}
nav #links svg {
display: none;
}
2023-12-27 12:25:52 +13:00
nav #redlib {
vertical-align: -2px;
}
2020-11-23 13:29:05 +13:00
figcaption {
margin-top: 5px;
text-align: center;
}
2021-01-06 15:16:32 +13:00
#settings_link {
opacity: 0.8;
margin-left: 10px;
}
2023-01-12 21:46:56 +13:00
.popup {
display: flex;
align-items: center;
justify-content: center;
overflow: clip;
opacity: 0;
position: fixed;
width: 100vw;
height: 100vh;
bottom: 0;
right: 0;
visibility: hidden;
transition: all 0.1s ease-in-out;
z-index: 2;
2023-01-12 21:46:56 +13:00
}
/* fallback for firefox esr */
.popup {
background-color: #000000fd;
2023-01-12 21:46:56 +13:00
}
/* all other browsers */
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
.popup {
-webkit-backdrop-filter: blur(0.25rem) brightness(15%);
backdrop-filter: blur(0.25rem) brightness(15%);
}
2023-01-12 21:46:56 +13:00
}
.popup-inner {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
max-width: 600px;
max-height: 500px;
width: fit-content;
height: fit-content;
padding: 1rem;
background: var(--popup-background);
border: var(--popup-border);
border-radius: 5px;
transition: all 0.1s ease-in-out;
2023-01-12 21:46:56 +13:00
}
.popup-inner svg {
display: unset !important;
width: 35%;
stroke: none;
margin: 1rem;
2023-01-12 21:46:56 +13:00
}
.popup-inner h1 {
color: var(--popup-text);
margin: 1.5rem 1.5rem 1rem;
2023-01-12 21:46:56 +13:00
}
.popup-inner p {
color: var(--popup-text);
2023-01-12 21:46:56 +13:00
}
.popup-inner a {
border-radius: 5px;
padding: 2%;
width: 80%;
margin: 0.5rem;
cursor: pointer;
transition: all 0.1s ease-in-out;
2023-01-12 21:46:56 +13:00
}
#goback {
background: var(--popup-goback-background);
color: var(--popup-goback-text);
2023-01-12 21:46:56 +13:00
}
#goback:not(.selected):hover {
opacity: 0.8;
2021-01-06 15:16:32 +13:00
}
2023-01-12 21:46:56 +13:00
#toreddit {
background: var(--popup-toreddit-background);
color: var(--popup-toreddit-text);
border: 1px solid var(--popup-red);
2023-01-12 21:46:56 +13:00
}
#toreddit:not(.selected):hover {
background: var(--popup-toreddit-text);
color: var(--popup-toreddit-background);
2023-01-12 21:46:56 +13:00
}
.popup:target {
visibility: visible;
opacity: 1;
2023-01-12 21:46:56 +13:00
}
#reddit_url {
width: 80%;
color: var(--popup-reddit-url);
font-weight: 600;
line-break: anywhere;
margin-top: 1rem;
2023-01-12 21:46:56 +13:00
}
2021-02-01 10:22:11 +13:00
#code {
margin-left: 10px;
2021-02-01 10:22:11 +13:00
}
2020-10-26 09:25:59 +13:00
main {
display: flex;
justify-content: center;
max-width: 1000px;
padding: 10px 20px;
margin: 0 auto;
padding-bottom: 4em;
2020-10-26 09:25:59 +13:00
}
2021-01-11 10:08:36 +13:00
.wide main {
max-width: calc(100% - 40px);
2021-01-11 10:08:36 +13:00
}
.wide #column_one {
width: 100%;
max-width: 100%;
2021-01-11 10:08:36 +13:00
}
2021-01-02 19:21:43 +13:00
#column_one {
width: 100%;
border-radius: 5px;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
max-width: 750px;
overflow: inherit;
2021-01-02 19:21:43 +13:00
}
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
@media screen and (max-width: 800px) {
#column_one { max-width: unset; }
2021-01-02 19:21:43 +13:00
}
/* Body footer. */
body > footer {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
background: var(--post);
position: absolute;
bottom: 0;
}
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
.footer-buttons {
align-items: center;
border-radius: 0.25rem;
box-sizing: border-box;
color: var(--text);
cursor: pointer;
display: inline-flex;
opacity: 0.8;
}
2024-10-20 18:08:26 +13:00
.footer-button {
padding-left: 10px;
}
/* / Body footer. */
/* Footer in content block. */
main > * > footer {
display: flex;
justify-content: center;
margin-top: 20px;
2020-11-20 10:49:32 +13:00
}
main > * > footer > a {
margin-right: 5px;
2021-01-01 12:54:13 +13:00
}
/* / Footer in content block. */
2020-10-26 09:25:59 +13:00
button {
background: none;
border: none;
font-weight: bold;
cursor: pointer;
2020-10-26 09:25:59 +13:00
}
2020-12-29 15:42:46 +13:00
hr {
margin: 20px 0;
2020-12-29 15:42:46 +13:00
}
2020-10-26 09:25:59 +13:00
a {
color: inherit;
text-decoration: none;
2020-10-26 09:25:59 +13:00
}
a:hover {
text-decoration: underline;
2020-10-26 09:25:59 +13:00
}
2021-01-18 12:51:03 +13:00
svg {
stroke: var(--text);
2021-01-18 12:51:03 +13:00
}
2020-12-29 15:42:46 +13:00
img[src=""] {
display: none;
2020-10-26 09:25:59 +13:00
}
2020-12-24 19:16:04 +13:00
aside {
flex-grow: 1;
margin: 20px 20px 0 10px;
max-width: 350px;
2020-12-24 19:16:04 +13:00
}
.post,
.panel {
border: var(--panel-border);
2021-01-04 16:44:44 +13:00
}
2021-01-05 16:26:41 +13:00
.dot {
font-size: 12px;
opacity: 0.5;
2021-01-05 16:26:41 +13:00
}
2020-12-24 19:16:04 +13:00
/* User & Subreddit */
2020-10-26 09:25:59 +13:00
#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;
}
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
@media screen and (min-width: 800px) {
#subreddit, #sidebar { min-width: 350px; }
2020-10-26 09:25:59 +13:00
}
#user *,
#subreddit * {
text-align: center;
}
#user,
#sub_meta,
#sidebar_contents {
padding: 20px;
}
2021-01-02 19:21:43 +13:00
#sidebar,
#sidebar_contents {
margin-top: 10px;
}
#sidebar_label,
#subreddit_label {
padding: 10px;
text-align: left;
}
2020-12-29 15:42:46 +13:00
#user_icon,
#sub_icon {
width: 100px;
height: 100px;
border: 2px solid var(--accent);
border-radius: 100%;
padding: 10px;
margin: 10px;
2020-10-26 09:25:59 +13:00
}
#user_title,
#sub_title {
font-size: 20px;
font-weight: bold;
2020-11-23 13:29:05 +13:00
}
#user_description,
#sub_description {
margin: 0 15px;
text-align: left;
overflow-wrap: anywhere;
2020-10-26 09:25:59 +13:00
}
#user_name,
#user_description:not(:empty),
#user_icon,
#sub_name,
#sub_icon,
#sub_description:not(:empty) {
margin-bottom: 20px;
2021-01-04 16:44:44 +13:00
}
#user_details,
#sub_details,
#sub_actions,
#user_actions {
display: grid;
grid-template-columns: repeat(2, 1fr);
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
}
@media screen and (max-width: 279px) {
#sub_actions { display: unset; }
2020-10-26 09:25:59 +13:00
}
#user_details > label,
#sub_details > label {
color: var(--accent);
2020-10-26 09:25:59 +13:00
}
2021-01-30 21:33:38 +13:00
/* Subscriptions */
#sub_subscription,
#user_subscription,
#sub_filter,
#user_filter,
#sub_rss,
#user_rss {
margin-top: 20px;
}
#multisub {
margin-bottom: 20px;
}
.subscribe,
.unsubscribe,
.filter,
.unfilter {
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
2021-01-30 21:33:38 +13:00
}
.subscribe,
.filter {
color: var(--foreground);
background-color: var(--accent);
}
.unsubscribe,
.unfilter {
color: var(--text);
background-color: var(--highlighted);
2021-01-30 21:33:38 +13:00
}
2021-02-02 14:50:00 +13:00
/* Feeds */
2021-01-30 21:33:38 +13:00
2021-02-02 14:50:00 +13:00
#feeds {
position: relative;
border-radius: 5px;
border: var(--panel-border);
background-color: var(--outside);
align-items: center;
box-sizing: border-box;
font-size: 15px;
display: inline-block;
2021-01-30 23:21:54 +13:00
}
2021-02-02 14:50:00 +13:00
#feeds > summary {
padding: 8px 15px;
2021-01-30 23:21:54 +13:00
}
2021-02-02 14:50:00 +13:00
#feed_list {
position: absolute;
display: flex;
min-width: 100%;
max-height: 500px;
border-radius: 5px;
box-shadow: var(--shadow);
background: var(--outside);
flex-direction: column;
overflow: auto;
z-index: 1;
}
2021-02-02 14:50:00 +13:00
#feed_list > p {
font-size: 13px;
opacity: 0.5;
padding: 5px 20px;
margin-top: 10px;
2021-02-02 14:50:00 +13:00
}
#feed_list > a {
padding: 10px 20px;
transition: 0.2s background;
}
2021-02-02 14:50:00 +13:00
#feed_list > .selected {
background-color: var(--accent);
color: var(--foreground);
font-weight: 500;
}
2021-02-02 14:50:00 +13:00
#feed_list > a:not(.selected):hover {
background-color: var(--foreground);
2021-01-30 23:21:54 +13:00
}
2021-01-02 19:21:43 +13:00
/* Wiki Pages */
#wiki {
background: var(--foreground);
padding: 35px;
overflow-wrap: anywhere;
2021-01-02 19:21:43 +13:00
}
#top {
background: var(--highlighted);
width: 100%;
display: flex;
2021-01-02 19:21:43 +13:00
}
#top > * {
flex-grow: 1;
text-align: center;
height: 35px;
line-height: 35px;
2021-01-02 19:21:43 +13:00
}
#top > div {
border-bottom: 2px solid var(--text);
2021-01-02 19:21:43 +13:00
}
2021-01-01 12:54:13 +13:00
/* Sorting and Search */
2020-10-26 09:25:59 +13:00
select,
#search,
#sort_options,
#listing_options,
#inside,
#searchbox > *,
#sort_submit {
height: 38px;
2021-01-18 13:20:17 +13:00
}
.search_label {
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2021-01-01 12:54:13 +13:00
select {
background: var(--outside);
transition: 0.2s background;
cursor: pointer;
2021-01-01 12:54:13 +13:00
}
#searchbox > * { font-size: 15px; }
select,
#search {
border: none;
padding: 0 10px;
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border-radius: 5px 0px 0px 5px;
2021-01-01 12:54:13 +13:00
}
.commentQuery {
background: var(--post);
}
2021-01-01 12:54:13 +13:00
#searchbox {
grid-area: searchbox;
display: flex;
box-shadow: var(--shadow);
border-radius: 5px;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
margin-bottom: 0;
2021-01-01 12:54:13 +13:00
}
#searchbox > *,
#sort_submit {
background: var(--highlighted);
}
2021-01-01 12:54:13 +13:00
#search {
border-right: 2px var(--outside) solid;
flex-grow: 1;
2021-01-01 12:54:13 +13:00
}
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
@media screen and (max-width: 800px) {
#search { width: 0; }
#search.commentQuery { width: unset; }
2021-01-01 12:54:13 +13:00
}
#inside {
display: flex;
align-items: center;
border-right: 2px var(--outside) solid;
padding: 0 10px;
max-width: 50%;
2020-12-21 18:49:31 +13:00
}
#restrict_sr {
margin-right: 5px;
}
2021-01-01 12:54:13 +13:00
input[type="submit"],
button.submit {
border: 0;
border-radius: 0px 5px 5px 0px;
2021-01-01 12:54:13 +13:00
}
2021-01-18 13:03:14 +13:00
button.submit {
display: flex;
align-items: center;
2021-01-18 13:03:14 +13:00
}
select:hover {
background: var(--foreground);
}
2021-01-18 12:51:03 +13:00
input[type="submit"]:hover {
color: var(--accent);
}
button.submit:hover > svg {
stroke: var(--accent);
}
2021-01-01 12:54:13 +13:00
2020-12-30 14:11:47 +13:00
#timeframe {
margin: 0 2px;
border-radius: 0;
2021-01-04 16:44:44 +13:00
}
#sort_options + #timeframe:not(#search_sort > #timeframe) {
border-radius: 5px 0px 0px 5px;
2020-12-30 14:11:47 +13:00
}
#listing_options + #sort_select {
margin-left: 10px;
border-radius: 5px 0px 0px 5px;
}
2021-01-01 12:54:13 +13:00
#search_sort {
border-radius: 5px;
overflow: auto;
2021-01-01 12:54:13 +13:00
}
#search_sort > *,
.search_widget_divider_box > *,
.search_widget_divider_box #sort_options {
background: var(--highlighted);
font-size: 15px;
2021-01-01 12:54:13 +13:00
}
#search_sort > #search {
border: 0;
background: transparent;
2021-01-01 12:54:13 +13:00
}
#commentQueryForms {
display: flex;
justify-content: space-between;
}
2021-01-04 16:44:44 +13:00
#allCommentsLink {
color: var(--green);
2021-01-01 12:54:13 +13:00
}
#sort,
#search_sort {
display: flex;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
align-items: stretch;
margin-bottom: 20px;
}
#search_sort > .search_widget_divider_box {
width: 100%;
}
.search_widget_divider_box > * {
border-right: 2px var(--outside) solid;
margin: 0;
2021-01-01 12:54:13 +13:00
}
2020-12-29 15:42:46 +13:00
.search_widget_divider_box {
display: flex;
align-items: center;
max-width: 100%;
border: 0;
2021-01-01 12:54:13 +13:00
}
.search_widget_divider_box > #sort_options {
border-radius: 0;
box-shadow: none;
}
/* When screen size is smaller than 480px we switch to a design better suited for mobile devices */
@media screen and (max-width: 480px) {
.search_widget_divider_box > #search {
flex: 1;
min-width: unset;
border-right: 0;
border-bottom: 2px var(--outside) solid;
}
#search:focus {
outline: 0;
}
#search_sort > .search_widget_divider_box {
flex-wrap: wrap;
}
.search_widget_divider_box > * {
width: 100%;
}
.search_widget_divider_box > select:last-child {
border-right: 0;
}
#sort_submit {
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
height: auto;
border-left: 2px var(--outside) solid;
}
2020-10-26 09:25:59 +13:00
}
#sort_options,
#listing_options,
main > * > footer > a {
border-radius: 5px;
align-items: center;
box-shadow: var(--shadow);
background: var(--outside);
display: flex;
overflow-y: hidden;
2020-11-23 13:29:05 +13:00
}
#sort_options > a,
#listing_options > a,
main > * > footer > a {
color: var(--text);
padding: 10px 20px;
text-align: center;
cursor: pointer;
transition: 0.2s background;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
word-wrap: normal;
2020-10-26 09:25:59 +13:00
}
#sort_options > a.selected,
#listing_options > a.selected {
background: var(--accent);
color: var(--foreground);
font-weight: 500;
2020-11-23 13:29:05 +13:00
}
#sort_options > a:not(.selected):hover,
#listing_options > a:not(.selected):hover {
background: var(--foreground);
2020-10-26 09:25:59 +13:00
}
2021-01-15 07:22:50 +13:00
#search_subreddits {
border-radius: 5px;
background: var(--post);
box-shadow: var(--shadow);
transition: 0.2s background;
border: var(--panel-border);
margin-bottom: 20px;
2021-01-15 07:22:50 +13:00
}
.search_subreddit {
padding: 16px 20px;
display: flex;
}
.search_subreddit_left {
display: flex;
align-items: center;
}
.search_subreddit_left:not(:empty) {
margin-right: 10px;
}
.search_subreddit_left img {
width: 35px;
height: 35px;
border-radius: 100%;
}
.search_subreddit_right {
overflow: auto;
2021-01-15 07:22:50 +13:00
}
a.search_subreddit:hover {
text-decoration: none;
background: var(--foreground);
2021-01-15 07:22:50 +13:00
}
.search_subreddit:not(:last-child) {
border-bottom: 1px solid var(--highlighted);
2021-01-15 07:22:50 +13:00
}
.search_subreddit_header {
margin-bottom: 8px;
2021-01-15 07:22:50 +13:00
}
.search_subreddit_name {
font-weight: bold;
font-size: 16px;
2021-01-15 07:22:50 +13:00
}
.search_subreddit_description {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
opacity: 0.5;
2021-01-15 07:22:50 +13:00
}
2021-11-24 19:24:23 +13:00
#more_subreddits {
justify-content: center;
color: var(--accent);
font-weight: 600;
text-align: center;
2021-11-24 19:24:23 +13:00
}
2020-10-26 09:25:59 +13:00
/* Post */
2021-01-16 23:00:15 +13:00
.sep {
display: none;
2021-01-16 23:00:15 +13:00
}
.thread {
word-break: break-word;
}
.thread_nav {
color: var(--accent);
font-weight: bold;
margin: 10px 0;
}
2020-10-26 09:25:59 +13:00
.post {
border-radius: 5px;
background: var(--post);
box-shadow: var(--shadow);
display: grid;
transition: 0.2s background;
grid-template:
"post_score post_header post_thumbnail" auto
"post_score post_title post_thumbnail" 1fr
"post_score post_media post_thumbnail" auto
"post_score post_body post_thumbnail" auto
"post_score post_poll post_thumbnail" auto
"post_score post_notification post_thumbnail" auto
"post_score post_footer post_thumbnail" auto
/ minmax(40px, auto) minmax(0, 1fr) fit-content(min(20%, 152px));
2020-10-26 09:25:59 +13:00
}
.post:not(:last-child) {
margin-bottom: 10px;
}
2021-01-04 16:44:44 +13:00
2020-10-26 09:25:59 +13:00
.post:hover {
background: var(--foreground);
2020-10-26 09:25:59 +13:00
}
.post_score {
padding-top: 19px;
padding-left: 12px;
font-size: 13px;
font-weight: bold;
color: var(--accent);
grid-area: post_score;
text-align: center;
border-radius: 5px 0 0 5px;
transition: 0.2s background;
2020-10-26 09:25:59 +13:00
}
.post_score .label {
display: none;
}
.post_header {
margin: 15px 20px 5px 12px;
grid-area: post_header;
line-height: 25px;
}
2020-10-26 09:25:59 +13:00
.post_subreddit {
font-weight: bold;
2020-10-26 09:25:59 +13:00
}
2020-12-08 08:20:24 +13:00
.post_title {
font-size: 16px;
font-weight: 500;
line-height: 1.5;
overflow-wrap: anywhere;
margin: 5px 15px 5px 12px;
grid-area: post_title;
2020-12-08 08:20:24 +13:00
}
.post:not(.highlighted) .post_title a:visited {
color: var(--visited);
}
.post_notification {
grid-area: post_notification;
margin: 5px 15px;
text-align: center;
font-size: 12px;
}
.post_notification a {
text-decoration: underline;
}
.post_flair {
background: var(--accent);
color: var(--background);
padding: 4px;
margin-right: 5px;
border-radius: 5px;
font-size: 12px;
font-weight: bold;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
vertical-align: text-top;
line-height: 1.6;
2021-01-05 16:26:41 +13:00
}
.awards {
background-color: var(--foreground);
border-radius: 5px;
margin: auto;
padding: 5px;
}
.awards .award {
margin-right: 2px;
}
.award {
position: relative;
display: inline-block;
}
.award > img {
vertical-align: middle;
}
.author_flair:empty,
.post_flair:empty {
display: none;
2021-02-22 17:28:04 +13:00
}
.emoji {
width: 1.25em;
height: 1.25em;
display: inline-block;
background-size: contain;
background-position: 50% 50%;
background-repeat: no-repeat;
vertical-align: middle;
2020-10-26 09:25:59 +13:00
}
.nsfw {
color: var(--nsfw);
margin-left: 5px;
border: 1px solid var(--nsfw);
padding: 3px;
font-size: 12px;
border-radius: 5px;
font-weight: bold;
2020-10-26 09:25:59 +13:00
}
2024-06-22 22:38:13 +12:00
.spoiler {
color: var(--spoiler);
margin-left: 5px;
border: 1px solid var(--spoiler);
padding: 3px;
font-size: 12px;
border-radius: 5px;
}
.post_media_content,
.post .__NoScript_PlaceHolder__,
.gallery {
max-width: calc(100% - 40px);
grid-area: post_media;
margin: 15px auto 5px auto;
width: auto;
height: auto;
overflow: hidden;
2024-06-22 22:38:13 +12:00
}
.post_media_video {
min-width: 100px;
max-width: 100px;
width: auto;
height: auto;
max-width: 100%;
max-height: 512px;
display: block;
margin: auto;
}
.post_media_image.short svg,
.post_media_image.short img {
width: auto;
height: auto;
max-width: 100%;
max-height: 512px;
display: block;
margin: auto;
}
.post_blurred .post_media_content * {
filter: blur(1.5rem);
}
.post_blurred .post_body {
filter: blur(0.25rem);
}
.post_blurred .post_thumbnail * {
filter: blur(0.3rem);
}
.post_blurred .post_media_content:hover *,
.post_blurred .post_media_content:hover ~ .post_body,
.post_blurred .post_media_content:has(~ .post_body:hover) *,
.post_blurred .post_body:hover,
.post_blurred .post_thumbnail:hover * {
filter: none;
}
.post_media_image svg {
max-width: 100%;
height: auto;
align-self: center;
background-color: var(--highlighted);
background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 100 100' width='100' height='100' xmlns='http://www.w3.org/2000/svg'><path d='M15,20 h70 a10,10 0 0 1 10,10 v45 a10,10 0 0 1 -10,10 h-70 a10,10 0 0 1 -10,-10 v-45 a10,10 0 0 1 10,-10 z' fill='none' stroke='rgba(128,128,128,0.5)' stroke-width='3' /><path d='M15,75 l25,-35 l15,20 l10,-10 l20, 25 z' stroke='none' fill='rgba(128,128,128,0.5)' /><circle cx='75' cy='35' r='7' stroke='none' fill='rgba(128,128,128,0.5)'/></svg>");
background-position: 50%;
background-repeat: no-repeat;
vertical-align: bottom;
2021-01-21 12:12:54 +13:00
}
.post_media_image img {
max-width: 100%;
vertical-align: bottom;
2021-02-02 08:27:56 +13:00
}
2021-02-07 09:05:11 +13:00
.gallery img {
max-width: 100%;
vertical-align: bottom;
2021-02-07 09:05:11 +13:00
}
.gallery .outbound_url {
color: var(--accent);
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
display: block;
padding-top: 5px;
2021-02-07 09:05:11 +13:00
}
#post_url {
color: var(--accent);
margin: 5px 12px;
grid-area: post_media;
overflow-wrap: anywhere;
2020-10-26 09:25:59 +13:00
}
.post_body {
opacity: 0.9;
font-weight: normal;
padding: 5px 15px 5px 12px;
grid-area: post_body;
width: calc(100% - 30px);
overflow-wrap: anywhere;
2020-10-26 09:25:59 +13:00
}
2024-04-08 04:07:53 +12:00
.post_body img {
max-width: 100%;
display: block;
margin-left: auto;
margin-right: auto;
2024-04-08 04:07:53 +12:00
}
2023-03-24 01:21:09 +13:00
.post_poll {
grid-area: post_poll;
padding: 5px 15px 5px 12px;
2023-03-24 01:21:09 +13:00
}
.poll_option {
position: relative;
margin-right: 15px;
margin-top: 14px;
z-index: 0;
display: flex;
align-items: center;
2023-03-24 01:21:09 +13:00
}
.poll_chart {
padding: 14px 0;
background-color: var(--accent);
opacity: 0.2;
border-radius: 5px;
z-index: -1;
position: absolute;
2023-03-24 01:21:09 +13:00
}
.poll_option span {
margin-left: 8px;
color: var(--text);
2023-03-24 01:21:09 +13:00
}
.poll_option span:nth-of-type(1) {
min-width: 10%;
font-weight: bold;
2023-03-24 01:21:09 +13:00
}
.most_voted {
opacity: 0.45;
width: 100%;
2023-03-24 01:21:09 +13:00
}
.highlighted .post_poll {
padding: 15px 0 5px;
}
/* Used only for text post preview */
.post_preview {
-webkit-mask-image: linear-gradient(180deg, #000 60%, transparent);
mask-image: linear-gradient(180deg, #000 60%, transparent);
opacity: 0.8;
max-height: 250px;
overflow: hidden;
}
.post_footer {
display: flex;
justify-content: space-between;
opacity: 0.5;
font-size: 14px;
grid-area: post_footer;
margin: 5px 20px 15px 12px;
}
.post_comments {
font-weight: bold;
}
#comment_count {
font-weight: 500;
opacity: 0.9;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
align-self: center;
}
#comment_count > #sorted_by {
font-weight: normal;
opacity: 0.7;
margin-right: 7px;
}
#post_links {
display: flex;
list-style: none;
padding: 0;
font-weight: bold;
}
#post_links > li {
margin-right: 15px;
2020-12-12 17:36:06 +13:00
}
.desktop_item {
display: auto;
2022-11-10 05:16:51 +13:00
}
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
@media screen and (min-width: 508px) {
.mobile_item {
display: none;
}
2022-11-10 05:16:51 +13:00
}
2020-10-26 09:25:59 +13:00
.post_thumbnail {
border-radius: 5px;
border: var(--panel-border);
display: grid;
overflow: hidden;
background-color: var(--background);
grid-area: post_thumbnail;
margin: 5px;
2021-01-12 11:08:12 +13:00
}
.post_thumbnail div {
grid-area: 1 / 1 / 2 / 2;
object-fit: cover;
align-self: center;
justify-self: center;
overflow: hidden;
}
.post_thumbnail div svg {
width: 100%;
height: auto;
}
.post_thumbnail span {
z-index: 0;
2021-01-12 11:08:12 +13:00
}
.post_thumbnail.no_thumbnail {
background-color: var(--highlighted);
}
.post_thumbnail.no_thumbnail svg {
grid-area: 1 / 1 / 2 / 2;
align-self: center;
justify-self: center;
max-width: 100%;
}
2021-01-12 11:08:12 +13:00
.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;
2020-10-26 09:25:59 +13:00
}
2021-02-02 09:02:38 +13:00
.post_thumbnail img {
max-width: 100%;
2021-02-02 09:02:38 +13:00
}
2021-01-04 16:44:44 +13:00
.stickied {
--accent: var(--green);
border: 1px solid var(--green);
2021-01-04 16:44:44 +13:00
}
2020-10-26 09:25:59 +13:00
/* Comment */
.comment {
margin: 10px 0;
border-radius: 5px;
display: flex;
2020-10-26 09:25:59 +13:00
}
2024-04-08 04:07:53 +12:00
.comment img {
max-width: 50%;
height: auto;
2024-04-08 04:07:53 +12:00
}
@media screen and (max-width: 500px) {
.comment img {
max-width: 80%;
height: auto;
}
2024-04-08 04:07:53 +12:00
}
.comment figure {
margin: 0;
}
.comment_left,
.comment_right {
display: flex;
flex-direction: column;
2020-10-26 09:25:59 +13:00
}
.comment_left {
text-align: center;
min-width: 50px;
padding: 5px 0;
align-items: center;
2020-10-26 09:25:59 +13:00
}
.comment_title {
font-size: 20px;
}
.comment_link {
text-decoration: underline;
}
.comment_author {
opacity: 0.9;
2020-12-21 08:29:23 +13:00
}
.author_flair {
background: var(--highlighted);
color: var(--text);
padding: 5px;
margin-right: 5px;
border-radius: 5px;
font-size: 12px;
font-weight: bold;
2020-10-26 09:25:59 +13:00
}
.comment_score {
color: var(--accent);
background: var(--foreground);
min-width: 40px;
border-radius: 5px;
padding: 10px 0;
font-size: 14px;
font-weight: 600;
2020-10-26 09:25:59 +13:00
}
.comment_right {
word-wrap: anywhere;
padding: 10px 0 10px 5px;
flex-grow: 1;
flex-shrink: 1;
min-width: 0;
2020-10-26 09:25:59 +13:00
}
.comment:has([id]) .comment_data > * {
margin-right: 5px;
2020-10-26 09:25:59 +13:00
}
.comment:not([id]) .comment_data {
display: inline-flex;
max-width: 100%;
}
.comment:not([id]) .comment_data > * {
flex: 0 0 auto;
}
.comment:not([id]) .comment_data > .comment_link {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
word-break: break-all;
overflow: hidden;
flex: 0 1 auto;
}
2020-10-26 09:25:59 +13:00
.comment_image {
max-width: 500px;
align-self: center;
2020-10-26 09:25:59 +13:00
}
.comment_body {
opacity: 0.9;
font-weight: normal;
padding: 5px 5px;
margin: 5px 0;
overflow: auto;
}
.comment_body.highlighted,
.comment_body_filtered.highlighted {
background: var(--highlighted);
2020-10-26 09:25:59 +13:00
}
.comment_body > p:not(:first-child) {
margin-top: 20px;
2020-10-26 09:25:59 +13:00
}
.comment_body a {
text-decoration: underline;
color: var(--accent);
2020-10-26 15:55:00 +13:00
}
.comment_body_filtered {
opacity: 0.4;
font-weight: normal;
font-style: italic;
padding: 5px 5px;
margin: 5px 0;
overflow: auto;
}
2020-12-22 14:17:40 +13:00
.deeper_replies {
color: var(--accent);
margin-left: 15px;
2020-12-22 14:17:40 +13:00
}
2020-12-20 16:54:46 +13:00
::marker {
color: var(--accent);
2020-12-20 16:54:46 +13:00
}
2020-12-21 18:49:31 +13:00
.replies > .comment {
margin-left: -20px;
padding: 5px;
2020-12-20 16:54:46 +13:00
}
.created {
opacity: 0.5;
2020-12-20 16:54:46 +13:00
}
2021-02-15 11:53:09 +13:00
.edited {
opacity: 0.4;
font-style: italic;
font-size: 14px;
2021-02-15 11:53:09 +13:00
}
2020-12-20 16:54:46 +13:00
.line {
width: 2px;
height: 100%;
background: var(--foreground);
2020-12-20 16:54:46 +13:00
}
summary.comment_data {
cursor: pointer;
}
.user_comment_data_divider {
display: flex;
align-items: center;
}
.user_comment_data_divider .dot {
display: none;
}
.moderator,
.admin {
opacity: 1;
}
.op,
.moderator,
.admin {
font-weight: bold;
}
2021-01-17 12:02:24 +13:00
.op {
color: var(--accent);
}
.moderator {
color: var(--green);
}
.admin {
color: var(--admin);
}
2021-01-17 12:02:24 +13:00
2021-01-06 15:04:49 +13:00
/* Layouts */
2024-07-07 18:35:53 +12:00
.waterfall #posts > .post {
2024-06-30 00:04:46 +12:00
break-inside: avoid-column;
}
2024-07-07 18:35:53 +12:00
.waterfall #posts {
2024-06-30 00:04:46 +12:00
column-width: 500px;
column-gap: 10px;
}
2024-06-05 10:31:41 +12:00
.old .post {
border-radius: 5px;
background: var(--post);
box-shadow: var(--shadow);
display: grid;
transition: 0.2s background;
grid-template: "post_score post_thumbnail post_header" auto
"post_score post_thumbnail post_title" 1fr
"post_score post_thumbnail post_media" auto
"post_score post_thumbnail post_body" auto
"post_score post_thumbnail post_poll" auto
"post_score post_thumbnail post_notification" auto
"post_score post_thumbnail post_footer" auto
/ 4.5em minmax(0, 140px) fit-content(min(90%, 90%))
}
/* .old .post_thumbnail {
margin-left: 20px;
} */
.old .post_score {
background-color: #ff93da08;
border-radius: 8px;
align-self: center;
width: 53px;
padding-left: 5px; /* REMINDER:pls compact testing only */
border-top-width: 0px;
border-top-style: solid;
padding-top: 5px;
padding-bottom: 5px;
padding-right: 5px;
margin-left: 5px;
margin-right: 5px;
}
.old .post_media_content {
max-width: calc(65% - 40px);
}
.old .highlighted > .post_score {
background-color: unset;
align-self: unset;
margin-top: 20px;
margin-left: 20px;
}
.old .post_score .label {
display: block;
text-align: center;
text-anchor: middle;
color: gray;
}
.old .post_preview {
max-height: 72px;
}
.old #column_one {
width: 100%;
max-width: 100%;
}
.old #commentQueryForms {
display: flex;
justify-content: center;
justify-self: start;
}
.old .commentQuery {
margin-left: 20px;
}
.old main {
max-width: 100% !important;
}
2021-01-11 10:08:36 +13:00
.compact .post:not(.highlighted) {
border-radius: 0;
margin: 0;
padding: 0;
2021-01-06 15:04:49 +13:00
}
2021-01-11 10:08:36 +13:00
.compact .post:first-of-type {
border-radius: 5px 5px 0 0;
overflow: hidden;
2021-01-06 15:16:32 +13:00
}
2021-01-11 10:08:36 +13:00
.compact .post:last-of-type {
border-radius: 0 0 5px 5px;
overflow: hidden;
2021-01-06 15:16:32 +13:00
}
.compact .post.highlighted {
border-radius: 5px;
}
.compact .post:not(:last-of-type):not(.highlighted):not(.stickied) {
border-bottom: 0;
}
2021-01-06 15:04:49 +13:00
.compact .post_score {
padding-top: 15px;
border-radius: 0;
2021-01-06 15:04:49 +13:00
}
2021-01-11 10:08:36 +13:00
.compact .post_header {
margin: 11px 15px 2.5px 12px;
font-size: 14px;
2021-01-06 15:04:49 +13:00
}
.compact .post_title,
.compact #post_url,
.compact .post_body {
margin: 2.5px 15px;
2021-01-06 15:04:49 +13:00
}
.compact .post_preview {
display: none;
}
.compact .post_media {
max-width: calc(100% - 30px);
margin: 2.5px auto;
}
.compact .post_footer {
margin: 5px 15px 15px 15px;
2021-01-06 15:04:49 +13:00
}
2021-01-11 10:08:36 +13:00
.compact .post_thumbnail {
width: 75px;
height: 75px;
2021-01-06 15:04:49 +13:00
}
2021-01-11 10:08:36 +13:00
.compact footer {
margin-top: 20px;
2021-01-06 15:04:49 +13:00
}
/* Settings */
#settings {
max-width: 450px;
2021-01-06 15:04:49 +13:00
}
2021-01-09 17:55:40 +13:00
#settings_note {
font-size: 14px;
margin-top: 10px;
opacity: 0.75;
background: var(--post);
border-radius: 5px;
padding: 10px 5px 10px 10px;
margin-top: 10px;
margin-bottom: 20px;
2021-01-09 17:55:40 +13:00
}
#settings_note a {
color: var(--accent);
}
.prefs {
padding: 10px 20px 20px;
background: var(--post);
border-radius: 5px;
margin-bottom: 20px;
2021-01-06 15:04:49 +13:00
}
.prefs fieldset {
border: 0;
padding: 10px 0;
margin: 0 0 5px;
2021-01-08 05:38:05 +13:00
}
2021-12-28 10:43:44 +13:00
.prefs legend {
font-weight: 500;
border-bottom: 1px solid var(--highlighted);
font-size: 18px;
padding-bottom: 10px;
margin-bottom: 7px;
width: 100%;
float: left; /* places the legend inside the (invisible) border, instead of vertically centered on top border*/
2021-12-28 10:43:44 +13:00
}
.prefs-group {
display: flex;
width: 100%;
height: 35px;
align-items: center;
margin-top: 7px;
}
.prefs-group > *:not(:last-child) {
margin-right: 1ch;
}
.prefs-group > *:last-child {
margin-left: auto;
}
.prefs select {
2021-01-06 15:04:49 +13:00
border-radius: 5px;
2021-01-08 05:38:05 +13:00
box-shadow: var(--shadow);
2021-01-06 15:04:49 +13:00
margin-left: 20px;
2021-01-11 15:15:34 +13:00
background: var(--foreground);
2024-06-06 04:43:43 +12:00
width: 30%;
2021-01-06 15:04:49 +13:00
}
2021-01-31 17:42:12 +13:00
aside.prefs {
margin-top: 20px;
2021-01-31 17:42:12 +13:00
}
2021-01-06 15:04:49 +13:00
#save {
background: var(--highlighted);
padding: 10px 15px;
border-radius: 5px;
margin-top: 5px;
width: 100%;
2021-01-06 15:04:49 +13:00
}
input[type="submit"] {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
}
2024-10-20 19:20:01 +13:00
#settings_subs form {
margin-left: auto;
}
#settings_subs div {
display: flex;
height: 45px;
align-items: center;
}
#settings_subs a {
color: var(--accent);
}
2024-10-20 19:20:01 +13:00
#settings_filters form {
margin-left: auto;
}
#settings_filters div {
display: flex;
height: 45px;
align-items: center;
}
#settings_filters a {
color: var(--accent);
}
2021-11-24 19:43:25 +13:00
.helper {
padding: 10px;
width: 250px;
background: var(--highlighted) !important;
2021-11-24 19:43:25 +13:00
}
/* Info page */
.unset {
color: lightslategrey;
}
2021-11-24 19:43:25 +13:00
2020-12-29 15:42:46 +13:00
/* Markdown */
2021-02-25 06:31:58 +13:00
.md {
width: 100%;
2021-02-25 06:31:58 +13:00
}
.md > p:not(:first-child) {
margin-top: 20px;
2020-12-29 15:42:46 +13:00
}
.md > figure:first-of-type {
margin-top: 5px;
margin-bottom: 0px;
}
.md > figure:not(:first-of-type) {
margin-top: 10px;
}
.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;
}
2020-12-29 15:42:46 +13:00
.md blockquote {
padding: 10px;
margin: 4px 0 4px 5px;
border-left: 4px solid var(--highlighted);
background: var(--post);
2020-12-29 15:42:46 +13:00
}
.md a,
.md a * {
color: var(--accent);
2020-12-29 15:42:46 +13:00
}
.md .md-spoiler-text,
.md-spoiler-text a {
background: var(--highlighted);
color: transparent;
}
.md-spoiler-text:hover {
background: var(--foreground);
color: var(--text);
}
.md-spoiler-text:hover a {
background: var(--foreground);
color: var(--accent);
}
.md li {
margin: 10px 0;
}
.toc_child {
list-style: none;
}
2020-12-20 19:25:00 +13:00
2020-12-29 15:42:46 +13:00
.md pre {
background: var(--outside);
padding: 20px;
margin-top: 10px;
border-radius: 5px;
box-shadow: var(--shadow);
overflow: auto;
2020-12-20 19:25:00 +13:00
}
2021-01-04 16:44:44 +13:00
.md table {
margin: 5px;
overflow-x: auto;
display: block;
max-width: fit-content;
2021-01-04 16:44:44 +13:00
}
2020-12-29 15:42:46 +13:00
.md code {
font-family: monospace, sans-serif;
font-size: 14px;
2020-12-20 19:25:00 +13:00
}
.md code:not(.md pre > code) {
background: var(--highlighted);
}
2020-12-29 15:42:46 +13:00
2020-10-26 15:55:00 +13:00
/* Tables */
table,
td,
th {
border: var(--panel-border);
}
2021-01-19 18:32:25 +13:00
2020-10-26 15:55:00 +13:00
table {
border-width: 3px;
border-spacing: 0;
2020-10-26 15:55:00 +13:00
}
td,
th {
padding: 10px;
2020-12-06 17:54:43 +13:00
}
2021-02-22 07:11:17 +13:00
/* Errors */
#error {
text-align: center;
}
#error h1 {
margin-bottom: 10px;
}
#error h3 {
opacity: 0.85;
}
#error a {
color: var(--accent);
}
2021-02-22 07:11:17 +13:00
2022-11-10 05:16:51 +13:00
/* Messages */
#duplicates_msg h3 {
display: inline-block;
margin-top: 10px;
margin-bottom: 10px;
text-align: center;
width: 100%;
2022-11-10 05:16:51 +13:00
}
/* Warnings */
.listing_warn {
display: inline-block;
margin: 10px;
text-align: center;
width: 100%;
2022-11-10 05:16:51 +13:00
}
.listing_warn a {
color: var(--accent);
2022-11-10 05:16:51 +13:00
}
/* NSFW Landing Page */
#nsfw_landing {
display: inline-block;
text-align: center;
width: 100%;
}
#nsfw_landing h1 {
display: inline-block;
margin-bottom: 20px;
text-align: center;
width: 100%;
}
#nsfw_landing p {
display: inline-block;
text-align: center;
width: 100%;
}
#nsfw_landing a {
color: var(--accent);
}
.nsfw-tag {
color: var(--nsfw);
border: 2px solid var(--nsfw);
padding: 3px;
border-radius: 5px;
font-weight: bold;
}
2020-12-06 17:54:43 +13:00
/* Mobile */
2020-12-24 19:16:04 +13:00
@media screen and (max-width: 800px) {
main {
flex-direction: column-reverse;
padding: 10px;
margin: 0 0 10px 0;
max-width: 100%;
}
nav {
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
display: grid;
grid-template-areas: "logo links" "searchbox searchbox";
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
padding: 5px 10px 0;
width: calc(100% - 20px);
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
margin: 0;
}
nav #links {
margin-left: auto;
}
nav #links span {
display: none;
}
nav #links svg {
display: block;
}
#subscriptions {
position: unset;
}
#sub_list {
left: 10px;
right: 10px;
min-width: auto;
}
#settings {
max-width: unset;
}
aside,
#subreddit,
#user {
margin: 0;
max-width: 100%;
}
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
#user { margin: 0 0 20px; }
body.fixed_navbar {
min-height: calc(100vh - 75px);
padding-top: 45px;
#subreddit { margin: 49px 0 0; }
#user { margin: 49px 0 20px 0; }
#settings { margin-top: 48px; }
div.post.highlighted { margin-top: 49px; }
main:not(:has(div + aside)) { #sort { margin-top: 49px; } }
#column_one:has(div.post.highlighted + #commentQueryForms) { #sort { margin-top: 0 } }
}
#sidebar {
margin: 20px 0;
}
#logo,
#links {
margin-bottom: 5px;
}
#searchbox {
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
width: calc(100vw - 20px);
margin-bottom: 10px;
}
}
2021-03-11 12:10:59 +13:00
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
@media screen and (max-width: 580px) {
#commentQueryForms {
display: initial;
justify-content: initial;
}
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
}
@media screen and (max-width: 507px) {
#version {
display: none;
}
.post {
grid-template:
"post_header post_header post_thumbnail" auto
"post_title post_title post_thumbnail" 1fr
"post_media post_media post_thumbnail" auto
"post_body post_body post_thumbnail" auto
"post_poll post_poll post_thumbnail" auto
"post_notification post_notification post_thumbnail" auto
"post_score post_footer post_thumbnail" auto
/ auto 1fr fit-content(min(20%, 152px));
}
.post_score {
margin: 5px 0px 20px 15px;
padding: 0;
}
.post_poll {
padding: 5px 15px 10px 12px;
}
.compact .post_score {
padding: 0;
}
.post_score::before {
content: "↑";
}
.post_header {
font-size: 14px;
}
.post_footer {
margin-left: 15px;
}
.replies > .comment {
margin-left: -12px;
padding: 5px 0;
}
.comment_left {
min-width: auto;
padding: 5px 0px;
align-items: initial;
margin-top: -5px;
}
.line {
margin-left: 5px;
}
/* .thread { margin-left: -5px; } */
.comment_right {
padding: 5px 0 10px 2px;
}
.comment_author {
margin-left: 12px;
}
.comment_data {
margin-left: 12px;
}
.user-comment .comment_data {
flex-direction: column;
flex-wrap: wrap;
row-gap: 5px;
}
.comment_data::marker {
font-size: 25px;
}
.user-comment .comment_data > .comment_link {
order: 2;
}
.user_comment_data_divider {
order: 1;
}
.user_comment_data_divider .dot {
display: unset;
margin-left: 5px;
}
.created-in {
display: none;
}
.comment_score {
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
min-width: 34px;
height: 20px;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
font-size: 12px;
padding: 7px 0px;
margin-right: -5px;
Fix a whole bunch of styling bugs (#193) * Fix a whole bunch of mobile styling bugs * Make searchbox scroll fix only apply in mobile mode to prevent bug * Remove the min-width requirement for the main column This was meant to be removed already, this is what fixes posts having an odd right side gap before swapping to the mobile layout * Make margins consistent between fixed and unfixed navbar settings * Remove some empty space from deleted option * Make mobile layout post width fix only apply in mobile mode to prevent bug * Make sure some options only get applied to the elements that need them, also fix the margins on the settings page * Move search comments option before it starts touching the sort options and wrapping the x amount of comments text * Trigger the even further compacted layout a little earlier, right before text begins wrapping in odd ways * In the extra small mobile layout make give up/downvote numbers enough room so they aren't clipping out of their box * Fix https://github.com/redlib-org/redlib/issues/172 * Properly center search box instead of having it slightly skewed * Undo word wrapping since it breaks the sorting options and the only other viable setting has an absolute conniption on Chrome for some reason * Readd word wrapping and just force it to normal for the sorting section * Make post flair line up with title * Make post flair position consistent * Make footer text properly horizontally centered in mobile mode and fix slight vertical misalignment issues * Make feeds button appear in settings menu to keep navbar looking consistent * Fix extra navbar padding on search page * Reduce gap between navbar and content in mobile mode * Reduce gap between navbar and content in mobile mode
2024-09-06 03:59:21 +12:00
align-content: center;
}
#post_links > li {
margin-right: 10px;
}
.post_footer > p > span#upvoted {
display: none;
}
.desktop_item {
display: none;
}
.mobile_item {
display: auto;
}
.popup {
width: auto;
}
.popup-inner {
max-width: 80%;
}
}
2024-06-23 19:57:23 +12:00
.video-options {
border: 2px var(--outside) solid;
margin-top: 8px;
float: right;
2024-06-23 19:57:23 +12:00
border-radius: 5px;
height: 35px;
height: 35px;
margin: 2px;
box-sizing: border-box;
}
2024-06-23 19:57:23 +12:00
.video-options option {
background-color: var(--background);
color: var(--text);
}
2024-06-23 19:57:23 +12:00
.video-options option:hover {
background-color: var(--accent);
color: var(--text);
}
2024-06-17 22:29:52 +12:00
.mascot {
position: fixed;
right: 1em;
bottom: 1em;
pointer-events: none;
opacity: 0.5;
z-index: 1;
}
.mascot > img {
max-width: 20em;
2024-06-23 20:41:27 +12:00
}
2024-06-23 19:57:23 +12:00
.download {
padding-left: 8px;
padding-right: 8px;
font-size: 20px;
font-weight: 900;
color: var(--accent);
background-color: var(--outside);
}
.download:hover {
background-color: var(--foreground);
/*color: var(--);*/
}
.download:active {
background-color: var(--background);
2024-06-17 22:29:52 +12:00
}