Rejigger theme pretty heavily. I apologize for this change not being neatly split apart in any way.

This commit is contained in:
Ben Rog-Wilhelm 2022-08-21 06:16:39 -05:00
parent f4a8b78d56
commit 280e7275a6
6 changed files with 490 additions and 526 deletions

View file

@ -6,12 +6,16 @@
--primary-dark1: #165476; --primary-dark1: #165476;
--primary-dark2: #134662; --primary-dark2: #134662;
--primary-dark3: #1d323d;
--primary-light1: #2280B3; --primary-light1: #2280B3;
--primary-light2: #2F9CD7; --primary-light2: #2F9CD7;
--dark: #c7c7c7; --primary-muted: #95a9b4;
--dark: #686868;
--secondary: #c7c7c7; --secondary: #c7c7c7;
--tertiary: #e0e0e0;
--gray: #c7c7c7; --gray: #c7c7c7;
--gray-300: #c7c7c7; --gray-300: #c7c7c7;
--gray-400: #cfcfcf; --gray-400: #cfcfcf;
@ -21,12 +25,13 @@
--gray-800: #ffffff; --gray-800: #ffffff;
--gray-900: #ffffff; --gray-900: #ffffff;
--light: #ffffff; --light: #ffffff;
--muted: #1e1e1e; --muted: #9e9d9d;
--gray-100: #1e1e1e; --gray-100: #1e1e1e;
--gray-200: #1e1e1e; --gray-200: #1e1e1e;
--white: #1e1e1e; --white: #1e1e1e;
--black: #303030; --black: #303030;
--background: #ffffff; --background: #ffffff;
--background-odd: #fafafa;
} }
* { * {
@ -166,7 +171,8 @@ div.deleted.banned {
#search .post-info, #search .post-info,
#userpage .post-info, #userpage .post-info,
#frontpage .post-info { #frontpage .post-info {
display:flex; display: flex;
flex-wrap: wrap;
} }
#search .post-actions, #search .post-actions,
#userpage .post-actions, #userpage .post-actions,

View file

@ -519,29 +519,29 @@ textarea.form-control {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-bottom: 0; margin-bottom: 0;
} }
.form-inline .form-group { .form-inline .form-group {
display: flex; display: flex;
flex: 0 0 auto; flex: 0 0 auto;
flex-flow: row wrap; flex-flow: row wrap;
align-items: center; align-items: center;
margin-bottom: 0; margin-bottom: 0;
} }
.form-inline .form-control { .form-inline .form-control {
display: inline-block; display: inline-block;
width: auto; width: auto;
vertical-align: middle; vertical-align: middle;
} }
.form-inline .input-group { .form-inline .input-group {
width: auto; width: auto;
} }
.form-inline .custom-control { .form-inline .custom-control {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.form-inline .custom-control-label { .form-inline .custom-control-label {
margin-bottom: 0; margin-bottom: 0;
} }
} }
.btn { .btn {
display: inline-block; display: inline-block;
@ -797,7 +797,7 @@ input[type=submit].btn-block, input[type=reset].btn-block, input[type=button].bt
.dropdown-menu-lg-left { .dropdown-menu-lg-left {
right: auto; right: auto;
left: 0; left: 0;
} }
} }
.dropup .dropdown-menu { .dropup .dropdown-menu {
top: auto; top: auto;
@ -1142,65 +1142,65 @@ input[type=submit].btn-block, input[type=reset].btn-block, input[type=button].bt
.navbar-expand-md > .container, .navbar-expand-md > .container-fluid { .navbar-expand-md > .container, .navbar-expand-md > .container-fluid {
padding-right: 0; padding-right: 0;
padding-left: 0; padding-left: 0;
} }
} }
@media (min-width: 768px) { @media (min-width: 768px) {
.navbar-expand-md { .navbar-expand-md {
flex-flow: row nowrap; flex-flow: row nowrap;
justify-content: flex-start; justify-content: flex-start;
} }
.navbar-expand-md .navbar-nav { .navbar-expand-md .navbar-nav {
flex-direction: row; flex-direction: row;
} }
.navbar-expand-md .navbar-nav .dropdown-menu { .navbar-expand-md .navbar-nav .dropdown-menu {
position: absolute; position: absolute;
} }
.navbar-expand-md .navbar-nav .nav-link { .navbar-expand-md .navbar-nav .nav-link {
padding-right: 0.5rem; padding-right: 0.5rem;
padding-left: 0.5rem; padding-left: 0.5rem;
} }
.navbar-expand-md > .container, .navbar-expand-md > .container-fluid { .navbar-expand-md > .container, .navbar-expand-md > .container-fluid {
flex-wrap: nowrap; flex-wrap: nowrap;
} }
.navbar-expand-md .navbar-collapse { .navbar-expand-md .navbar-collapse {
display: flex !important; display: flex !important;
flex-basis: auto; flex-basis: auto;
} }
.navbar-expand-md .navbar-toggler { .navbar-expand-md .navbar-toggler {
display: none; display: none;
} }
} }
@media (max-width: 991.98px) { @media (max-width: 991.98px) {
.navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid {
padding-right: 0; padding-right: 0;
padding-left: 0; padding-left: 0;
} }
} }
@media (min-width: 992px) { @media (min-width: 992px) {
.navbar-expand-lg { .navbar-expand-lg {
flex-flow: row nowrap; flex-flow: row nowrap;
justify-content: flex-start; justify-content: flex-start;
} }
.navbar-expand-lg .navbar-nav { .navbar-expand-lg .navbar-nav {
flex-direction: row; flex-direction: row;
} }
.navbar-expand-lg .navbar-nav .dropdown-menu { .navbar-expand-lg .navbar-nav .dropdown-menu {
position: absolute; position: absolute;
} }
.navbar-expand-lg .navbar-nav .nav-link { .navbar-expand-lg .navbar-nav .nav-link {
padding-right: 0.5rem; padding-right: 0.5rem;
padding-left: 0.5rem; padding-left: 0.5rem;
} }
.navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid { .navbar-expand-lg > .container, .navbar-expand-lg > .container-fluid {
flex-wrap: nowrap; flex-wrap: nowrap;
} }
.navbar-expand-lg .navbar-collapse { .navbar-expand-lg .navbar-collapse {
display: flex !important; display: flex !important;
flex-basis: auto; flex-basis: auto;
} }
.navbar-expand-lg .navbar-toggler { .navbar-expand-lg .navbar-toggler {
display: none; display: none;
} }
} }
.navbar-light .navbar-brand { .navbar-light .navbar-brand {
color: rgba(0, 0, 0, 0.9); color: rgba(0, 0, 0, 0.9);
@ -1249,7 +1249,6 @@ input[type=submit].btn-block, input[type=reset].btn-block, input[type=button].bt
flex-direction: column; flex-direction: column;
min-width: 0; min-width: 0;
word-wrap: break-word; word-wrap: break-word;
background-color: #fff;
background-clip: border-box; background-clip: border-box;
border: 1px solid rgba(0, 0, 0, 0.125); border: 1px solid rgba(0, 0, 0, 0.125);
border-radius: 0.35rem; border-radius: 0.35rem;
@ -1277,11 +1276,16 @@ input[type=submit].btn-block, input[type=reset].btn-block, input[type=button].bt
.card-text:last-child { .card-text:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.card-block {
gap: 0.4rem;
}
.card-header { .card-header {
padding: 0.75rem 1.25rem; padding: 0.75rem 1.25rem;
margin-bottom: 0; margin-bottom: 0;
background-color: rgba(0, 0, 0, 0.03); background-color: rgba(0, 0, 0, 0.03);
border-bottom: 1px solid rgba(0, 0, 0, 0.125); border-bottom: 1px solid rgba(0, 0, 0, 0.125);
align-self: center;
} }
.card-header:first-child { .card-header:first-child {
border-radius: calc(0.35rem - 1px) calc(0.35rem - 1px) 0 0; border-radius: calc(0.35rem - 1px) calc(0.35rem - 1px) 0 0;
@ -1290,9 +1294,7 @@ input[type=submit].btn-block, input[type=reset].btn-block, input[type=button].bt
border-top: 0; border-top: 0;
} }
.card-footer { .card-footer {
padding: 0.75rem 1.25rem; padding: 0 1.25rem;
background-color: rgba(0, 0, 0, 0.03);
border-top: 1px solid rgba(0, 0, 0, 0.125);
} }
.card-footer:last-child { .card-footer:last-child {
border-radius: 0 0 calc(0.35rem - 1px) calc(0.35rem - 1px); border-radius: 0 0 calc(0.35rem - 1px) calc(0.35rem - 1px);
@ -1314,11 +1316,11 @@ input[type=submit].btn-block, input[type=reset].btn-block, input[type=button].bt
column-gap: 1.25rem; column-gap: 1.25rem;
orphans: 1; orphans: 1;
widows: 1; widows: 1;
} }
.card-columns .card { .card-columns .card {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
} }
} }
.pagination { .pagination {
display: flex; display: flex;
@ -1443,7 +1445,7 @@ a.badge-danger:focus, a.badge-danger.focus {
@media (min-width: 576px) { @media (min-width: 576px) {
.jumbotron { .jumbotron {
padding: 4rem 2rem; padding: 4rem 2rem;
} }
} }
.jumbotron-fluid { .jumbotron-fluid {
padding-right: 0; padding-right: 0;
@ -1738,29 +1740,29 @@ button.close {
.modal-dialog { .modal-dialog {
max-width: 500px; max-width: 500px;
margin: 1.75rem auto; margin: 1.75rem auto;
} }
.modal-dialog-scrollable { .modal-dialog-scrollable {
max-height: calc(100% - 3.5rem); max-height: calc(100% - 3.5rem);
} }
.modal-dialog-scrollable .modal-content { .modal-dialog-scrollable .modal-content {
max-height: calc(100vh - 3.5rem); max-height: calc(100vh - 3.5rem);
} }
.modal-dialog-centered { .modal-dialog-centered {
min-height: calc(100% - 3.5rem); min-height: calc(100% - 3.5rem);
} }
.modal-dialog-centered::before { .modal-dialog-centered::before {
height: calc(100vh - 3.5rem); height: calc(100vh - 3.5rem);
} }
} }
@media (min-width: 992px) { @media (min-width: 992px) {
.modal-xl { .modal-xl {
max-width: 800px; max-width: 800px;
} }
} }
@media (min-width: 1200px) { @media (min-width: 1200px) {
.modal-xl { .modal-xl {
max-width: 1140px; max-width: 1140px;
} }
} }
.tooltip { .tooltip {
position: absolute; position: absolute;
@ -2386,7 +2388,7 @@ a.bg-light:hover, a.bg-light:focus, button.bg-light:hover, button.bg-light:focus
margin-bottom: 0.25rem !important; margin-bottom: 0.25rem !important;
} }
.mr-md-2 { .mr-md-2 {
margin-right: 0.5rem !important; margin-right: 0.8rem !important;
} }
.mb-md-2 { .mb-md-2 {
margin-bottom: 0.5rem !important; margin-bottom: 0.5rem !important;
@ -3067,6 +3069,7 @@ small, .small {
text-align: center; text-align: center;
word-break: keep-all; word-break: keep-all;
min-width: 40px; min-width: 40px;
line-height: 1.4;
} }
#thread .voting { #thread .voting {
min-width: 10px; min-width: 10px;
@ -3074,7 +3077,7 @@ small, .small {
overflow-wrap: normal; overflow-wrap: normal;
} }
#frontpage .voting, #search .voting, #userpage .voting { #frontpage .voting, #search .voting, #userpage .voting {
margin: auto 0; margin: 0 0;
} }
.active.arrow-up::before { .active.arrow-up::before {
color: var(--primary); color: var(--primary);
@ -3082,7 +3085,7 @@ small, .small {
.arrow-up::before { .arrow-up::before {
cursor: pointer; cursor: pointer;
font-size: 1.3rem; font-size: 1.3rem;
color: var(--gray-200); color: var(--muted);
font-family: "font awesome 5 pro" !important; font-family: "font awesome 5 pro" !important;
font-weight: 900; font-weight: 900;
content: "\f357"; content: "\f357";
@ -3097,7 +3100,7 @@ small, .small {
.arrow-down::before { .arrow-down::before {
cursor: pointer; cursor: pointer;
font-size: 1.3rem; font-size: 1.3rem;
color: var(--gray-200); color: var(--muted);
font-family: "font awesome 5 pro" !important; font-family: "font awesome 5 pro" !important;
font-weight: 900; font-weight: 900;
content: "\f354"; content: "\f354";
@ -3260,8 +3263,19 @@ small, .small {
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
border-bottom: 0.1px solid var(--gray-400); border-bottom: 0.1px solid var(--gray-400);
} }
.card { .card-container {
background-color: var(--gray-900); background-color: var(--background);
}
@media (min-width: 768px) {
.card-container {
padding-right: 1em;
}
}
.card-container ~ .card-container {
border-top: 1px solid var(--tertiary);
}
.card-container:nth-child(odd) {
background-color: var(--background-odd);
} }
#thread .card { #thread .card {
background-color: var(--background); background-color: var(--background);
@ -3270,36 +3284,25 @@ small, .small {
border-top-left-radius: 0.35rem; border-top-left-radius: 0.35rem;
border-top-right-radius: 0.35rem; border-top-right-radius: 0.35rem;
} }
#frontpage .posts .card, #userpage .posts .card, #search .posts .card {
border-width: 0.1px 0.1px 0 0.1px;
border-color: #303030;
border-style: solid;
border-radius: 0;
padding: 0.5rem;
padding-bottom: 0.1rem !important;
}
#frontpage .posts .card:hover, #userpage .posts .card:hover, #search .posts .card:hover {
background-color: var(--gray-600);
}
.post-title { .post-title {
font-size: 16px; font-size: 1.4rem;
font-weight: 600; font-weight: 600;
word-break: break-word; word-break: break-word;
overflow: hidden; overflow: hidden;
} }
.post-title a { .post-title a {
color: var(--black); color: var(--primary);
} }
.post-title a:hover, .post-title a:active, .post-title a:focus { .post-title a:hover, .post-title a:active, .post-title a:focus {
text-decoration: none; text-decoration: none;
color: var(--primary); color: var(--primary);
} }
#frontpage .post-title a { #frontpage .post-title a {
color: var(--black); color: var(--primary);
} }
#frontpage .post-title a:hover, #frontpage .post-title a:active, #frontpage .post-title a:focus { #frontpage .post-title a:hover, #frontpage .post-title a:active, #frontpage .post-title a:focus {
text-decoration: none; text-decoration: none;
color: var(--black); color: var(--primary);
} }
.stretched-link a:hover { .stretched-link a:hover {
color: #6f42c1; color: #6f42c1;
@ -3373,14 +3376,32 @@ small, .small {
width: 1.25rem; width: 1.25rem;
font-size: 1rem; font-size: 1rem;
} }
.post-info {
font-size: 0.8rem;
}
.post-author {
color: var(--muted);
}
.post-author a {
color: var(--primary-muted);
}
.post-author > * {
margin-right: 0.3em;
display: inline-block;
}
.post-author .user-name {
color: var(--primary-muted);
}
.post-traffic-info {
color: var(--dark);
}
.post-actions { .post-actions {
position: relative; position: relative;
color: var(--muted); color: var(--muted);
font-weight: 600; font-weight: 600;
font-size: 12px; white-space: nowrap;
} }
.post-actions .fa, .post-actions .fas, .post-actions .far { .post-actions .fa, .post-actions .fas, .post-actions .far {
font-size: 12px;
margin-right: 0.5rem; margin-right: 0.5rem;
width: 1rem; width: 1rem;
} }
@ -3500,19 +3521,19 @@ small, .small {
color: var(--white); color: var(--white);
} }
.post-actions a, .post-actions button { .post-actions a, .post-actions button {
color: var(--gray-100); color: var(--muted);
text-decoration: none; text-decoration: none;
text-transform: none; text-transform: none;
} }
.post-actions a, .post-actions button:hover { .post-actions a:hover, .post-actions button:hover {
color: var(--black); color: var(--black);
} }
.post-actions .dropdown-item:hover { .post-actions .dropdown-item:hover {
color: var(--black); color: var(--black);
} }
.post-img { .post-img {
width: 100px; width: 90px;
height: 70px; height: 60px;
object-fit: cover; object-fit: cover;
border: 0.1px solid var(--primary); border: 0.1px solid var(--primary);
border-radius: 0.35rem; border-radius: 0.35rem;
@ -3521,7 +3542,7 @@ small, .small {
} }
@media (max-width: 767.98px) { @media (max-width: 767.98px) {
.post-img { .post-img {
width: 80px; width: 60px;
height: 60px; height: 60px;
} }
} }
@ -4034,239 +4055,224 @@ pre .com, code .com {
@media (max-width: 767.98px) { @media (max-width: 767.98px) {
html { html {
font-size: 14px; font-size: 14px;
} }
.container { .container {
overflow: hidden; overflow: hidden;
max-width: none; max-width: none;
} }
body, #settings, #notifications, #submit { body, #settings, #notifications, #submit {
background-color: var(--background); background-color: var(--background);
} }
#thread, #userpage { #thread, #userpage {
background-color: var(--gray-600); background-color: var(--gray-600);
} }
.custom-gutters, .user-gutters { .custom-gutters, .user-gutters {
padding-left: 2px; padding-left: 0px;
padding-right: 2px; padding-right: 0px;
} }
.navbar.bg-primary { .navbar.bg-primary {
background-color: var(--dark) !important; background-color: var(--dark) !important;
} }
.navbar-nav { .navbar-nav {
height: 100vh; height: 100vh;
} }
.navbar-nav .nav-link, .navbar-expand-md .navbar-nav .nav-link { .navbar-nav .nav-link, .navbar-expand-md .navbar-nav .nav-link {
padding: 0.5rem; padding: 0.5rem;
} }
.navbar-dark .navbar-nav .nav-link:hover { .navbar-dark .navbar-nav .nav-link:hover {
background-color: transparent; background-color: transparent;
border-radius: 0; border-radius: 0;
} }
.navbar-dark .navbar-nav .nav-link:active { .navbar-dark .navbar-nav .nav-link:active {
background-color: rgba(0, 0, 0, 0.15); background-color: rgba(0, 0, 0, 0.15);
border-radius: 0; border-radius: 0;
} }
.navbar-dark .navbar-nav .nav-link .fa, .navbar-dark .navbar-nav .nav-link .fas, .navbar-dark .navbar-nav .nav-link .far, .navbar-dark .navbar-nav .nav-link .fab { .navbar-dark .navbar-nav .nav-link .fa, .navbar-dark .navbar-nav .nav-link .fas, .navbar-dark .navbar-nav .nav-link .far, .navbar-dark .navbar-nav .nav-link .fab {
font-size: 1rem; font-size: 1rem;
} }
.navbar-light .navbar-nav .nav-link .fa, .navbar-light .navbar-nav .nav-link .fas, .navbar-light .navbar-nav .nav-link .far, .navbar-light .navbar-nav .nav-link .fab { .navbar-light .navbar-nav .nav-link .fa, .navbar-light .navbar-nav .nav-link .fas, .navbar-light .navbar-nav .nav-link .far, .navbar-light .navbar-nav .nav-link .fab {
color: var(--primary); color: var(--primary);
font-size: 1.25rem; font-size: 1.25rem;
} }
#fixed-bar-mobile { #fixed-bar-mobile {
box-shadow: none; box-shadow: none;
} }
.mobile-nav-icon { .mobile-nav-icon {
padding: 0.25rem 0.6rem; padding: 0.25rem 0.6rem;
} }
#thread, #submit { #thread, #submit {
background-color: var(--light); background-color: var(--light);
} }
#search .search-results.card { #search .search-results.card {
border-bottom: 0.1px solid var(--gray-400); border-bottom: 0.1px solid var(--gray-400);
border-width: 0 0 0.1px 0; border-width: 0 0 0.1px 0;
border-radius: 0; border-radius: 0;
} }
#frontpage .posts .card, #userpage .posts .card, #search .posts .card { #frontpage .posts .card, #userpage .posts .card, #search .posts .card {
padding: 7px; padding: 7px;
border-width: 0 0 0.1px 0; border-width: 0 0 0.1px 0;
} }
#frontpage .posts .card:first-of-type, #userpage .posts .card:first-of-type, #search .posts .card:first-of-type { #frontpage .posts .card:first-of-type, #userpage .posts .card:first-of-type, #search .posts .card:first-of-type {
border-radius: 0; border-radius: 0;
} }
#frontpage .posts .card, #userpage .posts .card, #search .posts .card, #userpage .posts .card { #frontpage .posts .card, #userpage .posts .card, #search .posts .card, #userpage .posts .card {
background-color: var(--gray-600);
padding-bottom: 0.5rem !important; padding-bottom: 0.5rem !important;
} }
#frontpage .posts .card:hover .post-title a, #search .posts .card:hover .post-title a { #frontpage .posts .card:hover .post-title a, #search .posts .card:hover .post-title a {
color: var(--primary); color: var(--primary);
} }
#frontpage .posts .card .post-img, #search .posts .card .post-img { #frontpage .posts .card .post-img, #search .posts .card .post-img {
z-index: 3; z-index: 3;
} }
.toast { .toast {
bottom: 1.5rem; bottom: 1.5rem;
margin: 0 auto; margin: 0 auto;
left: 0; left: 0;
right: 0; right: 0;
} }
#thread .card {
background-color: var(--gray-600);
}
.card {
background-color: var(--gray-600);
}
.posts, #thread #main-content-col { .posts, #thread #main-content-col {
box-shadow: none; box-shadow: none;
border: none; border: none;
border-radius: 0; border-radius: 0;
} }
#thread #main-content-col { #thread #main-content-col {
margin: 0; margin: 0;
} }
.post-title a { .post-title a {
color: var(--black); color: var(--black);
} }
.post-title a:hover, .post-title a:active, .post-title a:focus { .post-title a:hover, .post-title a:active, .post-title a:focus {
color: var(--primary); color: var(--primary);
} }
#thread .voting { #thread .voting {
min-width: 0; min-width: 0;
margin-right: 0; margin-right: 0;
margin-top: 0; margin-top: 0;
} }
.voting { .voting {
font-weight: 400; font-weight: 400;
font-size: 1.2rem; font-size: 1.2rem;
} }
#frontpage .voting, #search .voting, #userpage .voting { #frontpage .voting, #search .voting, #userpage .voting {
margin: 0; margin: 0;
} }
.post-title { .post-title {
font-size: 14px; font-size: 18px;
font-weight: 400;
line-height: normal; line-height: normal;
overflow: hidden; overflow: hidden;
} }
.post-meta { .post-meta {
font-size: 1rem; font-size: 1rem;
padding-left: 3px; }
}
.post-actions { .post-actions {
font-weight: 400; font-weight: 400;
} }
.post-actions a, .post-actions button { .post-actions a, .post-actions button {
font-size: 1rem; font-size: 1rem;
color: var(--gray-200); }
}
.post-actions .fa, .post-actions .fas, .post-actions .far { .post-actions .fa, .post-actions .fas, .post-actions .far {
font-size: 1rem; font-size: 1rem;
} }
.post-actions .voting .fa, .post-actions .voting .fas, .post-actions .voting .far { .post-actions .voting .fa, .post-actions .voting .fas, .post-actions .voting .far {
font-size: 1.25rem; font-size: 1.25rem;
} }
.comment-actions .score { .comment-actions .score {
color: var(--gray-200); color: var(--gray-200);
} }
.score { .score {
color: var(--gray-200); color: var(--gray-200);
} }
.arrow-up::before, .arrow-down::before, .arrow-up:hover::before, .arrow-down:hover::before {
font-size: 1.5rem;
color: var(--gray-200);
opacity: 1;
}
.active.arrow-up::before, .active.arrow-up:hover::before { .active.arrow-up::before, .active.arrow-up:hover::before {
color: var(--primary); color: var(--primary);
} }
.active.arrow-down::before, .active.arrow-down:hover::before { .active.arrow-down::before, .active.arrow-down:hover::before {
color: #38B2AC; color: #38B2AC;
} }
.dropdown-actions a { .dropdown-actions a {
font-size: 1rem; font-size: 1rem;
} }
.dropdown-actions .fa, .dropdown-actions .fas, .dropdown-actions .far { .dropdown-actions .fa, .dropdown-actions .fas, .dropdown-actions .far {
font-size: 1rem; font-size: 1rem;
} }
.comment-section { .comment-section {
background-color: var(--gray-600); background-color: var(--gray-600);
} }
.comment-section > .comment { .comment-section > .comment {
padding-left: 12px; padding-left: 12px;
} }
.comment { .comment {
margin-top: 1.5rem; margin-top: 1.5rem;
} }
.comment.collapsed .user-info { .comment.collapsed .user-info {
padding-top: 0.5rem; padding-top: 0.5rem;
} }
.comment.collapsed .comment-body:hover { .comment.collapsed .comment-body:hover {
opacity: 0.5; opacity: 0.5;
} }
.comment-actions .fa, .comment-actions .fas, .comment-actions .far { .comment-actions .fa, .comment-actions .fas, .comment-actions .far {
color: var(--gray-100); color: var(--gray-100);
} }
.banner-pic-135 { .banner-pic-135 {
max-width: 100%; max-width: 100%;
} }
.x-scroll-parent { .x-scroll-parent {
overflow: hidden; overflow: hidden;
} }
.x-scroll { .x-scroll {
width: 100%; width: 100%;
overflow-x: scroll; overflow-x: scroll;
white-space: nowrap; white-space: nowrap;
scrollbar-width: none; scrollbar-width: none;
-ms-overflow-style: none; -ms-overflow-style: none;
} }
.x-scroll::-webkit-scrollbar { .x-scroll::-webkit-scrollbar {
width: 100%; width: 100%;
overflow-x: scroll; overflow-x: scroll;
white-space: nowrap; white-space: nowrap;
background: transparent; background: transparent;
} }
#thread .post-title { #thread .post-title {
font-size: 16px; font-size: 16px;
} }
#submit .submission { #submit .submission {
border: none; border: none;
} }
#submit .submission .body { #submit .submission .body {
padding: 0; padding: 0;
} }
#submit .submission .footer { #submit .submission .footer {
background: transparent; background: transparent;
padding: 1rem 0; padding: 1rem 0;
} }
.footer .list-inline-item { .footer .list-inline-item {
line-height: 3; line-height: 3;
} }
.comments-count .total { .comments-count .total {
font-weight: 400; font-weight: 400;
font-size: 1rem; font-size: 1rem;
} }
.comment-actions { .comment-actions {
font-weight: 400; font-weight: 400;
font-size: 1.2rem; font-size: 1.2rem;
} }
.user-name { .user-name {
font-weight: 400; font-weight: 400;
} }
.comment .comment-body .user-name { .comment .comment-body .user-name {
color: var(--black); color: var(--black);
font-weight: 600; font-weight: 600;
} }
.pagination { .pagination {
padding: 1rem; padding: 1rem;
} }
input[type=color], input[type=date], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select:focus, textarea { input[type=color], input[type=date], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select:focus, textarea {
font-size: 16px !important; font-size: 16px !important;
} }
textarea, input[type=text] { textarea, input[type=text] {
-webkit-appearance: none; -webkit-appearance: none;
-moz-appearance: none; -moz-appearance: none;
appearance: none; appearance: none;
} }
} }
.bg-white { .bg-white {
background-color: var(--gray-600) !important; background-color: var(--gray-600) !important;
@ -5090,3 +5096,7 @@ th, td {
.text-green { .text-green {
color: green !important; color: green !important;
} }
.mobile-comment-link {
color: var(--dark);
}

View file

@ -133,7 +133,7 @@ function send_note() {
document.addEventListener("click", function(){ document.addEventListener("click", function(){
active = document.activeElement.getAttributeNode("class"); active = document.activeElement.getAttributeNode("class");
if (active && active.nodeValue == "user-name text-decoration-none"){ if (active && active.nodeValue == "user-name"){
pops = document.getElementsByClassName('popover') pops = document.getElementsByClassName('popover')
if (pops.length > 1) pops[0].remove() if (pops.length > 1) pops[0].remove()
} }

View file

@ -202,7 +202,7 @@
{% if not c.author %} {% if not c.author %}
{{c.print()}} {{c.print()}}
{% endif %} {% endif %}
<a href="/@{{c.author_name}}" class="user-name text-decoration-none" onclick='popclick({{c.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color:var(--primary-light1); font-size:12px; font-weight:bold;"><img loading="lazy" src="{{c.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if c.author.patron and not c.distinguish_level %}class="patron" style="background-color:#{{c.author.namecolor}};"{% elif c.distinguish_level %}class="mod"{% endif %}>{{c.author_name}}</span></a> <a href="/@{{c.author_name}}" class="user-name" onclick='popclick({{c.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="font-size:12px; font-weight:bold;"><img loading="lazy" src="{{c.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if c.author.patron and not c.distinguish_level %}class="patron" style="background-color:#{{c.author.namecolor}};"{% elif c.distinguish_level %}class="mod"{% endif %}>{{c.author_name}}</span></a>
{% if v and v.admin_level > 2 %} {% if v and v.admin_level > 2 %}
<span <span
class="usernote-link" class="usernote-link"

View file

@ -184,7 +184,7 @@
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if p.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}var(--primary){% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i> {% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if p.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}var(--primary){% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i>
{% endif %} {% endif %}
<a href="/@{{p.author_name}}" class="user-name text-decoration-none" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="color: var(--primary-light1); font-weight: bold"><img loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level %}class="mod"{% endif %}>{{p.author_name}}</span></a>{% if p.author.customtitle %}&nbsp;<bdi style="color: #{{p.author.titlecolor}}">&nbsp;{{p.author.customtitle | safe}}</bdi>{% endif %} <a href="/@{{p.author_name}}" class="user-name" onclick='popclick({{p.author.json_popover(v) | tojson}})' data-bs-placement="bottom" data-bs-toggle="popover" data-bs-trigger="click" data-content-id="popover" role="button" tabindex="0" style="font-weight: bold"><img loading="lazy" src="{{p.author.profile_url}}" class="profile-pic-25 mr-2"><span {% if p.author.patron and not p.distinguish_level %}class="patron" style="background-color:#{{p.author.namecolor}};"{% elif p.distinguish_level %}class="mod"{% endif %}>{{p.author_name}}</span></a>{% if p.author.customtitle %}&nbsp;<bdi style="color: #{{p.author.titlecolor}}">&nbsp;{{p.author.customtitle | safe}}</bdi>{% endif %}
{% if v and v.admin_level > 2 %} {% if v and v.admin_level > 2 %}
<span <span
class="usernote-link" class="usernote-link"

View file

@ -49,18 +49,19 @@
{% include 'usernote.html' %} {% include 'usernote.html' %}
{% for p in listing %} {% for p in listing %}
<div class="card-container">
{% set ups=p.upvotes %} {% set ups=p.upvotes %}
{% set downs=p.downvotes %} {% set downs=p.downvotes %}
{% set score=ups-downs %} {% set score=ups-downs %}
{% if v %} {% if v %}
{% set voted= p.voted %} {% set voted= p.voted %}
{% else %} {% else %}
{% set voted=-2 %} {% set voted=-2 %}
{% endif %} {% endif %}
{% if v and p.filter_state == 'reported' and v.can_manage_reports() %} {% if v and p.filter_state == 'reported' and v.can_manage_reports() %}
<div id="flaggers-{{p.id}}" class="flaggers d-none"> <div id="flaggers-{{p.id}}" class="flaggers d-none">
<strong><i class="far fa-fw fa-flag"></i> Reports:</strong> <strong><i class="far fa-fw fa-flag"></i> Reports:</strong>
<a class="btn btn-primary" style="margin:1px 5px" onclick="filter_new_status({{p.id}}, 'normal')">Approve</a> <a class="btn btn-primary" style="margin:1px 5px" onclick="filter_new_status({{p.id}}, 'normal')">Approve</a>
@ -73,14 +74,14 @@
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
{% endif %} {% endif %}
<div id="post-{{p.id}}" class="card{% if p.is_banned %} banned{% endif %}{% if p.deleted_utc %} deleted{% endif %}{% if p.stickied %} stickied{% endif %}{% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}{% if p.over_18 %} nsfw{% endif %}"> <div id="post-{{p.id}}" class="card{% if p.is_banned %} banned{% endif %}{% if p.deleted_utc %} deleted{% endif %}{% if p.stickied %} stickied{% endif %}{% if voted==1 %} upvoted{% elif voted==-1 %} downvoted{% endif %}{% if p.over_18 %} nsfw{% endif %}">
<div class="d-flex flex-row-reverse flex-md-row flex-nowrap justify-content-end"> <div class="d-flex flex-row flex-nowrap justify-content-end align-items-center">
{% if not postembed %} {% if not postembed %}
<div class="voting my-2 d-none d-md-block pr-2"> <div class="voting my-0 my-md-2 d-block pr-2">
{% if v and request.path.startswith('/@') and v.admin_level < 2 %} {% if v and request.path.startswith('/@') and v.admin_level < 2 %}
{% if voted==1 %} {% if voted==1 %}
@ -114,37 +115,35 @@
</div> </div>
{% endif %} {% endif %}
<div class="card-header bg-transparent border-0 d-flex flex-row flex-nowrap pl-2 pl-md-0 p-0 mr-md-2"> <div class="card-header bg-transparent border-0 d-flex flex-row flex-nowrap p-0 mr-3">
<div style="z-index: 3;"> <div style="z-index: 3;">
{% if not p.url %} {% if not p.url %}
<a {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} href="{{p.permalink}}"> <a {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} href="{{p.permalink}}">
<img alt="post thumnail" loading="lazy" src="{{p.thumb_url}}" class="post-img"> <img alt="post thumbnail" loading="lazy" src="{{p.thumb_url}}" class="post-img">
</a> </a>
{% elif p.is_image %} {% elif p.is_image %}
<img role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{p.realurl(v)}}')" alt="post thumnail" loading="lazy" src="{{p.thumb_url}}" class="post-img"> <img role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{p.realurl(v)}}')" alt="post thumbnail" loading="lazy" src="{{p.thumb_url}}" class="post-img">
{% elif p.is_video %} {% elif p.is_video %}
<a role="button" onclick="togglevideo({{p.id}})"> <a role="button" onclick="togglevideo({{p.id}})">
<img alt="post thumnail" loading="lazy" src="{{p.thumb_url}}" class="post-img"> <img alt="post thumbnail" loading="lazy" src="{{p.thumb_url}}" class="post-img">
</a> </a>
{% elif p.is_youtube %} {% elif p.is_youtube %}
<a role="button" onclick="document.getElementById('video-{{p.id}}').classList.toggle('d-none')"> <a role="button" onclick="document.getElementById('video-{{p.id}}').classList.toggle('d-none')">
<img alt="post thumnail" loading="lazy" src="{{p.thumb_url}}" class="post-img"> <img alt="post thumbnail" loading="lazy" src="{{p.thumb_url}}" class="post-img">
</a> </a>
{% else %} {% else %}
<a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}"> <a {% if not v or v.newtabexternal %}target="_blank"{% endif %} rel="nofollow noopener noreferrer" href="{{p.realurl(v)}}">
<img alt="post thumnail" loading="lazy" src="{{p.thumb_url}}" class="post-img"> <img alt="post thumbnail" loading="lazy" src="{{p.thumb_url}}" class="post-img">
</a> </a>
{% endif %} {% endif %}
</div> </div>
</div> </div>
<div class="card-block text-left x-scroll-parent my-md-auto w-100"> <div class="card-block d-flex flex-column text-left x-scroll-parent my-md-auto w-100">
<div class="post-meta text-left x-scroll mb-md-2"> <div class="post-meta text-left mb-md-2">
<h5 class="card-title post-title text-left mb-0 pb-0 pb-md-1"> <h5 class="card-title post-title text-left mb-0 pb-0 pb-md-1">
<a id="{{p.id}}-title" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} href="{{p.permalink}}" class="{% if voted and v.id == AEVANN_ID %}visited{% endif %}"> <a id="{{p.id}}-title" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} href="{{p.permalink}}" class="{% if voted and v.id == AEVANN_ID %}visited{% endif %}">
{% if p.club %}<span class="patron font-weight-bolder mr-1" style="background-color:red; font-size:12px; line-height:2;">{{CC}}</span>{% endif %} {% if p.club %}<span class="patron font-weight-bolder mr-1" style="background-color:red; font-size:12px; line-height:2;">{{CC}}</span>{% endif %}
@ -162,7 +161,9 @@
</div> </div>
<div class="post-info text-left"> <div class="post-info text-left">
<div class="post-author x-scroll"> <div class="post-author">
<span class="post-traffic-info d-none d-md-inline-block">{{p.comment_count}} comments - {{p.views}} thread views</span>
{% if p.bannedfor %} {% if p.bannedfor %}
<a role="button"><i class="fas fa-hammer-crash text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was banned for this post{% if p.author.banned_by %} by @{{p.author.banned_by.username}}{% endif %}"></i></a> <a role="button"><i class="fas fa-hammer-crash text-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="User was banned for this post{% if p.author.banned_by %} by @{{p.author.banned_by.username}}{% endif %}"></i></a>
{% endif %} {% endif %}
@ -191,7 +192,8 @@
{% endif %} {% endif %}
<span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('timestamp-{{p.id}}','{{p.created_utc}}')" id="timestamp-{{p.id}}">&nbsp;{{p.age_string}} by </span> <span>
<span data-bs-toggle="tooltip" data-bs-placement="bottom" onmouseover="timestamp('timestamp-{{p.id}}','{{p.created_utc}}')" id="timestamp-{{p.id}}">{{p.age_string}} by </span>
{% if not p.author %} {% if not p.author %}
{{p.print()}} {{p.print()}}
@ -204,7 +206,7 @@
{% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if p.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i> {% if p.author.verified %}<i class="fas fa-badge-check align-middle ml-1 {% if p.author.verified=='Glowiefied' %}glow{% endif %}" style="color:{% if p.author.verifiedcolor %}#{{p.author.verifiedcolor}}{% else %}#1DA1F2{% endif %}" data-bs-toggle="tooltip" data-bs-placement="bottom" title="{{p.author.verified}}"></i>
{% endif %} {% endif %}
<a href="/@{{p.author_name}}" <a href="/@{{p.author_name}}"
class="user-name text-decoration-none" class="user-name"
data-bs-placement="bottom" data-bs-placement="bottom"
data-bs-toggle="popover" data-bs-toggle="popover"
@ -212,7 +214,7 @@
data-content-id="popover" data-content-id="popover"
role="button" role="button"
tabindex="0" tabindex="0"
style="color: var(--primary-light1); font-weight: bold;"> style="font-weight: bold;">
<span <span
{% if p.author.patron and not p.distinguish_level %} {% if p.author.patron and not p.distinguish_level %}
class="patron" class="patron"
@ -228,38 +230,32 @@
onclick='fillnote( {{p.author.json_popover(v) | tojson}}, {{p.id}}, null )'>_U_</span> onclick='fillnote( {{p.author.json_popover(v) | tojson}}, {{p.id}}, null )'>_U_</span>
{% endif %} {% endif %}
{% endif %} {% endif %}
</span>
&nbsp; <span>
({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.domain %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" class="post-meta-domain" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %}>{{p.domain|truncate(35, True)}}</a>{% else %}text post{% endif %}) ({% if p.is_image %}image post{% elif p.is_video %}video post{% elif p.domain %}<a href="/search/posts/?q=domain%3A{{p.domain}}&sort=new&t=all" class="post-meta-domain" {% if v and v.newtab and not g.webview %}target="_blank"{% endif %}>{{p.domain|truncate(35, True)}}</a>{% else %}text post{% endif %})
</span>
{% if p.edited_utc %} {% if p.edited_utc %}
&nbsp;&nbsp;Edited <span data-bs-toggle="tooltip" data-bs-placement="bottom" id="edited_timestamp-{{p.id}}" onmouseover="timestamp('edited_timestamp-{{p.id}}','{{p.edited_utc}}')">{{p.edited_string}}</span> <span>Edited <span data-bs-toggle="tooltip" data-bs-placement="bottom" id="edited_timestamp-{{p.id}}" onmouseover="timestamp('edited_timestamp-{{p.id}}','{{p.edited_utc}}')">{{p.edited_string}}</span></span>
{% endif %} {% endif %}
&nbsp;&nbsp;{{p.views}} thread views
</div> </div>
<div class="post-actions d-none d-md-block"> <div class="post-actions d-none d-md-block">
<ul class="list-inline text-right d-flex"> <ul class="list-inline text-right d-flex">
{% if p.realbody(v) %} {% if p.realbody(v) %}
<a class="list-inline-item" role="button" onclick="expandText('{{p.id}}')"><i class="fas fa-expand-alt mr-0 text-expand-icon-{{p.id}}"></i></a> <a class="list-inline-item" role="button" onclick="expandText('{{p.id}}')"><i class="fas fa-expand-alt mr-0 text-expand-icon-{{p.id}}"></i></a>
{% endif %} {% endif %}
<li class="list-inline-item">
<a {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} href="{{p.permalink}}">
<i class="fas fa-comment-dots"></i>{{p.comment_count}}
<span class="text-info d-none {{p.id}}-new-comments"></span>
</a>
</li>
{% include 'post_actions.html' %} {% include 'post_actions.html' %}
</ul> </ul>
</div> </div>
</div> </div>
</div>
</div>
<div class="card-footer d-md-none mt-2 {% if request.path == '/changelog' %}px-0{% endif %}"> <div class="card-footer d-md-none mt-auto {% if request.path == '/changelog' %}px-0{% endif %}">
<div class="post-actions"> <div class="post-actions">
<ul class="list-inline text-right d-flex"> <ul class="list-inline text-right d-flex">
<li class="list-inline-item mr-auto"> <li class="list-inline-item mr-auto">
<a {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} href="{{p.permalink}}"> <a {% if v and v.newtab and not g.webview %}target="_blank"{% endif %} href="{{p.permalink}}">
<i class="fas fa-comment-dots"></i>{{p.comment_count}} <i class="fas fa-comment-dots mobile-comment-link"></i>{{p.comment_count}}
<span class="text-info d-none {{p.id}}-new-comments"></span> <span class="text-info d-none {{p.id}}-new-comments"></span>
</a> </a>
@ -282,54 +278,11 @@
</a> </a>
</li> </li>
{% endif %} {% endif %}
{% if not postembed %}
{% if v and request.path.startswith('/@') and v.admin_level < 2 %}
<li id="voting-{{p.id}}-mobile" class="voting list-inline-item d-md-none">
{% if voted==1 %}
<span class="mr-2 arrow-up post-{{p.id}}-up active">
</span>
{% endif %}
<span class="post-mobile-score-{{p.id}} score post-score-{{p.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}{% if p.controversial %} controversial{% endif %}"{% if not p.is_banned %} data-bs-toggle="tooltip" data-bs-placement="top" title="+{{ups}} | -{{downs}}"{% endif %}>{{score}}</span>
{% if voted==-1 %}
<span class="ml-2 my-0 arrow-down post-{{p.id}}-down active"></span>
{% endif %}
</li>
{% elif v %}
<li id="voting-{{p.id}}-mobile" class="voting list-inline-item d-md-none">
<span tabindex="0" role="button" onclick="vote('post-mobile', '{{p.id}}', '1', '{{v.id}}')" class="post-mobile-{{p.id}}-up mx-0 pr-1 arrow-up upvote-button post-{{p.id}}-up {% if voted==1 %}active{% endif %}">
</span>
<span class="post-mobile-score-{{p.id}} score post-score-{{p.id}} {% if voted==1 %}score-up{% elif voted==-1%}score-down{% endif %}{% if p.controversial %} controversial{% endif %}"{% if not p.is_banned %} data-bs-toggle="tooltip" data-bs-placement="top" title="+{{ups}} | -{{downs}}"{% endif %}>{{score}}</span>
<span {% if environ.get('DISABLE_DOWNVOTES') == '1' %}style="display:None!important"{% endif %} tabindex="0" role="button" onclick="vote('post-mobile', '{{p.id}}', '-1', '{{v.id}}')" class="post-mobile-{{p.id}}-down mx-0 pl-1 my-0 arrow-down downvote-button post-{{p.id}}-down {% if voted==-1 %}active{% endif %}">
</span>
</li>
{% else %}
<li id="voting-{{p.id}}-mobile" class="voting list-inline-item d-md-none">
<span tabindex="0" class="arrow-{{p.id}}-mobile-up mx-0 pr-1 arrow-mobile-up" onclick="location.href='/login';">
<i class="fas fa-arrow-alt-up mx-0" aria-hidden="true"></i>
</span>
<span class="post-mobile-score-{{p.id}} score{% if p.controversial %} controversial{% endif %}"{% if not p.is_banned %} data-bs-toggle="tooltip" data-bs-placement="top" title="+{{ups}} | -{{downs}}"{% endif %}>{{score}}</span>
<span tabindex="0" class="arrow-{{p.id}}-mobile-down arrow-mobile-down mx-0 pl-1 my-0" onclick="location.href='/login';">
<i class="fas fa-arrow-alt-down mx-0" aria-hidden="true"></i>
</span>
</li>
{% endif %}
{% endif %}
</ul> </ul>
</div> </div>
</div> </div>
{% if v %} {% if v %}
<div class="modal fade d-md-none" id="actionsModal-{{p.id}}" tabindex="-1" role="dialog" aria-labelledby="actionsModalTitle" aria-hidden="true"> <div class="modal fade d-md-none" id="actionsModal-{{p.id}}" tabindex="-1" role="dialog" aria-labelledby="actionsModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content"> <div class="modal-content">
@ -347,27 +300,24 @@
</div> </div>
</div> </div>
</div> </div>
{% endif %} {% endif %}
</div>
</div>
</div>
<script> <script>
{% if not v or v.highlightcomments %} {% if not v or v.highlightcomments %}
showNewCommentCounts({{p.id}}, {{p.comment_count}}) showNewCommentCounts({{p.id}}, {{p.comment_count}})
{% endif %} {% endif %}
</script> </script>
{% if v and v.admin_level > 1 %} {% if v and v.admin_level > 1 %}
{% include "post_admin_actions_mobile.html" %} {% include "post_admin_actions_mobile.html" %}
{% endif %} {% endif %}
{% if not p.club or v and (v.paid_dues or v.id == p.author_id) %}
</div>
{% if not p.club or v and (v.paid_dues or v.id == p.author_id) %}
{% if p.realbody(v) %} {% if p.realbody(v) %}
<div class="d-none card rounded border pt-3 pb-2 my-2" id="post-text-{{p.id}}"> <div class="d-none card rounded border pt-3 pb-2 my-2" id="post-text-{{p.id}}">
{{p.realbody(v) | safe}} {{p.realbody(v) | safe}}
@ -391,24 +341,25 @@
{{p.embed_url | safe}} {{p.embed_url | safe}}
</div> </div>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div>
{% else %} {% else %}
{% if request.path.endswith('/admin/queue') %} {% if request.path.endswith('/admin/queue') %}
<div class="row no-gutters"> <div class="row no-gutters">
<div class="col"> <div class="col">
<div class="text-center py-7"> <div class="text-center py-7">
<div class="h4 p-2">This queue is empty. (That's a good thing.)</div> <div class="h4 p-2">This queue is empty. (That's a good thing.)</div>
</div> </div>
</div> </div>
</div> </div>
{% elif u %} {% elif u %}
{% if v and v.id == u.id %} {% if v and v.id == u.id %}
<div class="row no-gutters"> <div class="row no-gutters">
<div class="col"> <div class="col">
<div class="text-center px-3 my-3"> <div class="text-center px-3 my-3">
<span class="fa-stack fa-2x text-muted mb-4"> <span class="fa-stack fa-2x text-muted mb-4">
@ -420,11 +371,11 @@
{% if "saved" not in request.full_path %}<a href="{% if sub %}/h/{{sub.name}}{% endif %}/submit" class="btn btn-primary">Create a post</a>{% endif %} {% if "saved" not in request.full_path %}<a href="{% if sub %}/h/{{sub.name}}{% endif %}/submit" class="btn btn-primary">Create a post</a>{% endif %}
</div> </div>
</div> </div>
</div> </div>
{% else %} {% else %}
<div class="row no-gutters"> <div class="row no-gutters">
<div class="col"> <div class="col">
<div class="text-center px-3 my-3"> <div class="text-center px-3 my-3">
<span class="fa-stack fa-2x text-muted mb-4"> <span class="fa-stack fa-2x text-muted mb-4">
@ -437,11 +388,11 @@
</pre> </pre>
</div> </div>
</div> </div>
</div> </div>
{% endif %} {% endif %}
{% else %} {% else %}
<div class="row no-gutters"> <div class="row no-gutters">
<div class="col"> <div class="col">
<div class="text-center px-3 my-3"> <div class="text-center px-3 my-3">
<span class="fa-stack fa-2x text-muted mb-4"> <span class="fa-stack fa-2x text-muted mb-4">
@ -453,11 +404,8 @@
{% endif %} {% endif %}
</div> </div>
</div> </div>
</div> </div>
{% endif %}
{% endif %}
{% endfor %} {% endfor %}
{% if v %} {% if v %}