move submit button from code to tailwind

This commit is contained in:
2023-01-21 19:11:21 +02:00
parent af58e885d7
commit 84fef50e16
10 changed files with 76 additions and 29 deletions

View File

@ -1,2 +1,19 @@
@import "./tailwind_base.css";
@import "./merged/tailwind_styles.css";
@layer components {
.button {
@apply mr-3 inline-block rounded-lg px-3 py-2 text-base font-medium border border-gray-500;
}
.change {
@apply bg-cyan-200;
}
.remove {
@apply bg-red-200;
}
.action {
@apply bg-green-200;
}
}

View File

@ -1282,6 +1282,37 @@ select {
margin-bottom: 0;
}
.button {
margin-right: 0.75rem;
display: inline-block;
border-radius: 0.5rem;
border-width: 1px;
--tw-border-opacity: 1;
border-color: rgb(107 114 128 / var(--tw-border-opacity));
padding-left: 0.75rem;
padding-right: 0.75rem;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
font-size: 1rem;
line-height: 1.5rem;
font-weight: 500;
}
.change {
--tw-bg-opacity: 1;
background-color: rgb(165 243 252 / var(--tw-bg-opacity));
}
.remove {
--tw-bg-opacity: 1;
background-color: rgb(254 202 202 / var(--tw-bg-opacity));
}
.action {
--tw-bg-opacity: 1;
background-color: rgb(187 247 208 / var(--tw-bg-opacity));
}
.sr-only {
position: absolute;
width: 1px;