From 910924f5a6c10770192b01c7c78ce50b61ee9b76 Mon Sep 17 00:00:00 2001 From: Sergii Date: Thu, 19 Jul 2018 10:16:06 -0700 Subject: [PATCH] Hide decision buttons until hover and show on hover. #26 --- .../main/resources/static/css/sourceList.css | 17 +++++++++-- .../templates/main/importProgress.html | 29 +----------------- .../templates/support/sourceBlock.html | 30 +++++++++++++++++++ 3 files changed, 46 insertions(+), 30 deletions(-) create mode 100644 ui/web/src/main/resources/templates/support/sourceBlock.html diff --git a/ui/web/src/main/resources/static/css/sourceList.css b/ui/web/src/main/resources/static/css/sourceList.css index e7f28f1..813cd35 100644 --- a/ui/web/src/main/resources/static/css/sourceList.css +++ b/ui/web/src/main/resources/static/css/sourceList.css @@ -221,20 +221,33 @@ div.sourceBlock div.fileName { } div.decisionBlock { position: absolute; - width: 70px; + width: auto; right: 0; top: 0; - height: 22px; + height: 20px; background-color: #ededed; margin-right: 10px; text-align: center; align-content: center; } div.decisionBlock .decisionButton{ + float: right; background-color: #add5a5; padding: 3px; cursor: pointer; + width: 19px; + height: 19px; +} +div.sourceBlock div.sourceBlockBody div.decisionBlock .decisionButton { + display: none; +} +div.sourceBlock:hover div.sourceBlockBody div.decisionBlock .decisionButton { + display: block; +} +div.sourceBlock div.sourceBlockBody div.decisionBlock .decisionButton.decision_selected { + display: block; } + span.btn_LATER { /*background-size: 16px 16px;*/ /*background-repeat: no-repeat;*/ diff --git a/ui/web/src/main/resources/templates/main/importProgress.html b/ui/web/src/main/resources/templates/main/importProgress.html index 9717de5..d7cccd3 100644 --- a/ui/web/src/main/resources/templates/main/importProgress.html +++ b/ui/web/src/main/resources/templates/main/importProgress.html @@ -139,34 +139,7 @@
-
-
-
-
-
-
- - - Files - Matched - Matchable - Dups - -
-
-
-
-
-
- -
-
- - - -
-
-
+
diff --git a/ui/web/src/main/resources/templates/support/sourceBlock.html b/ui/web/src/main/resources/templates/support/sourceBlock.html new file mode 100644 index 0000000..fe8c045 --- /dev/null +++ b/ui/web/src/main/resources/templates/support/sourceBlock.html @@ -0,0 +1,30 @@ + +
+
+
+
+
+
+ + + Files + Matched + Matchable + Dups + +
+
+
+
+
+
+ +
+
+ + + +
+
+
\ No newline at end of file