~ihabunek/triglav

42415123ef786c4a60caad5b1b5a69de0ad5d653 — Ivan Habunek 9 months ago 015d510
Cleanup css util classes
M assets/css/app.scss => assets/css/app.scss +17 -9
@@ 157,20 157,28 @@ a.josm-remote {

// Utils

.bold { font-weight: bold; }
.tag { color: DimGray; white-space: nowrap; }

.no-margin { margin: 0; }
.no-wrap { white-space: nowrap; }
.inline-block { display: inline-block; }
.gray { color: gray; }
.red { color: $red; }
.bg-red { background-color: rgba($red, 0.3); }
.green { color: $green; }
.bg-green { background-color: rbga($green, 0.3); }
.tag { color: DimGray; white-space: nowrap; }
.smaller { font-size: 0.9rem; }
.hidden { visibility: hidden; }
.w-full { width: 100%; }
.text-center { text-align: center; }

.bg-red { background-color: rgba($red, 0.3); }
.bg-green { background-color: rbga($green, 0.3); }

.bold { font-weight: bold; }
.text-smaller { font-size: 0.9rem; }

.text-gray { color: DimGray; }
.text-red { color: $red; }
.text-green { color: $green; }

.text-left { text-align: left }
.text-center { text-align: center }
.text-right { text-align: right }
.text-justify { text-align: justify }

// Phoenix crap


M lib/triglav_web/templates/zet/routes/detail.html.eex => lib/triglav_web/templates/zet/routes/detail.html.eex +4 -4
@@ 77,7 77,7 @@
        <ul>
          <%= for error <- @errors do %>
            <li>
              <span class="red"><%= render_error(error) %></span>
              <span class="text-red"><%= render_error(error) %></span>
            </li>
          <% end %>
        </ul>


@@ 89,7 89,7 @@
              <%= osm_link(relation, tags: ["type"], name: true) %>
              <ul>
                <%= for error <- errors do %>
                  <li><span class="red"><%= render_error(error) %></span></li>
                  <li><span class="text-red"><%= render_error(error) %></span></li>
                <% end %>
              </ul>
            </li>


@@ 98,7 98,7 @@
      <% end %>
    </section>
  <% else %>
    <p class="green">No errors found.</p>
    <p class="text-green">No errors found.</p>
  <% end %>

  <hr />


@@ 138,7 138,7 @@

          <%= if matched_relation do %>
            <div class="callout">
              <span class="green">✔ Matched relation</span><br />
              <span class="text-green">✔ Matched relation</span><br />
              <%= osm_link(matched_relation, [josm: true]) %>
            </div>
          <% else %>

M lib/triglav_web/templates/zet/routes/index.html.eex => lib/triglav_web/templates/zet/routes/index.html.eex +3 -3
@@ 89,7 89,7 @@
        <td class="<%= if counts.total == counts.correct and counts.incorrect == 0, do: "success" %>">
          ZET: <%= counts.total %><br />
          Correct: <%= counts.correct %><br />
          <span class="<%= if counts.incorrect > 0, do: "red" %>">
          <span class="<%= if counts.incorrect > 0, do: "text-red" %>">
            Incorrect: <%= counts.incorrect %>
          </span>
        </td>


@@ 98,12 98,12 @@
          <ul>
            <%= for error <- route.errors do %>
              <li>
                <span class="red"><%= render_error(error) %></span>
                <span class="text-red"><%= render_error(error) %></span>
              </li>
            <% end %>
          </ul>
          <% else %>
            <span class="green">OK!</span>
            <span class="text-green">OK!</span>
          <% end %>
        </td>
      </tr>

M lib/triglav_web/views/osm_helpers.ex => lib/triglav_web/views/osm_helpers.ex +3 -3
@@ 37,7 37,7 @@ defmodule TriglavWeb.OsmHelpers do
        <%= relation.tags["name"] %>
      <% end %>
      <%= if !Enum.empty?(tags) do %>
        <span class="tag smaller">
        <span class="tag text-smaller">
          <%= for {k, v} <- tags do %>[<%= k %>=<%= v %>]<% end %>
        </span>
      <% end %>


@@ 72,7 72,7 @@ defmodule TriglavWeb.OsmHelpers do
        <%= node.tags["name"] %>
      <% end %>
      <%= if !Enum.empty?(tags) do %>
        <span class="tag smaller">
        <span class="tag text-smaller">
          <%= for {k, v} <- tags do %>[<%= k %>=<%= v %>]<% end %>
        </span>
      <% end %>


@@ 107,7 107,7 @@ defmodule TriglavWeb.OsmHelpers do
        <%= way.tags["name"] %>
      <% end %>
      <%= if !Enum.empty?(tags) do %>
        <span class="tag smaller">
        <span class="tag text-smaller">
          <%= for {k, v} <- tags do %>[<%= k %>=<%= v %>]<% end %>
        </span>
      <% end %>