summaryrefslogtreecommitdiffstats
path: root/dashboard/src/templates
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2019-06-21 11:54:23 -0400
committerSawyer Bergeron <sawyerbergeron@gmail.com>2019-06-25 15:58:00 -0400
commit3fa4ae19d620666d878cd43c56ad15fbe7c7c363 (patch)
tree76751e06b153c0ef011ef735c25ab6c861b61af8 /dashboard/src/templates
parent8f114174f6be9ff56a7449d265165d23d772937f (diff)
Make filter field more aesthetically pleasing
Change-Id: I41fbf0d7f6232d102861d9dcedd762e12e8fdd0a Signed-off-by: Sawyer Bergeron <sawyerbergeron@gmail.com>
Diffstat (limited to 'dashboard/src/templates')
-rw-r--r--dashboard/src/templates/dashboard/multiple_select_filter_widget.html20
1 files changed, 19 insertions, 1 deletions
diff --git a/dashboard/src/templates/dashboard/multiple_select_filter_widget.html b/dashboard/src/templates/dashboard/multiple_select_filter_widget.html
index bfcbed6..91e55a5 100644
--- a/dashboard/src/templates/dashboard/multiple_select_filter_widget.html
+++ b/dashboard/src/templates/dashboard/multiple_select_filter_widget.html
@@ -34,6 +34,18 @@
padding: 7px;
transition: border-color ease-in-out .1s,box-shadow ease-in-out .1s;
box-shadow: 0 1px 1px rgba(0,0,0,.075);
+
+ display: flex;
+ flex-direction: column;
+}
+
+.grid-item > .btn:active, .grid-item > .btn:focus {
+ outline: none; !important;
+ box-shadow: none;
+}
+
+.grid-item-description {
+ flex: 1;
}
.selected_node {
@@ -42,6 +54,11 @@
transition: border-color ease-in-out .1s,box-shadow ease-in-out .1s;
}
+.grid-item:hover:not(.selected_node):not(.disabled_node) {
+ box-shadow: 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(100, 100, 100, 0.3);
+ transition: border-color ease-in-out .1s,box-shadow ease-in-out .1s;
+}
+
.disabled_node {
cursor: not-allowed;
background-color: #EFEFEF;
@@ -102,7 +119,8 @@
</div>
<div id="{{object_class}}" class="object_class_wrapper">
{% for obj in object_list %}
- <div id="{{ obj.id|default:'not_provided' }}" class="grid-item">
+ <div id="{{ obj.id|default:'not_provided' }}" class="grid-item" onclick="multi_filter_widget.processClick(
+ '{{obj.id}}');">
<p class="grid-item-header">{{obj.name}}</p>
<p class="grid-item-description">{{obj.description}}</p>
<button type="button" class="btn btn-success grid-item-select-btn" onclick="multi_filter_widget.processClick(