Improve form buttons styling

Close #34
This commit is contained in:
Edgar P. Burkhart 2025-01-04 14:33:57 +01:00
parent 6a17a3e333
commit 7851e8afbb
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 24 additions and 25 deletions

View file

@ -186,33 +186,33 @@ form {
} }
.buttons { .buttons {
grid-column: 1 / -1; grid-column: 1 / -1;
display: grid; line-height: 2rem;
grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); input,
grid-auto-rows: 1fr; a {
gap: 0.5rem;
align-items: center;
input {
font: inherit; font: inherit;
line-height: 1.5;
border-radius: var(--radius);
padding: 0 var(--gap);
cursor: pointer; cursor: pointer;
padding: 0 var(--gap);
border: var(--gray) 1px solid;
margin-right: 0.5rem;
margin-bottom: 0.5rem;
color: inherit;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
&[type="submit"] { }
border: 0.1rem solid var(--green);
background: var(--green-1); input[type="submit"] {
} background: var(--green-1);
&[type="reset"] { border-color: var(--green);
border: 0.1rem solid var(--red); }
background: var(--red-1); input[type="reset"] {
} background: var(--bg-1);
} }
a.del { a.del {
color: var(--red); color: var(--red);
border-color: var(--red);
border-style: dashed;
} }
} }
} }

View file

@ -24,7 +24,7 @@
--bg-inv: var(--theme-1); --bg-inv: var(--theme-1);
--text-inv: #ffffffde; --text-inv: #ffffffde;
--bg-01: #f0f0f0; --bg-1: #f0f0f0;
--text-green: #296629; --text-green: #296629;
--text-link: var(--text-green); --text-link: var(--text-green);
@ -118,7 +118,7 @@ nav {
top: 0; top: 0;
overflow-y: auto; overflow-y: auto;
background: var(--bg-01); background: var(--bg-1);
line-height: 2rem; line-height: 2rem;
h1 img { h1 img {
@ -240,7 +240,7 @@ footer {
color: var(--bg); color: var(--bg);
} }
&.white { &.white {
background: var(--bg-01); background: var(--bg-1);
} }
border-radius: var(--radius); border-radius: var(--radius);
height: 1.5em; height: 1.5em;
@ -283,7 +283,7 @@ ul.messages {
list-style-type: none; list-style-type: none;
margin: 0; margin: 0;
margin-bottom: var(--gap); margin-bottom: var(--gap);
background: var(--bg-01); background: var(--bg-1);
padding: 0; padding: 0;
li { li {

View file

@ -1,5 +1,4 @@
.table, .table {
form {
overflow-x: auto; overflow-x: auto;
width: 100%; width: 100%;
} }
@ -17,7 +16,7 @@ table {
width: 1ch; width: 1ch;
} }
thead tr:not(.new) { thead tr:not(.new) {
background: var(--bg-01); background: var(--bg-1);
} }
tr { tr {
border: 1px solid var(--gray); border: 1px solid var(--gray);