mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Use red banner styling for form errors and render them in the table footer so messages stay aligned with the post form layout.
276 lines
4.9 KiB
CSS
276 lines
4.9 KiB
CSS
.postFormTable {
|
|
width: auto;
|
|
text-align: left;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
display: table;
|
|
border-spacing: 1px;
|
|
}
|
|
|
|
.postFormDesktop {
|
|
font-size: var(--post-form-toggle-font-size);
|
|
font-weight: var(--post-form-toggle-font-weight);
|
|
}
|
|
|
|
.postFormMobile {
|
|
text-align: center;
|
|
margin-top: -3px;
|
|
}
|
|
|
|
.modQueueTitle {
|
|
font-size: 1.5em;
|
|
font-weight: bold;
|
|
padding: 10px 0;
|
|
}
|
|
|
|
@media (max-width: 639px) {
|
|
.modQueueTitle {
|
|
padding-top: 24px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.modQueueTitle {
|
|
font-size: 1em;
|
|
}
|
|
}
|
|
|
|
.closed {
|
|
font-size: x-large;
|
|
text-align: center;
|
|
color: red;
|
|
font-weight: 700;
|
|
padding: 100px 15px;
|
|
}
|
|
|
|
.offlineBoard {
|
|
font-size: 16px;
|
|
text-align: center;
|
|
color: red;
|
|
padding: 30px 15px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.postFormTable td:first-child {
|
|
background-color: var(--post-form-field-title-background-color);
|
|
color: var(--post-form-field-title-color);
|
|
font-weight: var(--post-form-field-title-font-weight);
|
|
border: var(--post-form-field-border);
|
|
padding: var(--post-form-field-title-padding);
|
|
font-size: var(--post-form-field-title-font-size);
|
|
width: 80px;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.postFormTable td {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 10pt;
|
|
position: relative;
|
|
}
|
|
|
|
.postFormTable input[type="text"], .postFormTable textarea, .postFormTable select:not(.flagSelector):not(.boardSelector) {
|
|
border: var(--post-form-field-input-border, revert);
|
|
font-family: var(--post-form-field-font-family, revert);
|
|
appearance: var(--post-form-field-input-appearance, revert);
|
|
outline: var(--post-form-field-input-outline, revert);
|
|
background-color: var(--post-form-field-input-background-color, revert);
|
|
color: var(--post-form-field-input-color, revert);
|
|
padding: 2px 4px 3px;
|
|
font-size: 10pt;
|
|
}
|
|
|
|
.postFormTable input[type="text"]:focus, .postFormTable textarea:focus, .postFormTable select:not(.flagSelector):not(.boardSelector):focus {
|
|
border: var(--post-form-field-input-focus-border, revert);
|
|
}
|
|
|
|
.boardSelector {
|
|
appearance: auto;
|
|
}
|
|
|
|
.postFormTable td > input[type="text"] {
|
|
width: 244px;
|
|
}
|
|
|
|
.postFormTable textarea {
|
|
width: 292px;
|
|
|
|
/* textareas have a gap below them that differs along browsers https://stackoverflow.com/a/7144960 */
|
|
vertical-align: top;
|
|
}
|
|
|
|
.postFormTable button {
|
|
margin-left: 2px;
|
|
bottom: 0px;
|
|
filter: var(--filter80);
|
|
position: absolute;
|
|
cursor: pointer;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.linkType {
|
|
font-weight: normal;
|
|
text-transform: lowercase;
|
|
}
|
|
|
|
.linkTypeError {
|
|
color: red;
|
|
}
|
|
|
|
.linkField input[type="text"] {
|
|
width: 190px !important;
|
|
}
|
|
|
|
.spoilerButton input[type="checkbox"] {
|
|
margin: 0 3px;
|
|
vertical-align: middle;
|
|
transform: translateY(-2px);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.spoilerButton td {
|
|
padding-top: 2px;
|
|
height: 20px;
|
|
padding-left: 2px;
|
|
}
|
|
|
|
.spoilerButton {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.spoilerButton label {
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.postFormDesktop {
|
|
display: none;
|
|
}
|
|
|
|
.postFormTable {
|
|
padding-top: 5px;
|
|
}
|
|
|
|
.postFormTable td input {
|
|
height: 20px;
|
|
}
|
|
|
|
.postFormTable td textarea {
|
|
height: 80px;
|
|
}
|
|
|
|
.postFormTable button {
|
|
padding: 3px 6px;
|
|
}
|
|
|
|
.postFormMobile {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.postFormTable {
|
|
padding-top: 20px;
|
|
padding-bottom: 3px;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.postFormMobile {
|
|
display: none;
|
|
}
|
|
|
|
.postFormDesktop {
|
|
width: 468px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.postFormTable {
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
.uploadButton button {
|
|
position: relative;
|
|
margin: 0;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.uploadButton span {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.postFormTable :global(ul.rules) {
|
|
margin: 0px;
|
|
padding: 0px;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.postFormTable :global(ul.rules > li) {
|
|
list-style: none;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.postFormTable :global(.rules > li::before) {
|
|
content: "\2022 \20";
|
|
}
|
|
|
|
.postFormTable :global(tr.rules td) {
|
|
border: 0px !important;
|
|
background-color: transparent !important;
|
|
font-weight: normal !important;
|
|
text-transform: none !important;
|
|
}
|
|
|
|
.postFormTable :global(tr.rules a),
|
|
.postFormTable :global(tr.rules a:visited) {
|
|
color: var(--post-link-text-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.postFormTable :global(tr.rules a:hover),
|
|
.postFormTable :global(tr.rules a:visited:hover) {
|
|
color: var(--post-link-text-color-hover);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.error {
|
|
display: block;
|
|
margin: 3px 0 0;
|
|
padding: 3px 5px;
|
|
background-color: #e62020;
|
|
color: #fff;
|
|
font-family: monospace;
|
|
font-size: 13px;
|
|
font-weight: bold;
|
|
line-height: normal;
|
|
}
|
|
|
|
.error a,
|
|
.error a:visited {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.formError {
|
|
box-sizing: border-box;
|
|
width: 468px;
|
|
max-width: calc(100vw - 2px);
|
|
text-align: start;
|
|
}
|
|
|
|
.postFormTable .formErrorRow td {
|
|
width: auto;
|
|
padding: 0;
|
|
border: 0;
|
|
background-color: transparent;
|
|
color: inherit;
|
|
font-weight: normal;
|
|
text-transform: none;
|
|
}
|
|
|
|
.status {
|
|
padding: 5px;
|
|
}
|