Removed redundant ids and blocks were rearranged in guestbook.css. Also feedback class renamed to reply.

This commit is contained in:
Alexander Andreev 2022-10-19 21:04:13 +04:00
parent e0a81990e7
commit 28120c8f3a
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -1,82 +1,86 @@
::placeholder { color: var(--primary-color); } ::placeholder { color: var(--primary-color); }
button.refresh:disabled { button.refresh:disabled {
color: gray; color: gray;
cursor: progress; } cursor: progress; }
#new-post { form {
display: grid; display: grid;
gap: .5rem; gap: .5rem;
grid-template-areas: grid-template-areas:
"n w w" "n w w"
"m m m" "m m m"
"c a s"; "c a s";
grid-template-columns: 1fr 1fr 1fr; } grid-template-columns: 1fr 1fr 1fr; }
#new-post input[name="name"] { grid-area: n; } :is(input, textarea):focus {
outline-color: var(--primary-color);
outline-style: solid;
outline-width: 1px; }
#new-post input[name="website"] { grid-area: w; } input[name="name"] { grid-area: n; }
#new-post span.checkboxes { grid-area: c; } input[name="website"] { grid-area: w; }
#new-post textarea { textarea {
grid-area: m; grid-area: m;
height: 5.5rem; height: 5.5rem;
max-width: 100%; max-width: 100%;
min-width: 100%; } min-width: 100%; }
#new-post input[type="submit"] { input[type="text"],
background-color: var(--primary-color); textarea {
border: none; background-color: var(--background-color);
color: #f5f5f5; border: none;
font: inherit; border-bottom: 1px solid var(--primary-color);
grid-area: s; color: var(--text-color);
height: 2rem; } font: inherit; }
#new-post input[type="submit"]:hover { background-color: var(--secondary-color); } span.checkboxes { grid-area: c; }
#new-post span.checkbox:not(:last-child) { margin-right: 2rem; } span.checkbox:not(:last-child) { margin-right: 2rem; }
#new-post input[type="text"], span.captcha {
#new-post textarea { display: flex;
background-color: var(--background-color); flex-basis: 100%;
border: none; grid-area: a;
border-bottom: 1px solid var(--primary-color); justify-content: space-evenly; align-items: center; column-gap: .5rem; }
color: var(--text-color);
font: inherit; }
#new-post span.captcha { span.captcha img {
display: flex; height: 40px;
flex-basis: 100%; width: 160px; }
grid-area: a;
justify-content: space-evenly; align-items: center; column-gap: .5rem; }
#new-post span.captcha img { span.captcha input[type="text"] { width: 4.5rem; text-align: center; height: 27px; }
height: 40px;
width: 160px; }
#new-post span.captcha input[type="text"] { width: 4.5rem; text-align: center; height: 27px; } input[type="submit"] {
background-color: var(--primary-color);
border: none;
color: #f5f5f5;
font: inherit;
grid-area: s;
height: 2rem; }
#posts article:not(:last-child) { margin-bottom: 1rem; } input[type="submit"]:hover { background-color: var(--secondary-color); }
#posts article header { display: inline; font-size: .85rem; } article:not(:last-child) { margin-bottom: 1rem; }
#posts article > *, article header { display: inline; font-size: .85rem; }
#posts article div.feedback > *,
#posts article div.feedback { margin-left: .5rem; }
#posts article p.quote { font-style: italic; } article > *,
article div.reply > * { margin-left: .5rem; }
article p.quote { font-style: italic; }
#pagination a:not(:first-child) { margin-left: .5rem; } #pagination a:not(:first-child) { margin-left: .5rem; }
@media screen and (max-width: 641px) { @media screen and (max-width: 641px) {
#new-post { form {
gap: 1.5rem; gap: 1.5rem;
grid-template-areas: grid-template-areas:
"n" "n"
"w" "w"
"m" "m"
"c" "c"
"a" "a"
"s"; "s";
grid-template-columns: 1fr; } } grid-template-columns: 1fr; } }