160 lines
2.4 KiB
CSS
160 lines
2.4 KiB
CSS
html {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
|
|
"Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI", Arial, Helvetica,
|
|
"Helvetica Neue", sans-serif;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
/**
|
|
* Basic styling
|
|
*/
|
|
input, select, textarea {
|
|
padding: 4px;
|
|
}
|
|
|
|
body.role-site {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
body.role-site header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
padding-block: 1rem;
|
|
}
|
|
|
|
body.role-site header h1 {
|
|
margin-block: 0;
|
|
}
|
|
|
|
body.role-site .client-area {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
body.role-site nav.vert {
|
|
width: 150px;
|
|
}
|
|
|
|
body.role-site main {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
}
|
|
|
|
|
|
div.post {
|
|
border-bottom: solid thin grey;
|
|
}
|
|
|
|
/**
|
|
* Post form
|
|
*/
|
|
|
|
form.prefs fieldset {
|
|
display: inline-grid;
|
|
grid-template-columns: auto 1fr;
|
|
column-gap: 1rem;
|
|
row-gap: 0.5rem;
|
|
align-items: center;
|
|
border: none;
|
|
}
|
|
|
|
form.prefs label {
|
|
text-align: right;
|
|
}
|
|
|
|
form.prefs input[type=text] {
|
|
min-width: 400px;
|
|
}
|
|
|
|
form.post-form {
|
|
display: grid;
|
|
grid-template-columns: auto 23vw;
|
|
grid-template-rows: auto 2.5em;
|
|
gap: 6px;
|
|
|
|
flex-direction: column;
|
|
height: 100%;
|
|
}
|
|
|
|
form.post-form input[type='text'] {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
form.post-form div.main-area {
|
|
grid-column-start: 1;
|
|
grid-column-end: 3;
|
|
grid-row-start: 1;
|
|
grid-row-end: 2;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
div.right-area div.section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
div.right-area div.section input {
|
|
width: 100%;
|
|
}
|
|
|
|
div.right-area div.section div.section-heading {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
form.post-form textarea {
|
|
width: 100%;
|
|
}
|
|
|
|
form.post-form textarea[name="body"] {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
}
|
|
|
|
dialog {
|
|
width: 400px;
|
|
top: 30%;
|
|
}
|
|
|
|
dialog h3 {
|
|
margin-block: 0;
|
|
margin-block-end: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
dialog textarea {
|
|
min-height: 10vh !important;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
@media (max-width: 1000px) {
|
|
body.role-site nav.vert {
|
|
display: none;
|
|
}
|
|
|
|
form.prefs fieldset {
|
|
display: grid;
|
|
padding-inline: 0;
|
|
margin-block-end: 12px;
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
form.prefs label {
|
|
margin-block-start: 12px;
|
|
display: block;
|
|
text-align: left;
|
|
}
|
|
|
|
form.prefs input[type=text] {
|
|
width: 100%;
|
|
min-width: 50px;
|
|
}
|
|
} |