Ver Fonte

DRY CSS

Andrew Kane há 8 anos atrás
pai
commit
afacc9484e

+ 10 - 0
app/assets/stylesheets/blazer/application.css

@@ -133,3 +133,13 @@ input.search:focus {
 .check-state.disabled {
   color: #000;
 }
+
+.topbar {
+  position: fixed;
+  top: 0;
+  left: 0;
+  right: 0;
+  background-color: whitesmoke;
+  height: 60px;
+  z-index: 1001;
+}

+ 1 - 1
app/views/blazer/dashboards/show.html.erb

@@ -1,6 +1,6 @@
 <% blazer_title @dashboard.name %>
 
-<div style="position: fixed; top: 0; left: 0; right: 0; background-color: whitesmoke; height: 60px; z-index: 1001;">
+<div class="topbar">
   <div class="container">
     <div class="row" style="padding-top: 13px;">
       <div class="col-sm-9">

+ 1 - 1
app/views/blazer/queries/show.html.erb

@@ -1,6 +1,6 @@
 <% blazer_title @query.name %>
 
-<div style="position: fixed; top: 0; left: 0; right: 0; background-color: whitesmoke; height: 60px; z-index: 1001;">
+<div class="topbar">
   <div class="container">
     <div class="row" style="padding-top: 13px;">
       <div class="col-sm-9">