diff --git a/core/static/chart.js b/core/static/chart.js index c0d66fd..d445bb5 100644 --- a/core/static/chart.js +++ b/core/static/chart.js @@ -38,7 +38,10 @@ new Chart(ctx, { return foot; } } - } + }, + legend: { + display: false, + }, } } }); diff --git a/core/templates/base.html b/core/templates/base.html index abaa1f0..a15e92e 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -111,6 +111,57 @@ .rounded-tooltip:hover .tooltiptext { visibility: visible; } + + #sentiment-container { + position: fixed; + top: 0; + right: 0; + bottom: 0; + left: 0; + height: 100vh; + width: 100vw; + z-index: -2; + } + + .table { + background: transparent !important; + } + + tr { + transition: all 0.2s ease-in-out; + } + + tr:hover { + cursor:pointer; + background-color:rgba(221, 224, 255, 0.3) !important; + } + + a.panel-block { + transition: all 0.2s ease-in-out; + } + + a.panel-block:hover { + cursor:pointer; + background-color:rgba(221, 224, 255, 0.3) !important; + } + + .panel, .box { + background-color:rgba(250, 250, 250, 0.5) !important; + } + .modal{ + background-color:rgba(255, 255, 255, 0.9) !important; + } + .modal-background{ + background-color:rgba(255, 255, 255, 0.3) !important; + } + + .has-background-grey-lighter{ + background-color:rgba(219, 219, 219, 0.5) !important; + } + .navbar { + background-color: transparent !important; + } + diff --git a/core/templates/ui/drilldown/drilldown.html b/core/templates/ui/drilldown/drilldown.html index 9841808..9a0fce6 100644 --- a/core/templates/ui/drilldown/drilldown.html +++ b/core/templates/ui/drilldown/drilldown.html @@ -70,8 +70,18 @@
-
- {% include 'ui/drilldown/table_results.html' %} +
+

+ + Results +

+
+
+
+ {% include 'ui/drilldown/table_results.html' %} +
+
+
diff --git a/core/templates/ui/drilldown/sentiment_partial.html b/core/templates/ui/drilldown/sentiment_partial.html index 4cb793e..c7d2427 100644 --- a/core/templates/ui/drilldown/sentiment_partial.html +++ b/core/templates/ui/drilldown/sentiment_partial.html @@ -1,13 +1,10 @@ - +{% load static %} -
-
- {% if params.index != 'int' and params.index != 'meta' %} - - - {% endif %} + +{% if params.index != 'int' and params.index != 'meta' %} + -
\ No newline at end of file + +{% endif %} diff --git a/core/templates/ui/drilldown/table_results.html b/core/templates/ui/drilldown/table_results.html index c6eabf3..0611cd7 100644 --- a/core/templates/ui/drilldown/table_results.html +++ b/core/templates/ui/drilldown/table_results.html @@ -5,42 +5,34 @@ {% if table %} -
-

- + + + - - + {{ table.data|length }} hits in {{ took }}ms + {% if exemption is not None %} + + + + {% else %} + {% if redacted != 0 %} + + + {% endif %} + {% endif %} + {% if delay is not None %} + + + + {% endif %} + {% if randomised is True %} + + + + {% endif %} + + {% include 'ui/drilldown/table_results_partial.html' %} + {% include 'ui/drilldown/sentiment_partial.html' %} - {{ table.data|length }} hits in {{ took }}ms - {% if exemption is not None %} - - - - {% else %} - {% if redacted != 0 %} - - - - {% endif %} - {% endif %} - {% if delay is not None %} - - - - {% endif %} - {% if randomised is True %} - - - - {% endif %} -

-
-
- {% include 'ui/drilldown/table_results_partial.html' %} -
-
-
{% endif %} diff --git a/core/templates/ui/drilldown/table_results_partial.html b/core/templates/ui/drilldown/table_results_partial.html index 9e4420d..65b58e0 100644 --- a/core/templates/ui/drilldown/table_results_partial.html +++ b/core/templates/ui/drilldown/table_results_partial.html @@ -55,7 +55,7 @@