~ihabunek/triglav

ef0475ec344f5e256f259f4896ccae03cd1a29f7 — Ivan Habunek 1 year, 1 month ago c68b5b4
Clean up lists styling
M assets/css/_reset.scss => assets/css/_reset.scss +1 -12
@@ 5,14 5,8 @@
  box-sizing: border-box;
}

/* Remove default padding */
ul[class], ol[class] {
  padding: 0;
}

/* Remove default margin */
body, h1, h2, h3, h4, p, ul[class], ol[class], li, figure, figcaption,
blockquote, dl, dd {
body, h1, h2, h3, h4, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
}



@@ 24,11 18,6 @@ body {
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */
ul[class], ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;

M assets/css/app.scss => assets/css/app.scss +2 -1
@@ 16,7 16,7 @@ section + section {

hr {
  border-top: none;
  border-bottom: 1px solid rgba($red, 0.3);
  border-bottom: 1px solid LightGray;
  margin: 1rem 0;
}



@@ 28,6 28,7 @@ h1, h2, h3, h4, h5 {

ul {
  margin: 0 0 1rem 0;
  padding: 0 0 0 1.5rem;
}

table {

M lib/triglav_web/templates/zet/routes/detail.html.eex => lib/triglav_web/templates/zet/routes/detail.html.eex +10 -8
@@ 10,16 10,18 @@
  <%= if length(@errors) > 0 do %>
    <section>
      <h3>Errors</h3>
      <ul class="red">
      <ul>
        <%= for error <- @errors do %>
          <li>
            <%= case error do
              {relation, error} -> [
                osm_link(relation, tags: ["type"]),
                error
              ]
              error -> error
            end %>
            <span class="red">
              <%= case error do
                {relation, error} -> [
                  osm_link(relation, tags: ["type"]),
                  error
                ]
                error -> error
              end %>
            </span>
          </li>
        <% end %>
      </ul>

M lib/triglav_web/templates/zet/routes/index.html.eex => lib/triglav_web/templates/zet/routes/index.html.eex +7 -5
@@ 29,13 29,15 @@
        </td>
        <td>
          <%= if !Enum.empty?(errors) do %>
          <ul class="no-margin red">
          <ul>
            <%= for error <- errors do %>
              <li>
                <%= case error do
                  {relation, error} -> [osm_link(relation, tags: ["type"]), error]
                  error -> error
                end %>
                <span class="red">
                  <%= case error do
                    {relation, error} -> [osm_link(relation, tags: ["type"]), error]
                    error -> error
                  end %>
                </span>
              </li>
            <% end %>
          </ul>