rudimentary form
This commit is contained in:
parent
eab2134685
commit
b86f7f6ea0
7 changed files with 121 additions and 23 deletions
|
|
@ -1,6 +1,8 @@
|
|||
:root {
|
||||
--swieta-green: oklch(40% .08 155);
|
||||
--swieta-gold: oklch(75% .12 80);
|
||||
--swieta-red: oklch(45% .15 25);
|
||||
--border-color: color-mix(in oklab, var(--swieta-green) 25%, transparent);
|
||||
}
|
||||
|
||||
#swieta {
|
||||
|
|
@ -71,7 +73,7 @@
|
|||
}
|
||||
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px solid var(--on-surface);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -138,3 +140,72 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#order-form {
|
||||
border-radius: var(--border-radius);
|
||||
background-color: var(--secondary-container);
|
||||
& > p, & > h2{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
& > form {
|
||||
|
||||
display: grid;
|
||||
gap: 1rem;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
grid-template-rows: auto auto auto;
|
||||
& > fieldset {
|
||||
grid-column: -1 / 1;
|
||||
& > div {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto auto auto;
|
||||
|
||||
& > span > span{
|
||||
color: var(--swieta-red);
|
||||
}
|
||||
& > input {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
text-align: center;
|
||||
width: 2rem;
|
||||
appearance: textfield;
|
||||
-moz-appearance: textfield;
|
||||
&::-webkit-inner-spin-button,
|
||||
&::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
& > button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
margin: 0.5rem;
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
padding: 0.5rem;
|
||||
border-radius: var(--border-radius);
|
||||
border: none;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
& > input, & > fieldset {
|
||||
background-color: var(--surface);
|
||||
}
|
||||
& input:focus{
|
||||
outline: none;
|
||||
}
|
||||
& > * {
|
||||
padding: 1rem;
|
||||
border-radius: var(--small-radius);
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
& > button {
|
||||
grid-column: -1 / 1;
|
||||
background-color: var(--swieta-red);
|
||||
color: var(--surface);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue