]> git.openstreetmap.org Git - rails.git/commitdiff
Remove inline styles
authorTom Hughes <tom@compton.nu>
Sun, 5 Mar 2017 19:51:01 +0000 (19:51 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 5 Mar 2017 19:51:01 +0000 (19:51 +0000)
app/assets/stylesheets/common.scss
app/views/layouts/map.html.erb
app/views/layouts/site.html.erb
app/views/oauth/authorize.html.erb
app/views/site/export.html.erb
app/views/trace/view.html.erb
app/views/user/_terms.html.erb

index bb0e6f0d44d728b64d5d67cc4d9414d55e3d90aa..47e76fceb9598fce175a109cd2c8be32362cd9b2 100644 (file)
@@ -148,6 +148,8 @@ small, aside {
 
 .red { color: $red; }
 
 
 .red { color: $red; }
 
+.piwik { border: 0; }
+
 /* Rules for icons */
 
 .icon {
 /* Rules for icons */
 
 .icon {
@@ -604,7 +606,7 @@ body.compact {
       display: block;
     }
 
       display: block;
     }
 
-    #sidebar_content {
+    #sidebar_loader, #sidebar_content {
       display: none;
     }
   }
       display: none;
     }
   }
@@ -1477,6 +1479,18 @@ tr.turn:hover {
   }
 }
 
   }
 }
 
+/* Rules for the trace view */
+
+.trace-view {
+  .trace_pending {
+    color: red;
+  }
+
+  .geo {
+    display: inline;
+  }
+}
+
 /* Rules for the new trace form */
 
 #new_trace {
 /* Rules for the new trace form */
 
 #new_trace {
@@ -1709,6 +1723,14 @@ tr.turn:hover {
     margin-bottom: $lineheight;
     overflow: auto;
     height: 20em;
     margin-bottom: $lineheight;
     overflow: auto;
     height: 20em;
+
+    li {
+      list-style: inherit;
+    }
+
+    ol ol {
+      list-style-type: lower-alpha;
+    }
   }
 
   #decline {
   }
 
   #decline {
@@ -1767,6 +1789,12 @@ tr.turn:hover {
   border-radius: 0 2px 2px 0;
 }
 
   border-radius: 0 2px 2px 0;
 }
 
+/* Rules for the oauth authorization page */
+
+.oauth-authorize ul {
+  list-style: none;
+}
+
 /* Rules for messages pages */
 
 .messages {
 /* Rules for messages pages */
 
 .messages {
index 3f11edf59cfd275a0323bb9b20031a63653e0919..9cd4f8a647dbd0164cfe29109ef7371317db718d 100644 (file)
@@ -36,7 +36,7 @@
 
     <div id="browse_status"></div>
 
 
     <div id="browse_status"></div>
 
-    <div id="sidebar_loader" style="display: none;">
+    <div id="sidebar_loader">
       <img alt="<%= t('browse.start_rjs.loading') %>" class="loader" src="<%= image_path("searching.gif") %>">
     </div>
 
       <img alt="<%= t('browse.start_rjs.loading') %>" class="loader" src="<%= image_path("searching.gif") %>">
     </div>
 
index 69ac7aa023a193cc40fad42a2c9a7393b0cb5cad..1e1e23ebb6fe37d0f4540e195bd272ab84a08191 100644 (file)
@@ -5,7 +5,7 @@
     <%= render :partial => "layouts/header" %>
     <%= render :partial => "layouts/content" %>
     <% if defined?(PIWIK) -%>
     <%= render :partial => "layouts/header" %>
     <%= render :partial => "layouts/content" %>
     <% if defined?(PIWIK) -%>
-    <noscript><p><img src="<%= request.protocol %><%= PIWIK['location'] %>/piwik.php?idsite=<%= PIWIK['site'] %>" style="border:0" alt="" /></p></noscript>
+    <noscript><p><img src="<%= request.protocol %><%= PIWIK['location'] %>/piwik.php?idsite=<%= PIWIK['site'] %>" class="piwik" alt="" /></p></noscript>
     <% end -%>
   </body>
 </html>
     <% end -%>
   </body>
 </html>
index 565d13808a6c6fb5c52c2afc920639c784d0cc41..c0271350d3f2d0bfd512cb64e7a250d95cf7f14f 100644 (file)
@@ -10,7 +10,7 @@
     <%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
   <%- end -%>
   <p><%= t 'oauth.oauthorize.allow_to' %></p>
     <%= hidden_field_tag "oauth_callback", params[:oauth_callback] %>
   <%- end -%>
   <p><%= t 'oauth.oauthorize.allow_to' %></p>
-  <ul style="list-style:none">
+  <ul>
   <% @token.client_application.permissions.each do |perm| %>
     <li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= t "oauth.oauthorize.#{perm}" %></li>
   <% end %>
   <% @token.client_application.permissions.each do |perm| %>
     <li><%= check_box_tag perm.to_s, "yes", @token.read_attribute(perm) %><%= t "oauth.oauthorize.#{perm}" %></li>
   <% end %>
index 9ac03e70d5944e51cbc8878d120f68eac8c1028a..128db59928e8c1ae67af6dbf387fa840d4b0f5ad 100644 (file)
@@ -9,7 +9,7 @@
   <%= hidden_field_tag 'format', 'osm' %>
 
   <div class='export_area_inputs'>
   <%= hidden_field_tag 'format', 'osm' %>
 
   <div class='export_area_inputs'>
-    <div class='export_boxy' style="border: 1px solid #ccc;">
+    <div class='export_boxy'>
       <%= text_field_tag('maxlat', nil, :size => 10, :class => "export_bound") %>
       <br/>
       <%= text_field_tag('minlon', nil, :size => 10, :class => "export_bound") %>
       <%= text_field_tag('maxlat', nil, :size => 10, :class => "export_bound") %>
       <br/>
       <%= text_field_tag('minlon', nil, :size => 10, :class => "export_bound") %>
index fac0139d94c7ac73f1c9a285800036a44027a4f2..dda78f954828c11d9d90b1c7cb4574cac110e01e 100644 (file)
@@ -6,7 +6,7 @@
   <% if @trace.inserted %>
     <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
   <% else %>
   <% if @trace.inserted %>
     <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
   <% else %>
-    <span style="color:red"><%= t'trace.view.pending' %></span>
+    <span class="trace_pending"><%= t'trace.view.pending' %></span>
   <% end %>
 <% end %>
 
   <% end %>
 <% end %>
 
@@ -25,7 +25,7 @@
     <td><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %></td></tr>
   <tr>
     <td><%= t'trace.view.start_coordinates' %></td>
     <td><%= @trace.size.to_s.gsub(/(\d)(?=(\d{3})+$)/,'\1,') %></td></tr>
   <tr>
     <td><%= t'trace.view.start_coordinates' %></td>
-    <td><div class="geo" style="display: inline"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%=link_to t('trace.view.map'), :controller => 'site', :action => 'index', :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%=link_to t('trace.view.edit'), :controller => 'site', :action => 'edit', :gpx=> @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)</td>
+    <td><div class="geo"><span class="latitude"><%= @trace.latitude %></span>; <span class="longitude"><%= @trace.longitude %></span></div> (<%=link_to t('trace.view.map'), :controller => 'site', :action => 'index', :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %> / <%=link_to t('trace.view.edit'), :controller => 'site', :action => 'edit', :gpx=> @trace.id, :anchor => "map=14/#{@trace.latitude}/#{@trace.longitude}" %>)</td>
   </tr>
   <% end %>
   <tr>
   </tr>
   <% end %>
   <tr>
index 11c3f504944cd98b7afac19aa92afcd100e07520..ad0b74166980f14dd7005a67c2bfddf945fc967f 100644 (file)
@@ -7,7 +7,7 @@
   <li>
     <p><%= raw @text['section_1'] %></p>
     <% unless @text['section_1a'].nil? %>
   <li>
     <p><%= raw @text['section_1'] %></p>
     <% unless @text['section_1a'].nil? %>
-    <ol style="list-style-type: lower-alpha">
+    <ol>
       <li><%= raw @text['section_1a'] %></li>
       <li><%= raw @text['section_1b'] %></li>
     </ol>
       <li><%= raw @text['section_1a'] %></li>
       <li><%= raw @text['section_1b'] %></li>
     </ol>