From 5223e0829155d16b254e6fb2ffd70313f43d064b Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Wed, 21 Oct 2015 11:10:18 +0200 Subject: [PATCH] report: better select state --- .../app/views/report/time_picker.jst.eco | 8 +-- app/assets/stylesheets/bootstrap.css | 50 ------------------- app/assets/stylesheets/zammad.scss | 8 ++- 3 files changed, 11 insertions(+), 55 deletions(-) diff --git a/app/assets/javascripts/app/views/report/time_picker.jst.eco b/app/assets/javascripts/app/views/report/time_picker.jst.eco index 6a1fd810c..bdd4d30ae 100644 --- a/app/assets/javascripts/app/views/report/time_picker.jst.eco +++ b/app/assets/javascripts/app/views/report/time_picker.jst.eco @@ -2,7 +2,7 @@ <% if @params.timeRange is 'day': %>
<% for item in @timeRangeDay: %> -
<%= item.display %>
+
<%= item.display %>
<% end %>
<% end %> @@ -10,7 +10,7 @@ <% if @params.timeRange is 'day' || @params.timeRange is 'month': %>
<% for item in @timeRangeMonth: %> -
<%= item.display %>
+
<%= item.display %>
<% end %>
<% end %> @@ -18,7 +18,7 @@ <% if @params.timeRange is 'week': %>
<% for item in @timeRangeWeek: %> -
<%= item.display %>
+
<%= item.display %>
<% end %>
<% end %> @@ -26,7 +26,7 @@ <% if @params.timeRange isnt 'realtime': %>
<% for item in @timeRangeYear: %> -
<%= item.display %>
+
<%= item.display %>
<% end %>
<% end %> diff --git a/app/assets/stylesheets/bootstrap.css b/app/assets/stylesheets/bootstrap.css index 6ebfba4ce..f2b080de6 100644 --- a/app/assets/stylesheets/bootstrap.css +++ b/app/assets/stylesheets/bootstrap.css @@ -2266,56 +2266,6 @@ tbody.collapse.in { .btn-toolbar > .input-group { margin-left: 5px; } -.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { - border-radius: 0; -} -.btn-group > .btn:first-child { - margin-left: 0; -} -.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -.btn-group > .btn:last-child:not(:first-child), -.btn-group > .dropdown-toggle:not(:first-child) { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -.btn-group > .btn-group { - float: left; -} -.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; -} -.btn-group > .btn-group:first-child > .btn:last-child, -.btn-group > .btn-group:first-child > .dropdown-toggle { - border-top-right-radius: 0; - border-bottom-right-radius: 0; -} -.btn-group > .btn-group:last-child > .btn:first-child { - border-top-left-radius: 0; - border-bottom-left-radius: 0; -} -.btn-group .dropdown-toggle:active, -.btn-group.open .dropdown-toggle { - outline: 0; -} -.btn-group > .btn + .dropdown-toggle { - padding-right: 8px; - padding-left: 8px; -} -.btn-group > .btn-lg + .dropdown-toggle { - padding-right: 12px; - padding-left: 12px; -} -.btn-group.open .dropdown-toggle { - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125); -} -.btn-group.open .dropdown-toggle.btn-link { - -webkit-box-shadow: none; - box-shadow: none; -} .btn .caret { margin-left: 0; } diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index 18a4c6b44..ad5aa6a52 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -13,7 +13,7 @@ $minWidth: 1024px; $sidebarWidth: 280px; $navigationWidth: 260px; -$highlight-color: #3FA9F5; +$highlight-color: hsl(205,90%,60%); html { height: 100%; @@ -563,6 +563,12 @@ blockquote { .btn--text { padding: 6px 10px 5px; /* reporting main.eco */ display: inline-block; + border-radius: 3px; + + &.is-selected { + background: hsl(203,65%,55%); + color: white; + } } }