vanilla_respondage/css/plain.css
Tammo ter Hark dc27d63de5 fix(options): keep navbarfontcolorcustom in column 2, full-width swatch chips
The new navbarfontcolorcustom picker fell into the generic 'rest' slot of the
Top-of-the-page layout, which opened a NEW col-md-4 — so the picker landed in
column 3 next to the sticky checkboxes and left the divs unbalanced. Map the
key to slot h2 so it stays in column 2 under the navbarfontcolor dropdown,
rendered col-12 (full column width); column 3 is the sticky block again and
the pane markup is balanced (89/89 divs). The swatch chips under the dropdown
were tiny inline squares — make the chips row full column width with taller
flex chips showing the hex value (options.js chip.text). OPTIONS_JS_TOKEN
bumped to 20261126.2 (options.js changed). Layout pinned by jsdom assertions
(picker in the same col-md-4 as the dropdown, wrapper col-12); suite 6/6,
export 0. Variants intentionally not rebuilt (owner: deferred).

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 14:05:18 +01:00

281 lines
4.9 KiB
CSS

body.font-arial {
font-family: Arial, Helvetica, sans-serif;
}
body.font-arial_black {
font-family: ArialBlack, Helvetica, sans-serif;
}
body.font-opensans {
font-family: "Open Sans", Helvetica, sans-serif;
}
body.font-georgia {
font-family: Georgia, "Times New Roman", Times, serif;
}
body.font-courier {
font-family: "Courier New", Courier, monospace;
}
#welcome-container {
padding: 15px;
margin-top: 30px;
}
.top-container .top-content {
padding-bottom: 0;
margin-bottom: 0;
}
.row.question-container {
margin-left: 0;
margin-right: 0;
}
#navigator-container {
margin-top: 15px;
}
.privacy .ls-privacy-head, .privacy p.ls-privacy-body {
background: white;
padding: 15px;
margin-bottom: 0;
}
h1.survey-name {
margin-top: 0;
font-weight: bold;
}
.group-description {
margin-bottom: 15px;
}
#surveys-list-container {
background: white;
padding: 15px;
}
.question-container {
border: inherit;
margin-bottom: 30px;
}
.ls-questionhelp {
margin-bottom: 5px;
margin-top: 5px;
}
.ls-questionhelp p {
margin-bottom: 0;
}
table.ls-answers {
margin-top: 15px;
margin-bottom: 15px;
}
.sortable-rank {
background: white;
}
.ls-answers .ls-heading th {
font-weight: inherit;
vertical-align: top;
}
.privacy-block {
padding: 15px;
}
.privacy .form-check {
padding: 15px;
background: lightyellow;
}
.privacy .form-check .form-check-input {
float: none;
margin-left: 0;
}
#datasecurity_notice {
margin-bottom: 15px;
}
.save-form {
background: white;
}
.save-form .return-to-survey {
padding-left: 15px;
padding-bottom: 15px;
}
.save-message .h2 {
margin-top: 0;
font-weight: 700;
}
.save-message .text-warning {
color: inherit !important;
font-weight: 700;
}
.save-survey-form {
background: white;
padding: 15px;
}
.checkbox-item input[type=checkbox]:checked + label::after,
.checkbox-item input[type=radio]:checked + label::after {
content: "";
}
.btn-primary {
border: none;
}
.btn-primary:hover {
filter: grayscale(0.5);
}
.btn-primary:focus {
filter: grayscale(0.5);
}
.btn-primary.active {
filter: grayscale(0.5);
}
.btn-primary:active {
filter: grayscale(0.5);
}
#surveys-list-container {
background: white;
padding: 15px;
}
.progress {
border-radius: 0;
box-shadow: none;
}
.progress-bar {
font-size: 80%;
padding-left: 2px;
}
.qback_red .question-title-container {
background: red;
}
.qback_orange .question-title-container {
background: darkorange;
}
.qback_green .question-title-container {
background: darkgreen;
}
.qback_transparent .question-title-container {
background: transparent;
}
div.qvideo {
display: flex;
}
div.qvideo .video {
max-width: 100%;
height: auto;
}
div.qvideo .question-title-container, div.qvideo .answer-container {
flex-grow: 2;
}
div.qvideo .question-title-container {
background: transparent;
color: #5A1D64;
}
div.qvideo .answer-container {
padding-left: 30px;
}
div.qvideo .question-valid-container {
display: none;
}
.hide-first-row table.ls-answers tr.answers-list:first-child {
display: none;
}
.hidden {
display: none;
}
/* Header: three zones — left logo always far left, center logo always exactly
centered (absolute, independent of the other zones), right zone always far
right (ms-auto on .survey-nav-right). When a right logo is present, the
right-side menu texts (language changer, save/clear all, question index) sit
BELOW the logo (flex-column wrapper), still right-aligned. */
#survey-nav .container-fluid,
#survey-nav .container {
position: relative;
}
#survey-nav .logo-center {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
float: none;
z-index: 1;
}
#survey-nav .logo-right {
margin-left: 0;
}
/* Row 115: "disable" mode for parented options (navbarfontcolor working example) —
the child stays visible but grayed out; swatch chips + effective-color swatch. */
.option-visibility-disable .mb-3 {
opacity: 0.55;
}
/* Full column width: the chips row sits in its own block under the dropdown
(sel.after(chips) in options.js) and stretches to the column's full width. */
.color-mode-chips {
display: flex;
width: 100%;
gap: 0.35rem;
margin-top: 0.4rem;
}
.color-chip {
flex: 1 1 0;
height: 1.6rem;
padding: 0 0.2rem;
border: 1px solid rgba(0, 0, 0, 0.35);
border-radius: 0.25rem;
cursor: pointer;
background: transparent;
color: #fff;
text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
font-size: 0.65rem;
line-height: 1;
overflow: hidden;
white-space: nowrap;
}
.color-chip.active {
outline: 2px solid currentColor;
outline-offset: 1px;
}
.color-chip:focus-visible {
outline: 2px solid #0d6efd;
outline-offset: 1px;
}
.color-mode-effective {
display: inline-block;
width: 1.1rem;
height: 1.1rem;
border: 1px solid rgba(0, 0, 0, 0.35);
border-radius: 0.25rem;
vertical-align: middle;
background: transparent;
}
/*# sourceMappingURL=plain.css.map */