From 16ee289b30242df1ec01a1d00ade47f3f6e9783e Mon Sep 17 00:00:00 2001 From: Midou36O Date: Fri, 13 Oct 2023 13:24:55 +0100 Subject: [PATCH] Since Arya requested more than a simple button, more CSS jankiness! --- public/css/style.css | 30 +++++++++++++++++++++++++----- views/index.html | 28 ++++++++++++++++++---------- 2 files changed, 43 insertions(+), 15 deletions(-) diff --git a/public/css/style.css b/public/css/style.css index c029fb6..e66db79 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -31,7 +31,7 @@ footer p { } a { - color: #F57C00; + color: #f57c00; text-decoration: none; } a:hover { @@ -79,7 +79,7 @@ select { border-bottom: none; border-top: none; border-radius: 4px; - border-left: 2px solid #F57C00; + border-left: 2px solid #f57c00; /* Accent shadow */ box-shadow: 2px 2px 0px 0px rgba(245, 124, 0, 0.25); color: #b2b2b2; @@ -89,18 +89,36 @@ select { button { display: flex; + font-size: 17px; padding: 4px 8px; justify-content: flex-end; gap: 2px; border: none; border-radius: 4px; - background: #F57C00; + background: #f57c00; } button:hover { box-shadow: 5px 5px 0px 0px rgba(245, 124, 0, 0.25); cursor: pointer; } +/* While we're at it, fake button css style for the url.*/ + +.button { + display: flex; + font-size: 17px; + padding: 4px 8px; + justify-content: flex-end; + gap: 2px; + border: none; + border-radius: 4px; + background: #f57c00; +} +.button:hover { + box-shadow: 5px 5px 0px 0px rgba(245, 124, 0, 0.25); + cursor: pointer; +} + /* Spacing stuff */ .wrap { display: flex; @@ -168,11 +186,13 @@ button:hover { } /* Javascript searchable select used in source/target language */ -.nice-select, .nice-select-dropdown, .nice-select-search { +.nice-select, +.nice-select-dropdown, +.nice-select-search { border-right: none; border-bottom: none; border-top: none; border-radius: 4px; - border-left: 2px solid #F57C00; + border-left: 2px solid #f57c00; box-shadow: 2px 2px 0px 0px rgba(245, 124, 0, 0.25); } diff --git a/views/index.html b/views/index.html index ada58d4..f62e54c 100644 --- a/views/index.html +++ b/views/index.html @@ -18,7 +18,7 @@ -
+
@@ -68,7 +68,7 @@ {{ if .TranslateAll }} {{range $key, $value := .TranslateAll}} -
+
Engine: {{.Engine}} @@ -92,13 +92,21 @@ {{end}} {{end}} {{end}} - - - {{ if and .Engine .From .To .OriginalText }}

Copy translation link

{{end}} +
+ {{if .TranslationExists}} + + {{end}} + {{ if and .Engine .From .To .OriginalText }}

Copy translation link

{{end}} + {{if .TranslationExists}} + +