From 1e726cbf57443822ec2d131d85462e33bd4a3a37 Mon Sep 17 00:00:00 2001 From: Robert Prehn Date: Tue, 15 Sep 2020 16:19:40 -0500 Subject: [PATCH] fix: Standardize vertical and horizontal spacing --- .../templates/phx.gen.html/index.html.eex | 16 ++--- .../templates/pow/registration/new.html.eex | 2 +- .../templates/pow/session/new.html.eex | 4 +- .../reset_password/new.html.eex | 4 +- .../posts/static_pages/index.html.eex | 72 +++++++++---------- apps/core/assets/.stylelintignore | 1 + apps/core/assets/postcss.config.js | 7 +- .../core_web/templates/layout/_menu.html.eex | 2 +- apps/core/lib/core_web/views/helpers.ex | 6 +- 9 files changed, 59 insertions(+), 55 deletions(-) create mode 100644 apps/core/assets/.stylelintignore diff --git a/apps/app/priv/templates/phx.gen.html/index.html.eex b/apps/app/priv/templates/phx.gen.html/index.html.eex index a5f563d9..6b6eb5ae 100644 --- a/apps/app/priv/templates/phx.gen.html/index.html.eex +++ b/apps/app/priv/templates/phx.gen.html/index.html.eex @@ -1,9 +1,9 @@
-

<%= schema.human_plural %>

+

<%= schema.human_plural %>

-
+
<%%= styled_button_link "New <%= schema.human_singular %>", to: Routes.<%= schema.route_helper %>_path(@conn, :new) %>
@@ -12,16 +12,16 @@ - <%= for {k, _} <- schema.attrs do %> + <%= for {k, _} <- schema.attrs do %> <% end %> - + <%%= case @<%= schema.plural %> do %> <%%= [] -> %> - @@ -29,15 +29,15 @@ <%%= for <%= schema.singular %> <- @<%= schema.plural %> do %> <%= for {k, _} <- schema.attrs do %> - <% end %> -
<%= Phoenix.Naming.humanize(Atom.to_string(k)) %><%= Phoenix.Naming.humanize(Atom.to_string(k)) %>
+ No results.
+ <%%= link <%= schema.singular %>.<%= k %>, to: Routes.<%= schema.route_helper %>_path(@conn, :show, <%= schema.singular %>) %> +