From e595c500429e8c52723b68f2387c587ac9bfe2eb Mon Sep 17 00:00:00 2001
From: Jan-Christoph Borchardt
Date: Wed, 16 Nov 2016 11:38:01 +0100
Subject: [PATCH] theming: move reset button into field and only show when
focused
Signed-off-by: Jan-Christoph Borchardt
---
apps/theming/css/settings-admin.css | 24 +++++++--
apps/theming/templates/settings-admin.php | 59 ++++++++++++-----------
2 files changed, 53 insertions(+), 30 deletions(-)
diff --git a/apps/theming/css/settings-admin.css b/apps/theming/css/settings-admin.css
index 5d2b08f5e43..60b9c080ad6 100644
--- a/apps/theming/css/settings-admin.css
+++ b/apps/theming/css/settings-admin.css
@@ -6,12 +6,30 @@
display: none;
}
+#theming div > label {
+ position: relative;
+}
+
#theming .theme-undo {
+ position: absolute;
+ top: -7px;
+ right: 7px;
cursor: pointer;
- opacity: .5;
- padding: 11px 5px;
+ opacity: .3;
+ padding: 7px;
vertical-align: top;
display: inline-block;
+ visibility: hidden;
+}
+#theming form .theme-undo {
+ position: relative;
+ top: 4px;
+ left: 158px;
+ visibility: visible;
+}
+#theming input[type='text']:focus + .theme-undo,
+#theming input[type='text']:active + .theme-undo {
+ visibility: visible;
}
#theming .icon-loading-small:after {
@@ -48,4 +66,4 @@ div#theming_settings_msg {
max-width: 20%;
max-height: 20%;
margin-top: 20px;
-}
\ No newline at end of file
+}
diff --git a/apps/theming/templates/settings-admin.php b/apps/theming/templates/settings-admin.php
index b6c97040230..013b3bcf34f 100644
--- a/apps/theming/templates/settings-admin.php
+++ b/apps/theming/templates/settings-admin.php
@@ -34,50 +34,55 @@ style('theming', 'settings-admin');
-
-