Explorar o código

Remove inline style

Andrew Kane %!s(int64=8) %!d(string=hai) anos
pai
achega
84058544a6

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

@@ -143,3 +143,17 @@ input.search:focus {
   height: 60px;
   z-index: 1001;
 }
+
+.glyphicon-remove {
+  cursor: pointer;
+  color: #d9534f;
+  display: none;
+}
+
+.list-group li:hover .glyphicon-remove {
+  display: inline;
+}
+
+.list-group {
+  cursor: move;
+}

+ 0 - 16
app/views/blazer/dashboards/_form.html.erb

@@ -2,22 +2,6 @@
   <div class="alert alert-danger"><%= @dashboard.errors.full_messages.first %></div>
 <% end %>
 
-<style>
-.glyphicon-remove {
-  cursor: pointer;
-  color: #d9534f;
-  display: none;
-}
-
-li:hover .glyphicon-remove {
-  display: inline;
-}
-
-.list-group {
-  cursor: move;
-}
-</style>
-
 <%= form_for @dashboard, url: (@dashboard.persisted? ? dashboard_path(@dashboard, variable_params) : dashboards_path(variable_params)) do |f| %>
   <div class="form-group">
     <%= f.label :name %>