From 3588f9df164f4f8abee4495e95a0f43712b48e88 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Tue, 3 Oct 2023 13:45:25 +0300 Subject: [PATCH] feat: tixe-input css class --- input.css | 6 +++++ static/styles.css | 46 +++++++++++++++----------------- template/templates/index.tmpl | 4 +-- template/templates/linkedit.tmpl | 4 +-- template/templates/settings.tmpl | 2 +- template/templates/tags.tmpl | 2 +- 6 files changed, 33 insertions(+), 31 deletions(-) diff --git a/input.css b/input.css index 8aa14f2..13be507 100644 --- a/input.css +++ b/input.css @@ -2,6 +2,12 @@ @tailwind components; @tailwind utilities; +@layer components { + .tixe-input { + @apply p-1 border-2 rounded-md placeholder-slate-400 focus:outline-none; + } +} + .scribble { stroke-dasharray: 24; stroke-dashoffset: 24; diff --git a/static/styles.css b/static/styles.css index 4b70067..17c303c 100644 --- a/static/styles.css +++ b/static/styles.css @@ -534,6 +534,27 @@ video { --tw-backdrop-sepia: ; } +.tixe-input { + border-radius: 0.375rem; + border-width: 2px; + padding: 0.25rem; +} + +.tixe-input::-moz-placeholder { + --tw-placeholder-opacity: 1; + color: rgb(148 163 184 / var(--tw-placeholder-opacity)); +} + +.tixe-input::placeholder { + --tw-placeholder-opacity: 1; + color: rgb(148 163 184 / var(--tw-placeholder-opacity)); +} + +.tixe-input:focus { + outline: 2px solid transparent; + outline-offset: 2px; +} + .pointer-events-none { pointer-events: none; } @@ -880,26 +901,6 @@ video { color: transparent; } -.placeholder-slate-400::-moz-placeholder { - --tw-placeholder-opacity: 1; - color: rgb(148 163 184 / var(--tw-placeholder-opacity)); -} - -.placeholder-slate-400::placeholder { - --tw-placeholder-opacity: 1; - color: rgb(148 163 184 / var(--tw-placeholder-opacity)); -} - -.placeholder-slate-800::-moz-placeholder { - --tw-placeholder-opacity: 1; - color: rgb(30 41 59 / var(--tw-placeholder-opacity)); -} - -.placeholder-slate-800::placeholder { - --tw-placeholder-opacity: 1; - color: rgb(30 41 59 / var(--tw-placeholder-opacity)); -} - .opacity-0 { opacity: 0; } @@ -975,11 +976,6 @@ video { text-decoration-line: underline; } -.focus\:outline-none:focus { - outline: 2px solid transparent; - outline-offset: 2px; -} - .group\/summary[open] .group-open\/summary\:rotate-90 { --tw-rotate: 90deg; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); diff --git a/template/templates/index.tmpl b/template/templates/index.tmpl index 4416082..b13a674 100644 --- a/template/templates/index.tmpl +++ b/template/templates/index.tmpl @@ -12,11 +12,11 @@