make unread color different from target color

pull/193/head
Aevann 2023-08-12 16:22:47 +03:00
parent 3cd9bf800d
commit 5221f34bab
11 changed files with 36 additions and 9 deletions

View File

@ -156,6 +156,6 @@ h5.post-title a:visited {
background-color: black !important;
}
*:target, .unread {
.unread {
background: #fdccad !important;
}

View File

@ -177,8 +177,11 @@ blockquote a {
color: skyblue;
}
*:target, .unread {
background-color: #9994 !important;
.unread {
background-color: #d9d9d9 !important;
}
*:target {
background: rgba(var(--primary_rgb), 0.2) !important;
}
/*userpage*/

View File

@ -11,3 +11,7 @@
#speed-carot-modal .speed-modal-option:hover, #speed-carot-modal .speed-modal-option:focus, #speed-carot-modal .speed-modal-option.selected {
background-color: #444444;
}
.unread {
background-color: #3d3d3d !important;
}

View File

@ -91,7 +91,7 @@ blockquote {
color: #cfcfcf !important;
}
*:target, .unread {
.unread {
background: #ffffff88 !important;
}

View File

@ -99,3 +99,7 @@ h5.post-title a:visited {
[disabled], .disabled, button[disabled], .btn[disabled], button.disabled, .btn.disabled {
color: #bbb !important;
}
*:target {
background: rgba(var(--primary_rgb), 0.2) !important;
}

View File

@ -76,9 +76,12 @@ blockquote {
color: var(--gray-400) !important;
}
*:target, .unread {
.unread {
background: #dddddd !important;
}
*:target {
background: rgba(var(--primary_rgb), 0.2) !important;
}
h5.post-title a:visited {
color: #7a7a7a !important;

View File

@ -5912,11 +5912,17 @@ html {
content: '';
display: block;
}
*:target, .unread {
.unread {
background: #ffffff22 !important;
padding: 12px;
padding-bottom: 4px;
}
*:target {
background: rgba(var(--primary_rgb), 0.15) !important;
padding: 12px;
padding-bottom: 4px;
}
.mod {
padding: 2px 5px 3px 5px;

View File

@ -152,7 +152,7 @@ blockquote {
color: #cfcfcf !important;
}
*:target, .unread {
.unread {
background: #ffffffaa !important;
}

View File

@ -1,7 +1,7 @@
blockquote {
color: var(--gray-400);
}
*:target, .unread {
.unread {
background: #00000022 !important;
}
.deleted {

View File

@ -4,6 +4,7 @@ from os import environ, listdir, path
from flask import g, session, has_request_context, request
from jinja2 import pass_context
from PIL import ImageColor
from files.classes.user import User
from files.helpers.assetcache import assetcache_path
@ -18,6 +19,10 @@ from files.__main__ import app, cache
from urllib.parse import parse_qs, urlencode, urlsplit
@app.template_filter("rgb")
def rgb(color):
return str(ImageColor.getcolor(f"#{color}", "RGB"))[1:-1]
@app.template_filter("formkey")
def formkey(u):
return get_formkey(u)

View File

@ -12,7 +12,9 @@
{%- if IS_DKD() and not (v and v.theme == 'light') -%}
style="--primary:#2AAA8A"
{%- elif not IS_FISTMAS() -%}
style="--primary:#{{v.themecolor if v else DEFAULT_COLOR}}"
{% set primary = v.themecolor if v else DEFAULT_COLOR %}
{% set primary_rgb = primary|rgb %}
style="--primary:#{{primary}};--primary_rgb:{{primary_rgb}}"
{%- endif -%}
>
<head>