From fc53449cad397108629ae4323026b1856b527d7a Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Fri, 9 Sep 2022 14:04:38 +0300 Subject: [PATCH] Add styles for index page --- app/assets/styles.css | 14 ++++---------- app/components/headers/h1.hbs | 2 +- app/components/headers/h2.hbs | 2 +- app/components/stat.hbs | 6 +++--- app/components/theme-toggler.hbs | 4 ++-- app/templates/admin/index.hbs | 11 ++++------- app/templates/login.hbs | 2 +- config/tailwind.config.js | 4 +++- 8 files changed, 19 insertions(+), 26 deletions(-) diff --git a/app/assets/styles.css b/app/assets/styles.css index 9fd354f..ff8f783 100644 --- a/app/assets/styles.css +++ b/app/assets/styles.css @@ -52,15 +52,13 @@ } .royal-table { - @apply table-auto border text-left mb-4; + @apply table-auto text-left mb-4; thead { - @apply bg-base-4; - tr { - @apply border-b; - th { + @apply bg-base-6; + @apply first:rounded-l last:rounded-r; @apply px-4 py-4 text-base-2 font-normal whitespace-nowrap; &[type='button'] { @@ -79,12 +77,8 @@ tbody { tr { - &:nth-child(even) { - @apply bg-base-4; - } - td { - @apply px-4 py-2 text-base-6 align-top; + @apply px-4 py-3 align-top; } } } diff --git a/app/components/headers/h1.hbs b/app/components/headers/h1.hbs index f4c98b2..e2b4c0f 100644 --- a/app/components/headers/h1.hbs +++ b/app/components/headers/h1.hbs @@ -1,4 +1,4 @@ -

+

{{#if (has-block)}} {{yield}} {{else}} diff --git a/app/components/headers/h2.hbs b/app/components/headers/h2.hbs index 8dffb80..ae701aa 100644 --- a/app/components/headers/h2.hbs +++ b/app/components/headers/h2.hbs @@ -1,4 +1,4 @@ -

+

{{#if (has-block)}} {{yield}} {{else}} diff --git a/app/components/stat.hbs b/app/components/stat.hbs index 2a09d3b..30fcbdc 100644 --- a/app/components/stat.hbs +++ b/app/components/stat.hbs @@ -1,14 +1,14 @@
{{yield to='icon'}}
-
+
{{@title}}
-
+
{{#if (has-block)}} {{yield}} {{else}} diff --git a/app/components/theme-toggler.hbs b/app/components/theme-toggler.hbs index 39e105f..0d39b2e 100644 --- a/app/components/theme-toggler.hbs +++ b/app/components/theme-toggler.hbs @@ -1,4 +1,4 @@ -
+
{{#each this.themes as |item|}} {{#let (eq item.id this.theme) as |selected|}}