dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 8baf04ccc6fc4b5f0c35ed9a285bec31b4f24d12
parent 97301b06576ff2486431d952d174a2ba39ee2727
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 24 May 2023 03:05:14 -0700

improve style

Diffstat:
Mpkg/web/handlers/api/v1/messages.qtpl | 10+++++-----
Mpkg/web/handlers/api/v1/messages.qtpl.go | 10+++++-----
2 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/pkg/web/handlers/api/v1/messages.qtpl b/pkg/web/handlers/api/v1/messages.qtpl @@ -189,17 +189,17 @@ .notif, .notif:hover { color: #e74c3c; } #msg-err { background-color: #8f2d2d; color: #ffffff; padding: 1px 5px 2px 5px; display: block; text-decoration: none; } #http-alive-indicator { - background-color: #008000; + background-color: #006400; width: 20px; height: 20px; - position: absolute; + position: fixed; top: 0; - right: 0; + right: 20px; border-radius: 10px; animation: indicator1 10s forwards; } - @keyframes indicator1 { 0% { background-color: #008000; } 99% { background-color: #008000; } 100% { background-color: #8b0000; } } - @keyframes indicator2 { 0% { background-color: #008000; } 99% { background-color: #008000; } 100% { background-color: #8b0000; } } + @keyframes indicator1 { 0% { background-color: #006400; } 99% { background-color: #006400; } 100% { background-color: #8b0000; } } + @keyframes indicator2 { 0% { background-color: #006400; } 99% { background-color: #006400; } 100% { background-color: #8b0000; } } </style> {%- endfunc -%} diff --git a/pkg/web/handlers/api/v1/messages.qtpl.go b/pkg/web/handlers/api/v1/messages.qtpl.go @@ -247,17 +247,17 @@ func StreamGenerateStyle(qw422016 *qt422016.Writer, AuthUser *database.User, Dat .notif, .notif:hover { color: #e74c3c; } #msg-err { background-color: #8f2d2d; color: #ffffff; padding: 1px 5px 2px 5px; display: block; text-decoration: none; } #http-alive-indicator { - background-color: #008000; + background-color: #006400; width: 20px; height: 20px; - position: absolute; + position: fixed; top: 0; - right: 0; + right: 20px; border-radius: 10px; animation: indicator1 10s forwards; } - @keyframes indicator1 { 0% { background-color: #008000; } 99% { background-color: #008000; } 100% { background-color: #8b0000; } } - @keyframes indicator2 { 0% { background-color: #008000; } 99% { background-color: #008000; } 100% { background-color: #8b0000; } } + @keyframes indicator1 { 0% { background-color: #006400; } 99% { background-color: #006400; } 100% { background-color: #8b0000; } } + @keyframes indicator2 { 0% { background-color: #006400; } 99% { background-color: #006400; } 100% { background-color: #8b0000; } } </style> `) //line messages.qtpl:204