2023-05-10 03:20:37 +04:00
|
|
|
::placeholder { color: var(--primary-color); }
|
|
|
|
|
|
|
|
input[type=text],
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
background-color: var(--background-color);
|
|
|
|
border: none;
|
|
|
|
border-bottom: 1px solid var(--primary-color);
|
|
|
|
color: var(--text-color);
|
|
|
|
font: inherit; }
|
|
|
|
|
|
|
|
form#add {
|
|
|
|
display: grid;
|
|
|
|
gap: .5rem;
|
|
|
|
grid-template-areas:
|
|
|
|
"c n"
|
|
|
|
"t t"
|
|
|
|
"b b"
|
|
|
|
"a a";
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
max-width: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
width: 100%; }
|
|
|
|
|
|
|
|
form#add select { grid-area: c; }
|
|
|
|
form#add input[name="new-category"] { grid-area: n; }
|
|
|
|
form#add input[name="title"] { grid-area: t; }
|
2023-05-22 23:06:47 +04:00
|
|
|
form#add textarea[name="body"] {
|
|
|
|
grid-area: b;
|
|
|
|
max-width: 100%;
|
|
|
|
min-width: 100%; }
|
2023-05-10 03:20:37 +04:00
|
|
|
form#add button[type="submit"] { grid-area: a; }
|
|
|
|
|
|
|
|
form.edit {
|
|
|
|
display: grid;
|
|
|
|
gap: .5rem;
|
|
|
|
grid-template-areas:
|
|
|
|
"b b"
|
|
|
|
"e d";
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
max-width: 100%;
|
|
|
|
min-width: 100%;
|
|
|
|
width: 100%; }
|
|
|
|
|
|
|
|
form.edit textarea { grid-area: b; }
|
|
|
|
form.edit input[name="edit"] { grid-area: e; }
|
|
|
|
form.edit input[name="delete"] { grid-area: d; }
|