From 2c639749cc500e81cac2f21396554303e448014b Mon Sep 17 00:00:00 2001 From: varjolintu Date: Fri, 16 May 2025 20:11:49 +0300 Subject: [PATCH 1/2] Styling improvements --- keepassxc-browser/_locales/en/messages.json | 2 +- keepassxc-browser/options/options.css | 40 +++++++++--- keepassxc-browser/options/options.html | 69 +++++++++++---------- 3 files changed, 66 insertions(+), 45 deletions(-) diff --git a/keepassxc-browser/_locales/en/messages.json b/keepassxc-browser/_locales/en/messages.json index 7a9e078..b6f96c2 100644 --- a/keepassxc-browser/_locales/en/messages.json +++ b/keepassxc-browser/_locales/en/messages.json @@ -20,7 +20,7 @@ "description": "Connect button title text." }, "copyDebugInfoButtonTitle": { - "message": "Copy debug info to clipboard.", + "message": "Copy debug info to clipboard", "description": "Copy debug info button title text on About tab." }, "dismissHttpAuthButtonTitle": { diff --git a/keepassxc-browser/options/options.css b/keepassxc-browser/options/options.css index b0dbe4a..01dcf63 100644 --- a/keepassxc-browser/options/options.css +++ b/keepassxc-browser/options/options.css @@ -43,6 +43,14 @@ input[type="range"] { color: var(--kpxc-text-color) !important; } +input[type="range"]::-moz-range-thumb { + background-color: green; +} + +input[type="range"]::-webkit-slider-thumb { + background-color: green; +} + input:active { border-color: var(--kpxc-input-active-border-color); } @@ -74,19 +82,14 @@ pre { white-space: pre-line; } -.table, -tbody, -thead, -tr, -th, -td { - border-color: var(--kpxc-table-border-color) !important; -} - .table > caption { color: var(--kpxc-text-color); } +.table-sm>:not(caption)>*>* { + padding: 0.25rem 0.5rem; +} + .table > thead, tbody { color: var(--kpxc-text-color); @@ -114,7 +117,7 @@ tbody { .table-striped > tbody > tr:nth-of-type(even) input[type="url"] { --bs-table-bg-type: var(--kpxc-card-background-color) !important; - background-color: var(--kpxc-card-background-color) !important; + background-color: var(--bs-table-bg) !important; color: var(--kpxc-text-color) !important; } @@ -169,6 +172,10 @@ table td:last-of-type { background-color: var(--kpxc-checkbox-color) !important; } +.form-switch > .form-check-input:checked { + background-color: green !important; +} + .help-text { margin-left: 1.725em; } @@ -209,6 +216,7 @@ table td:last-of-type { .active > a { border-color: currentColor; + border-radius: var(--bs-border-radius-sm); color: #a0a0a0 !important; } @@ -229,6 +237,7 @@ table td:last-of-type { border: 0; border-bottom-right-radius: 4px !important; border-top-right-radius: 4px !important; + padding-left: 0; } .site-preferences-input:disabled { @@ -248,6 +257,17 @@ button#sitePreferencesCancelEdit { border-top-left-radius: 4px !important; } +.btn-success { + --bs-btn-bg: green !important; + --bs-btn-border-color: green !important; + --bs-btn-hover-bg: green !important; + --bs-btn-hover-border-color: green !important; +} + +.btn-success:hover { + filter: brightness(88%) !important; +} + @media (min-width: 768px) { .sidebar { height: auto; diff --git a/keepassxc-browser/options/options.html b/keepassxc-browser/options/options.html index 6bf76e5..47a5582 100644 --- a/keepassxc-browser/options/options.html +++ b/keepassxc-browser/options/options.html @@ -27,7 +27,7 @@
- © 2017-2024 - KeePassXC Team + © 2017-2025 - KeePassXC Team
@@ -93,7 +93,7 @@
-
+
@@ -102,7 +102,7 @@
-
+
@@ -112,7 +112,7 @@
-
+
@@ -126,7 +126,7 @@
-
+
@@ -135,7 +135,7 @@
-
+
@@ -144,7 +144,7 @@
-
+
@@ -185,7 +185,7 @@
-
+
@@ -194,7 +194,7 @@
-
+
@@ -222,7 +222,7 @@
-
+
@@ -243,7 +243,7 @@
-
+
@@ -252,7 +252,7 @@
-
+
@@ -266,7 +266,7 @@
-
+
@@ -275,7 +275,7 @@
-
+
@@ -296,7 +296,7 @@
-
+
@@ -304,7 +304,7 @@
-
+
@@ -330,7 +330,7 @@
-
+
@@ -339,7 +339,7 @@
-
+
@@ -364,7 +364,7 @@
-
+
@@ -373,7 +373,7 @@
-
+
@@ -455,7 +455,7 @@
-
+
@@ -464,7 +464,7 @@
-
+
@@ -477,7 +477,7 @@