This allows the bootstrap list typography to work without being overridden. It also means
that lists look like normal lists by default, instead of needing to be recreated from
scratch each time. Only the cases where padding and discs are unwanted need to have
custom CSS.
/* Minimal CSS reset */
-html, body, ul, ol, li, form, fieldset, legend, input {
+html, body, form, fieldset, legend, input {
margin: 0;
padding: 0;
border: 0;
border-spacing: 0;
}
-li { list-style: none; }
-
input,
select,
textarea,
nav.primary {
> ul {
+ padding: 0;
$border: 1px solid $green;
border: $border;
> ul {
vertical-align: middle;
+ margin: 0;
+ padding: 0;
+
a, .dropdown-toggle {
display: inline-block;
text-decoration: none;
border: $border;
border-radius: $border-radius;
margin-left: 10px;
+ padding: 0;
> li {
border-right: $border;
/* Rules for search sidebar */
#sidebar .search_results_entry {
+ ul {
+ padding: 0;
+ }
+
ul li {
border-bottom: $keyline;
cursor: pointer;
+ list-style-type: none;
&:first-child { border-top: $keyline; }
&.selected { background: $list-highlight; }
}
border-radius: 3px;
}
- .paginate ul {
- padding-left: 20px;
- }
-
.browse-field {
margin-bottom: 10px;
margin-bottom: 0;
}
-#friends-container .contact-activity ul {
- margin-left: 70px;
-}
-
.users-show {
// Silly exception; remove when user page is redesigned.
.content-inner {
margin-bottom: 0px;
padding: $lineheight/4;
}
-
- ul {
- padding-left: $lineheight;
-
- li {
- font-size: 12px;
- list-style: disc;
- }
- }
}
/* Rules for forms */
}
.form-list li {
margin-bottom: 5px;
- }
+ list-style-type: none;
+ }
input[type="checkbox"],
input[type="radio"] {
float: left;
font-style: normal;
margin-bottom: 0;
margin-left: 0;
+ padding: 0;
&.pager {
display: inline-block;
margin-right: 60px;
margin: 0;
color: $darkgrey;
}
-
- ul, ol {
- padding-left: $lineheight;
- margin-bottom: $lineheight;
- margin-left: $lineheight;
- }
-
- ul > li {
- list-style: disc;
- }
-
- ol > li {
- list-style: decimal;
- }
}
.diary_post .richtext {
opacity: 0.7;
}
-.related-reports {
- ul {
- padding-left: $lineheight;
- margin-bottom: 0;
-
- li {
- list-style: disc;
- }
- }
-}
-
.issues-list {
td:nth-child(2) {
white-space: nowrap;
}
}
-
-.report-disclaimer {
- ul {
- padding-left: $lineheight;
- margin-bottom: 0;
-
- li {
- list-style: disc;
- }
- }
-}
<%= type_and_paginated_count("way", @way_pages) %>
<%= render :partial => "paging_nav", :locals => { :pages => @way_pages, :page_param => "way_page" } %>
</h4>
- <ul>
+ <ul class="list-unstyled">
<% @ways.each do |way| %>
<li><%= link_to printable_name(way, true), { :action => "way", :id => way.way_id.to_s }, { :class => link_class("way", way), :title => link_title(way) } %></li>
<% end %>
<%= type_and_paginated_count("relation", @relation_pages) %>
<%= render :partial => "paging_nav", :locals => { :pages => @relation_pages, :page_param => "relation_page" } %>
</h4>
- <ul>
+ <ul class="list-unstyled">
<% @relations.each do |relation| %>
<li><%= link_to printable_name(relation, true), { :action => "relation", :id => relation.relation_id.to_s }, { :class => link_class("relation", relation), :title => link_title(relation) } %></li>
<% end %>
<%= type_and_paginated_count("node", @node_pages) %>
<%= render :partial => "paging_nav", :locals => { :pages => @node_pages, :page_param => "node_page" } %>
</h4>
- <ul>
+ <ul class="list-unstyled">
<% @nodes.each do |node| %>
<li><%= link_to printable_name(node, true), { :action => "node", :id => node.node_id.to_s }, { :class => link_class("node", node), :title => link_title(node), :rel => link_follow(node) } %></li>
<% end %>
</div>
<% if @issue.reported_user %>
- <div class="col-md-4 related-reports">
+ <div class="col-md-4">
<h3><%= t ".other_issues_against_this_user" %></h3>
<% if @related_issues.count > 1 %>
<ul>
<h1><%= t ".title_html", :link => link_to(reportable_title(@report.issue.reportable), reportable_url(@report.issue.reportable)) %></h1>
<% end %>
-<div class="alert alert-warning report-disclaimer">
+<div class="alert alert-warning">
<%= t(".disclaimer.intro") %>
- <ul>
+ <ul class="mb-0">
<li> <%= t(".disclaimer.not_just_mistake") %> </li>
<li> <%= t(".disclaimer.unable_to_fix") %> </li>
<li> <%= t(".disclaimer.resolve_with_user") %> </li>
<%= form_for(@report) do |f| %>
<%= f.error_messages %>
- <fieldset>
+ <fieldset class="standard-form">
<%= f.fields_for @report.issue do |issue_form| %>
<%= issue_form.hidden_field :reportable_id %>
<%= issue_form.hidden_field :reportable_type %>
<div class='standard-form-row'>
<p><%= t(".select") %></p>
- <ul>
+ <ul class="form-list">
<% Report.categories_for(@report.issue.reportable).each do |c| %>
<li>
<%= radio_button :report, :category, c, :required => true %>
- <%= label_tag "report_category_#{c}", t(".categories.#{@report.issue.reportable.class.name.underscore}.#{c}_label") %> <br />
+ <%= label_tag "report_category_#{c}", t(".categories.#{@report.issue.reportable.class.name.underscore}.#{c}_label") %>
</li>
<% end %>
</ul>