fix light/dark mode
Some checks failed
mozhi pipeline / Push Docker image to Codeberg docker registry (push) Successful in 29m34s
mozhi pipeline / Build and publish artifacts (push) Has been cancelled

This commit is contained in:
Arya 2024-05-21 21:27:35 +05:30
parent c747b628e4
commit 710d3d0d07
Signed by: arya
GPG Key ID: 842D12BDA50DF120
2 changed files with 15 additions and 9 deletions

View File

@ -40,6 +40,11 @@ a:hover {
text-decoration: underline;
}
#url {
color: #010000;
text-decoration: none;
}
/* Navigation */
nav {
display: flex;
@ -225,9 +230,9 @@ button:hover {
margin: auto;
}
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: light) {
.options {
background-color: #FFEDD5;
background-color: #ffedd5;
border: 1px solid #ccc;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
@ -255,19 +260,20 @@ button:hover {
}
select,
.nice-select .nice-select-dropdown,
.nice-select,
.nice-select-dropdown,
.nice-select-search {
background-color: #fff2e2;
.nice-select-search{
background-color: #fff;
color: #2f2f2f;
}
body {
background-color: #FFEDD5;
background-color: #ffedd5;
color: #000;
}
button {
button,
#url {
color: #fbe9e7;
}
@ -278,4 +284,4 @@ button:hover {
footer {
border-top: 1px solid #b2b2b2;
}
}
}

View File

@ -116,7 +116,7 @@
Copy the translation
</button>
{{end}}
{{ if and .Engine .From .To .OriginalText }}<p><a id="url" class="button" style="color:#010000; text-decoration: none;" onclick="copyLinkToClipboard(event)"
{{ if and .Engine .From .To .OriginalText }}<p><a id="url" class="button" onclick="copyLinkToClipboard(event)"
href="/?engine={{.Engine}}&from={{.From}}&to={{.To}}&text={{.OriginalText}}">Copy translation link</a></p>
{{end}}
{{if .TranslationExists}}