From ca940ec35d811726b38c543f2a1816a65d8e7359 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 24 Feb 2022 17:24:59 -0600 Subject: [PATCH] Consolidate some styles --- app/assets/stylesheets/components/base.css | 8 ++++++++ app/assets/stylesheets/legacy/_layout.scss | 4 ---- app/components/main_compact_component.html.erb | 2 +- app/components/main_simple_component.html.erb | 4 ++-- app/views/devise/confirmations/new.html.erb | 2 +- app/views/devise/passwords/new.html.erb | 2 +- app/views/devise/sessions/new.html.erb | 2 +- app/views/donations/index.html.erb | 9 +++------ app/views/invitations/index.html.erb | 13 ++++--------- app/views/security/index.html.erb | 7 ++----- app/views/signup/index.html.erb | 2 +- app/views/signup/steps.html.erb | 6 +++--- app/views/wallet/index.html.erb | 6 +++--- 13 files changed, 30 insertions(+), 37 deletions(-) diff --git a/app/assets/stylesheets/components/base.css b/app/assets/stylesheets/components/base.css index f022c1a..5bb472c 100644 --- a/app/assets/stylesheets/components/base.css +++ b/app/assets/stylesheets/components/base.css @@ -18,4 +18,12 @@ h3 { @apply text-xl mb-6; } + + main section { + @apply pt-8 sm:pt-12; + } + + main section:first-of-type { + @apply pt-0; + } } diff --git a/app/assets/stylesheets/legacy/_layout.scss b/app/assets/stylesheets/legacy/_layout.scss index 1f8bc43..222b34e 100644 --- a/app/assets/stylesheets/legacy/_layout.scss +++ b/app/assets/stylesheets/legacy/_layout.scss @@ -85,10 +85,6 @@ main { } } - section { - margin-bottom: 3rem; - } - table { width: 100%; diff --git a/app/components/main_compact_component.html.erb b/app/components/main_compact_component.html.erb index d1d2a5f..80161b6 100644 --- a/app/components/main_compact_component.html.erb +++ b/app/components/main_compact_component.html.erb @@ -1,5 +1,5 @@
-
+
<%= content %>
diff --git a/app/components/main_simple_component.html.erb b/app/components/main_simple_component.html.erb index 3d75a30..b72b31d 100644 --- a/app/components/main_simple_component.html.erb +++ b/app/components/main_simple_component.html.erb @@ -1,5 +1,5 @@ -
-
+
+
<%= content %>
diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb index 86f6ae9..4f51d90 100644 --- a/app/views/devise/confirmations/new.html.erb +++ b/app/views/devise/confirmations/new.html.erb @@ -14,7 +14,7 @@

<%= f.submit "Resend confirmation link", - class: 'btn-md btn-blue w-full md:w-auto' %> + class: 'btn-md btn-blue w-full sm:w-auto' %>

<% end %> diff --git a/app/views/devise/passwords/new.html.erb b/app/views/devise/passwords/new.html.erb index e14002b..622f238 100644 --- a/app/views/devise/passwords/new.html.erb +++ b/app/views/devise/passwords/new.html.erb @@ -17,7 +17,7 @@ class: "w-full md:w-3/5"%>

- <%= f.submit "Send me a reset link", class: 'btn-md btn-blue w-full md:w-auto' %> + <%= f.submit "Send me a reset link", class: 'btn-md btn-blue w-full sm:w-auto' %>

<% end %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index f557cc1..607edb3 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -15,7 +15,7 @@ class: "w-full md:w-3/5"%>

- <%= f.submit "Log in", class: 'btn-md btn-blue w-full md:w-auto' %> + <%= f.submit "Log in", class: 'btn-md btn-blue w-full sm:w-auto' %>

<% end %> diff --git a/app/views/donations/index.html.erb b/app/views/donations/index.html.erb index 95cd52c..bbb4f3c 100644 --- a/app/views/donations/index.html.erb +++ b/app/views/donations/index.html.erb @@ -2,15 +2,12 @@ <%= render MainSimpleComponent.new do %>
-

+

Your financial contributions to the development and upkeep of Kosmos software and services.

-
- -
<% if @donations.any? %> -
    +
      <% @donations.each do |donation| %>
    • @@ -36,7 +33,7 @@ <% end %>

    <% else %> -

    +

    No donations to show.

    <% end %> diff --git a/app/views/invitations/index.html.erb b/app/views/invitations/index.html.erb index 377d268..e91d9ca 100644 --- a/app/views/invitations/index.html.erb +++ b/app/views/invitations/index.html.erb @@ -3,15 +3,10 @@ <%= render MainSimpleComponent.new do %>
    <% if @invitations_unused.any? %> -

    - Invite your friends to a Kosmos account by sharing an invitation URL with them: -

    - <% end %> -
    - -
    - <% if @invitations_unused.any? %> - +

    + Invite your friends to a Kosmos account by sharing an invitation URL with them: +

    +
    diff --git a/app/views/security/index.html.erb b/app/views/security/index.html.erb index 797454a..046ff9c 100644 --- a/app/views/security/index.html.erb +++ b/app/views/security/index.html.erb @@ -2,14 +2,11 @@ <%= render MainSimpleComponent.new do %>
    -

    Security

    -
    - -
    +

    Security

    Password change

    <%= form_with(url: settings_reset_password_path, method: :post) do %> - <%= submit_tag("Send me a password reset link", class: 'btn-md btn-gray') %> + <%= submit_tag("Send me a password reset link", class: 'btn-md btn-gray w-full sm:w-auto') %> <% end %>

    diff --git a/app/views/signup/index.html.erb b/app/views/signup/index.html.erb index 075deeb..4487623 100644 --- a/app/views/signup/index.html.erb +++ b/app/views/signup/index.html.erb @@ -11,6 +11,6 @@

    <%= link_to "Get started", signup_steps_path(1), - class: "btn-md btn-blue block w-full md:inline-block md:w-auto" %> + class: "btn-md btn-blue block w-full md:inline-block sm:w-auto" %>

    <% end %> diff --git a/app/views/signup/steps.html.erb b/app/views/signup/steps.html.erb index b1c53e4..09a3d2e 100644 --- a/app/views/signup/steps.html.erb +++ b/app/views/signup/steps.html.erb @@ -17,7 +17,7 @@ <% end %>

    <%= f.submit "Continue", - class: "btn-md btn-blue block w-full md:inline-block md:w-auto" %> + class: "btn-md btn-blue block w-full md:inline-block sm:w-auto" %>

    <% end %> @@ -34,7 +34,7 @@ <% end %>

    <%= f.submit "Continue", - class: "btn-md btn-blue block w-full md:inline-block md:w-auto" %> + class: "btn-md btn-blue block w-full md:inline-block sm:w-auto" %>

    <% end %> @@ -56,7 +56,7 @@

    <%= f.submit "Create account", - class: "btn-md btn-blue block w-full md:inline-block md:w-auto" %> + class: "btn-md btn-blue block w-full sm:inline-block sm:w-auto" %>

    <% end %> <% end %> diff --git a/app/views/wallet/index.html.erb b/app/views/wallet/index.html.erb index 25f8780..afabb25 100644 --- a/app/views/wallet/index.html.erb +++ b/app/views/wallet/index.html.erb @@ -42,10 +42,10 @@ code/URL:

    - + or - - + +

    URL