From 607f5562150ed1816f6adf05f780417cccfe7205 Mon Sep 17 00:00:00 2001 From: ondrej Date: Fri, 21 Oct 2022 12:44:56 +0200 Subject: [PATCH] Style buttons --- assets/main.css | 11 +++++++++++ assets/style.css | 23 +++++++++++++++++++---- layouts/_default/baseof.html | 2 +- layouts/partials/language-selector.html | 6 +++--- layouts/partials/theme-selector.html | 18 +++++++++--------- tailwind.config.js | 1 + 6 files changed, 44 insertions(+), 17 deletions(-) diff --git a/assets/main.css b/assets/main.css index 15cad09..56aa597 100644 --- a/assets/main.css +++ b/assets/main.css @@ -128,3 +128,14 @@ code { .clip-wedge { clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%); } + +/* Components */ + +.button { + padding: 0.5em; + border-radius: 100px; +} + +.button:hover { + background-color: theme("colors.gray.200"); +} diff --git a/assets/style.css b/assets/style.css index b5e26e9..7628ef6 100644 --- a/assets/style.css +++ b/assets/style.css @@ -672,14 +672,14 @@ video { align-items: center; } -.gap-6 { - gap: 1.5rem; -} - .gap-2 { gap: 0.5rem; } +.gap-6 { + gap: 1.5rem; +} + .truncate { overflow: hidden; text-overflow: ellipsis; @@ -732,6 +732,10 @@ video { font-weight: 700; } +.font-semibold { + font-weight: 500; +} + .text-gray-500 { --tw-text-opacity: 1; color: rgb(107 114 128 / var(--tw-text-opacity)); @@ -875,6 +879,17 @@ code { clip-path: polygon(0 5%, 100% 0, 100% 95%, 0% 100%); } +/* Components */ + +.button { + padding: 0.5em; + border-radius: 100px; +} + +.button:hover { + background-color: #e5e7eb; +} + @media (min-width: 768px) { .md\:mr-auto { margin-right: auto; diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 19eb0c5..24617bc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -17,7 +17,7 @@ x-bind:class="`color-scheme--${colorScheme}`" >
-
+
{{ site.Title }} diff --git a/layouts/partials/language-selector.html b/layouts/partials/language-selector.html index 1e96d3d..0379c8a 100644 --- a/layouts/partials/language-selector.html +++ b/layouts/partials/language-selector.html @@ -1,5 +1,5 @@

{{ i18n "lang_select_title" }}

-