Skip to content

Business intelligence made simple

Reduced inline styles [skip ci]

Andrew Kanee404fcce82d7
diff --git a/app/assets/stylesheets/blazer/application.css b/app/assets/stylesheets/blazer/application.css
index 1c879ce1..d00a6bb1 100644
--- a/app/assets/stylesheets/blazer/application.css
+++ b/app/assets/stylesheets/blazer/application.css
@@ -269,6 +269,10 @@ h2 {
width: 15%;
}
+.description-header {
+ width: 60%;
+}
+
.notifiers {
margin-bottom: 0;
word-break: break-all;
@@ -278,3 +282,17 @@ h2 {
text-align: right;
padding: 1px;
}
+
+#dashboard-actions {
+ padding-bottom: 140px;
+}
+
+#dashboard-header {
+ line-height: 34px;
+ display: inline;
+ margin-left: 5px;
+}
+
+.dashboard-row {
+ padding-top: 13px;
+}
diff --git a/app/views/blazer/dashboards/_form.html.erb b/app/views/blazer/dashboards/_form.html.erb
index ea687332..32d644a5 100644
--- a/app/views/blazer/dashboards/_form.html.erb
+++ b/app/views/blazer/dashboards/_form.html.erb
@@ -15,7 +15,7 @@
<%= f.label :query_id, "Add Chart" %>
<%= select_tag :query_id, nil, {include_blank: true, placeholder: "Select chart"} %>
</div>
- <p style="padding-bottom: 140px;" class="hide" id="actions">
+ <p class="hide" id="dashboard-actions">
<% if @dashboard.persisted? %>
<%= link_to "Delete", dashboard_path(@dashboard), method: :delete, "data-confirm" => "Are you sure?", class: "btn btn-danger" %>
<% end %>
@@ -31,7 +31,7 @@
const queriesList = document.getElementById("queries")
const queriesGroup = document.getElementById("queries-group")
const querySelect = document.getElementById("query_id")
- const actions = document.getElementById("actions")
+ const actions = document.getElementById("dashboard-actions")
function addQuery(query) {
const li = document.createElement("li")
diff --git a/app/views/blazer/dashboards/show.html.erb b/app/views/blazer/dashboards/show.html.erb
index afcfc103..aff6330c 100644
--- a/app/views/blazer/dashboards/show.html.erb
+++ b/app/views/blazer/dashboards/show.html.erb
@@ -2,10 +2,10 @@
<div class="topbar">
<div class="container">
- <div class="row" style="padding-top: 13px;">
+ <div class="row dashboard-row">
<div class="col-sm-9">
<%= render partial: "blazer/nav" %>
- <h3 style="line-height: 34px; display: inline; margin-left: 5px;">
+ <h3 id="dashboard-header">
<%= @dashboard.name %>
</h3>
</div>
diff --git a/app/views/blazer/uploads/index.html.erb b/app/views/blazer/uploads/index.html.erb
index 9c51ee9c..0c27e7d2 100644
--- a/app/views/blazer/uploads/index.html.erb
+++ b/app/views/blazer/uploads/index.html.erb
@@ -26,7 +26,7 @@
<thead>
<tr>
<th>Table</th>
- <th style="width: 60%;"></th>
+ <th class="description-header"></th>
<% if Blazer.user_class %>
<th class="user-header">Mastermind</th>
<% end%>