ukraine-badge

This commit is contained in:
Flummi 2022-03-24 20:29:36 +01:00
parent e0c7f3971c
commit 81adcde556
2 changed files with 18 additions and 10 deletions

View File

@ -189,13 +189,13 @@ html[theme="paper"] body {
html[theme="paper"] a#next { html[theme="paper"] a#next {
color: var(--white) !important; color: var(--white) !important;
-webkit-text-stroke: 1px var(--black); -webkit-text-stroke: 1px var(--black);
font-size: 40; font-size: 40px;
} }
html[theme="paper"] a#prev { html[theme="paper"] a#prev {
color: var(--white) !important; color: var(--white) !important;
-webkit-text-stroke: 1px var(--black); -webkit-text-stroke: 1px var(--black);
font-size: 40; font-size: 40px;
} }
html[theme="paper"] .about { html[theme="paper"] .about {
@ -546,7 +546,7 @@ div#posts > a:hover::after {
span.f0ck { span.f0ck {
font-family: var(--nav-brand-font); font-family: var(--nav-brand-font);
font-size: 20; font-size: 20px;
text-shadow: 1px 1px 1px var(--black), 0px 0px 0px var(--green), -1px -1px 0px var(--black), 1px -1px 0px var(--black), -1px 1px 0px var(--black), 0px 0px 0px var(--green); text-shadow: 1px 1px 1px var(--black), 0px 0px 0px var(--green), -1px -1px 0px var(--black), 1px -1px 0px var(--black), -1px 1px 0px var(--black), 0px 0px 0px var(--green);
} }
@ -671,7 +671,7 @@ span.placeholder {
background: var(--dropdown-bg); background: var(--dropdown-bg);
position: absolute; position: absolute;
top: 100%; top: 100%;
left: 5; left: 5px;
z-index: 1000; z-index: 1000;
min-width: calc(100% - 10px); min-width: calc(100% - 10px);
padding: 0; padding: 0;
@ -807,7 +807,7 @@ span.placeholder {
.dropdown-menu { .dropdown-menu {
position: absolute; position: absolute;
top: ; /*top: ;*/
left: 0; left: 0;
margin-right: 5px; margin-right: 5px;
margin-left: 5px; margin-left: 5px;
@ -933,7 +933,7 @@ span.placeholder {
#prev { #prev {
z-index: 1; z-index: 1;
font-size: 30; font-size: 30px;
opacity: 0.6; opacity: 0.6;
text-shadow: 2px 2px 2px var(--black); text-shadow: 2px 2px 2px var(--black);
padding: 25px; padding: 25px;
@ -949,7 +949,7 @@ span.placeholder {
#next { #next {
z-index: 1; z-index: 1;
font-size: 30; font-size: 30px;
opacity: 0.6; opacity: 0.6;
text-shadow: 2px 2px 2px var(--black); text-shadow: 2px 2px 2px var(--black);
padding: 25px; padding: 25px;
@ -1075,6 +1075,9 @@ span#tags:empty {
background: linear-gradient(180deg, #ad1c23 33.33%, white 33.33%, white 66.66%, #26468f 66.66%) !important; background: linear-gradient(180deg, #ad1c23 33.33%, white 33.33%, white 66.66%, #26468f 66.66%) !important;
color: #000 !important; color: #000 !important;
} }
.badge-ukraine {
background: linear-gradient(180deg, #005bbc 50%, #ffd600 50%) !important;
}
.badge-russia { .badge-russia {
background: linear-gradient(180deg, white 33.33%, blue 33.33%, blue 66.66%, red 66.66%) !important; background: linear-gradient(180deg, white 33.33%, blue 33.33%, blue 66.66%, red 66.66%) !important;
} }
@ -1378,6 +1381,9 @@ table.table thead tr {
font-weight: bolder; font-weight: bolder;
border-bottom: 1px solid var(--accent); border-bottom: 1px solid var(--accent);
} }
table.table tr {
line-height: 12px;
}
table.table th, table.table td { table.table th, table.table td {
padding: 7px 15px; padding: 7px 15px;
} }
@ -1561,4 +1567,4 @@ a[data-mime^="audio"] {
.err img { .err img {
margin: 10px; margin: 10px;
align-self: center; align-self: center;
} }

View File

@ -106,11 +106,13 @@ export default new class {
for(let t = 0; t < tags.length; t++) { for(let t = 0; t < tags.length; t++) {
if(tags[t].tag.startsWith(">")) if(tags[t].tag.startsWith(">"))
tags[t].badge = "badge-greentext badge-light"; tags[t].badge = "badge-greentext badge-light";
else if(tags[t].tag.match(/ukraine/i))
tags[t].badge = "badge-ukraine badge-light";
else if(/[а-яА-ЯЁё]/.test(tags[t].tag) || tags[t].tag.match(/russia/)) else if(/[а-яА-ЯЁё]/.test(tags[t].tag) || tags[t].tag.match(/russia/))
tags[t].badge = "badge-russia badge-light"; tags[t].badge = "badge-russia badge-light";
else if(tags[t].tag.match(/german/)) else if(tags[t].tag.match(/german/i))
tags[t].badge = "badge-german badge-light"; tags[t].badge = "badge-german badge-light";
else if(tags[t].tag.match(/dutch/)) else if(tags[t].tag.match(/dutch/i))
tags[t].badge = "badge-dutch badge-light"; tags[t].badge = "badge-dutch badge-light";
else if(tags[t].tag === "sfw") else if(tags[t].tag === "sfw")
tags[t].badge = "badge-success"; tags[t].badge = "badge-success";