Improve form buttons styling

Close 
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
nummi/main/static/main/css

View file

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

View file

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

View file

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