Dwelling/homepage/static/assets/css/guestbook.css

68 lines
1.6 KiB
CSS

::placeholder { color: var(--primary-color); }
#new-post {
display: grid;
gap: .5rem;
grid-template-areas:
"n e w"
"m m m"
"c c s";
grid-template-columns: 1fr 1fr 1fr; }
#new-post input[name="name"] { grid-area: n; }
#new-post input[name="email"] { grid-area: e; }
#new-post input[name="website"] { grid-area: w; }
#new-post span.checkboxes { grid-area: c; }
#new-post textarea {
grid-area: m;
height: 5.5rem;
max-width: 100%;
min-width: 100%; }
#new-post input[type="submit"] {
background-color: var(--primary-color);
border: none;
color: #f5f5f5;
font: inherit;
grid-area: s;
height: 2rem; }
#new-post input[type="submit"]:hover { background-color: var(--secondary-color); }
#new-post span.checkbox:not(:last-child) { margin-right: 2rem; }
#new-post input[type="text"],
#new-post textarea {
background-color: var(--background-color);
border: none;
border-bottom: 1px solid var(--primary-color);
color: var(--text-color);
font: inherit; }
#posts article:not(:last-child) { margin-bottom: 1rem; }
#posts article header { display: inline; font-size: .85rem; }
#posts article > *,
#posts article div.feedback > *,
#posts article div.feedback { margin-left: .5rem; }
#posts article p.quote { font-style: italic; }
#pagination a:not(:first-child) { margin-left: .5rem; }
@media screen and (max-width: 641px) {
#new-post {
gap: 1.5rem;
grid-template-areas:
"n"
"e"
"w"
"m"
"c"
"s";
grid-template-columns: 1fr; } }