Rejigger theme pretty heavily. I apologize for this change not being neatly split apart in any way.
This commit is contained in:
parent
f4a8b78d56
commit
280e7275a6
6 changed files with 490 additions and 526 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
@ -167,6 +172,7 @@ div.deleted.banned {
|
||||||
#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,
|
||||||
|
|
|
@ -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);
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4046,8 +4067,8 @@ pre .com, code .com {
|
||||||
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;
|
||||||
|
@ -4095,7 +4116,6 @@ pre .com, code .com {
|
||||||
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 {
|
||||||
|
@ -4109,12 +4129,6 @@ pre .com, code .com {
|
||||||
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;
|
||||||
|
@ -4143,21 +4157,18 @@ pre .com, code .com {
|
||||||
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;
|
||||||
|
@ -4170,11 +4181,6 @@ pre .com, code .com {
|
||||||
}
|
}
|
||||||
.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);
|
||||||
|
@ -5090,3 +5096,7 @@ th, td {
|
||||||
.text-green {
|
.text-green {
|
||||||
color: green !important;
|
color: green !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mobile-comment-link {
|
||||||
|
color: var(--dark);
|
||||||
|
}
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 %} <bdi style="color: #{{p.author.titlecolor}}"> {{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 %} <bdi style="color: #{{p.author.titlecolor}}"> {{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"
|
||||||
|
|
|
@ -49,6 +49,7 @@
|
||||||
{% 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 %}
|
||||||
|
@ -77,10 +78,10 @@
|
||||||
|
|
||||||
<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}}"> {{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>
|
||||||
|
|
||||||
|
<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 %}
|
||||||
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 %}
|
||||||
{{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,49 +278,6 @@
|
||||||
</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>
|
||||||
|
@ -348,6 +301,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
{% if not v or v.highlightcomments %}
|
{% if not v or v.highlightcomments %}
|
||||||
|
@ -361,12 +317,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if not p.club or v and (v.paid_dues or v.id == p.author_id) %}
|
{% 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}}">
|
||||||
|
@ -393,6 +343,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
||||||
{% if request.path.endswith('/admin/queue') %}
|
{% if request.path.endswith('/admin/queue') %}
|
||||||
|
@ -454,10 +405,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue