Consolidate some styles
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Basti 2022-02-24 17:24:59 -06:00
parent 5751c0338a
commit ca940ec35d
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72
13 changed files with 30 additions and 37 deletions

View File

@ -18,4 +18,12 @@
h3 { h3 {
@apply text-xl mb-6; @apply text-xl mb-6;
} }
main section {
@apply pt-8 sm:pt-12;
}
main section:first-of-type {
@apply pt-0;
}
} }

View File

@ -85,10 +85,6 @@ main {
} }
} }
section {
margin-bottom: 3rem;
}
table { table {
width: 100%; width: 100%;

View File

@ -1,5 +1,5 @@
<main class="w-full max-w-xl mx-auto pb-12 px-4 sm:px-6 lg:px-8"> <main class="w-full max-w-xl mx-auto pb-12 px-4 sm:px-6 lg:px-8">
<div class="bg-white rounded-lg shadow px-6 py-12 sm:px-12"> <div class="bg-white rounded-lg shadow px-6 sm:px-12 py-8 sm:py-12">
<%= content %> <%= content %>
</div> </div>
</main> </main>

View File

@ -1,5 +1,5 @@
<main class="w-full max-w-6xl mx-auto pb-12 px-4 sm:px-6 lg:px-8"> <main class="w-full max-w-6xl mx-auto pb-12 px-4 md:px-6 lg:px-8">
<div class="bg-white rounded-lg shadow px-6 py-12 sm:px-12"> <div class="bg-white rounded-lg shadow px-6 sm:px-12 py-8 sm:py-12">
<%= content %> <%= content %>
</div> </div>
</main> </main>

View File

@ -14,7 +14,7 @@
</p> </p>
<p class="mt-8"> <p class="mt-8">
<%= f.submit "Resend confirmation link", <%= 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' %>
</p> </p>
<% end %> <% end %>

View File

@ -17,7 +17,7 @@
class: "w-full md:w-3/5"%> class: "w-full md:w-3/5"%>
</p> </p>
<p class="mt-8"> <p class="mt-8">
<%= 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' %>
</p> </p>
<% end %> <% end %>

View File

@ -15,7 +15,7 @@
class: "w-full md:w-3/5"%> class: "w-full md:w-3/5"%>
</p> </p>
<p class="mt-8"> <p class="mt-8">
<%= 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' %>
</p> </p>
<% end %> <% end %>

View File

@ -2,15 +2,12 @@
<%= render MainSimpleComponent.new do %> <%= render MainSimpleComponent.new do %>
<section> <section>
<p> <p class="mb-12">
Your financial contributions to the development and upkeep of Kosmos Your financial contributions to the development and upkeep of Kosmos
software and services. software and services.
</p> </p>
</section>
<section>
<% if @donations.any? %> <% if @donations.any? %>
<ul class="donations list-none"> <ul class="list-none">
<% @donations.each do |donation| %> <% @donations.each do |donation| %>
<li class="mb-8 grid gap-y-2 gap-x-8 grid-cols-2 items-center"> <li class="mb-8 grid gap-y-2 gap-x-8 grid-cols-2 items-center">
<h3 class="mb-0"> <h3 class="mb-0">
@ -36,7 +33,7 @@
<% end %> <% end %>
</ul> </ul>
<% else %> <% else %>
<p> <p class="text-gray-500">
No donations to show. No donations to show.
</p> </p>
<% end %> <% end %>

View File

@ -3,15 +3,10 @@
<%= render MainSimpleComponent.new do %> <%= render MainSimpleComponent.new do %>
<section> <section>
<% if @invitations_unused.any? %> <% if @invitations_unused.any? %>
<p> <p>
Invite your friends to a Kosmos account by sharing an invitation URL with them: Invite your friends to a Kosmos account by sharing an invitation URL with them:
</p> </p>
<% end %> <table class="mt-12">
</section>
<section>
<% if @invitations_unused.any? %>
<table>
<thead> <thead>
<tr class="text-left"> <tr class="text-left">
<th>URL</th> <th>URL</th>

View File

@ -2,14 +2,11 @@
<%= render MainSimpleComponent.new do %> <%= render MainSimpleComponent.new do %>
<section> <section>
<h2>Security</h2> <h2 class="mb-12">Security</h2>
</section>
<section>
<h3>Password change</h3> <h3>Password change</h3>
<p> <p>
<%= form_with(url: settings_reset_password_path, method: :post) do %> <%= 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 %> <% end %>
</p> </p>
</section> </section>

View File

@ -11,6 +11,6 @@
</p> </p>
<p class="mt-12"> <p class="mt-12">
<%= link_to "Get started", signup_steps_path(1), <%= 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" %>
</p> </p>
<% end %> <% end %>

View File

@ -17,7 +17,7 @@
<% end %> <% end %>
<p class="mt-12"> <p class="mt-12">
<%= f.submit "Continue", <%= 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" %>
</p> </p>
<% end %> <% end %>
@ -34,7 +34,7 @@
<% end %> <% end %>
<p class="mt-12"> <p class="mt-12">
<%= f.submit "Continue", <%= 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" %>
</p> </p>
<% end %> <% end %>
@ -56,7 +56,7 @@
</p> </p>
<p class="mt-8"> <p class="mt-8">
<%= f.submit "Create account", <%= 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" %>
</p> </p>
<% end %> <% end %>
<% end %> <% end %>

View File

@ -42,10 +42,10 @@
code/URL: code/URL:
</p> </p>
<p class="my-6 text-center md:text-left"> <p class="my-6 text-center md:text-left">
<button id="copy-setup-code" class="btn-md btn-blue">Copy setup code/URL</button> <button id="copy-setup-code" class="btn-md btn-blue w-full sm:w-auto">Copy setup code/URL</button>
<span class="mx-2 my-2 md:my-0 block md:inline">or</span> <span class="mx-2 my-2 md:my-0 block md:inline">or</span>
<button id="show-setup-code" class="btn-md btn-blue">Show setup QR code</button> <button id="show-setup-code" class="btn-md btn-blue w-full sm:w-auto">Show setup QR code</button>
<button id="hide-setup-code" class="btn-md btn-blue hidden">Hide setup QR code</button> <button id="hide-setup-code" class="hidden btn-md btn-blue w-full sm:w-auto">Hide setup QR code</button>
</p> </p>
<p id="setup-code" class="hidden my-10 w-full text-center"> <p id="setup-code" class="hidden my-10 w-full text-center">
<%= raw @svg %> <%= raw @svg %>