vanilla_respondage/css/plain.css

294 lines
5.1 KiB
CSS
Raw Normal View History

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;
}
feat(options): menu item color as preset dropdown with persistent custom color (working example) navbarfontcolor (Top of the page tab, column 2) changes from a plain colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 | Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its value across saves (data-keep-value) so switching back to 'Other' restores the last picked color. Dropdown option labels show the live hex of each preset and clickable swatch chips select a preset; an effective-color swatch next to the picker shows the color actually applied. A legacy stored hex is migrated to mode 'other' + custom field (options.js) and accepted directly in custom_header.twig, so nothing is lost before a theme reset. Views map default->fontcolor, color1/2/3->primary/secondary/tertiarycolor, other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay plain colorpickers, default #ffffff. build.php maps a legacy hex navbarfontcolor in variant jsons to other+custom for when variants are built. Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration, gray-out, keep-value on save, chips, swatches), live survey render for all 5 modes, export check exit 0. NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no customer is waiting; the on-disk variant folders were left at their pre-feature state and no variant theme was reset. Run variants/build.php per variant only after the open prompts are done. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:51:55 +01:00
/* 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.
10px between the swatches so they stand out; the hex value sits BELOW each
swatch in .color-chip-label (inside the swatch it was unreadable). */
feat(options): menu item color as preset dropdown with persistent custom color (working example) navbarfontcolor (Top of the page tab, column 2) changes from a plain colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 | Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its value across saves (data-keep-value) so switching back to 'Other' restores the last picked color. Dropdown option labels show the live hex of each preset and clickable swatch chips select a preset; an effective-color swatch next to the picker shows the color actually applied. A legacy stored hex is migrated to mode 'other' + custom field (options.js) and accepted directly in custom_header.twig, so nothing is lost before a theme reset. Views map default->fontcolor, color1/2/3->primary/secondary/tertiarycolor, other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay plain colorpickers, default #ffffff. build.php maps a legacy hex navbarfontcolor in variant jsons to other+custom for when variants are built. Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration, gray-out, keep-value on save, chips, swatches), live survey render for all 5 modes, export check exit 0. NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no customer is waiting; the on-disk variant folders were left at their pre-feature state and no variant theme was reset. Run variants/build.php per variant only after the open prompts are done. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:51:55 +01:00
.color-mode-chips {
display: flex;
width: 100%;
gap: 10px;
margin-top: 0.4rem;
feat(options): menu item color as preset dropdown with persistent custom color (working example) navbarfontcolor (Top of the page tab, column 2) changes from a plain colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 | Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its value across saves (data-keep-value) so switching back to 'Other' restores the last picked color. Dropdown option labels show the live hex of each preset and clickable swatch chips select a preset; an effective-color swatch next to the picker shows the color actually applied. A legacy stored hex is migrated to mode 'other' + custom field (options.js) and accepted directly in custom_header.twig, so nothing is lost before a theme reset. Views map default->fontcolor, color1/2/3->primary/secondary/tertiarycolor, other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay plain colorpickers, default #ffffff. build.php maps a legacy hex navbarfontcolor in variant jsons to other+custom for when variants are built. Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration, gray-out, keep-value on save, chips, swatches), live survey render for all 5 modes, export check exit 0. NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no customer is waiting; the on-disk variant folders were left at their pre-feature state and no variant theme was reset. Run variants/build.php per variant only after the open prompts are done. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:51:55 +01:00
}
.color-chip-item {
flex: 1 1 0;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.color-chip {
width: 100%;
height: 1.6rem;
padding: 0;
feat(options): menu item color as preset dropdown with persistent custom color (working example) navbarfontcolor (Top of the page tab, column 2) changes from a plain colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 | Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its value across saves (data-keep-value) so switching back to 'Other' restores the last picked color. Dropdown option labels show the live hex of each preset and clickable swatch chips select a preset; an effective-color swatch next to the picker shows the color actually applied. A legacy stored hex is migrated to mode 'other' + custom field (options.js) and accepted directly in custom_header.twig, so nothing is lost before a theme reset. Views map default->fontcolor, color1/2/3->primary/secondary/tertiarycolor, other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay plain colorpickers, default #ffffff. build.php maps a legacy hex navbarfontcolor in variant jsons to other+custom for when variants are built. Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration, gray-out, keep-value on save, chips, swatches), live survey render for all 5 modes, export check exit 0. NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no customer is waiting; the on-disk variant folders were left at their pre-feature state and no variant theme was reset. Run variants/build.php per variant only after the open prompts are done. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:51:55 +01:00
border: 1px solid rgba(0, 0, 0, 0.35);
border-radius: 0.25rem;
cursor: pointer;
background: transparent;
}
.color-chip-label {
font-size: 0.65rem;
color: #6c757d;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
feat(options): menu item color as preset dropdown with persistent custom color (working example) navbarfontcolor (Top of the page tab, column 2) changes from a plain colorpicker to a dropdown: Same as default font color | Color 1 | Color 2 | Color 3 | Other. The new navbarfontcolorcustom colorpicker stays visible but grayed out (disabled + aria-disabled) unless 'Other' is chosen, and keeps its value across saves (data-keep-value) so switching back to 'Other' restores the last picked color. Dropdown option labels show the live hex of each preset and clickable swatch chips select a preset; an effective-color swatch next to the picker shows the color actually applied. A legacy stored hex is migrated to mode 'other' + custom field (options.js) and accepted directly in custom_header.twig, so nothing is lost before a theme reset. Views map default->fontcolor, color1/2/3->primary/secondary/tertiarycolor, other->navbarfontcolorcustom. headerbackgroundcolor/bodybackgroundcolor stay plain colorpickers, default #ffffff. build.php maps a legacy hex navbarfontcolor in variant jsons to other+custom for when variants are built. Verified: jsdom suite 6/6 (new options_navbar_color_mode test: migration, gray-out, keep-value on save, chips, swatches), live survey render for all 5 modes, export check exit 0. NOTE (owner 2026-11-26): variant builds are intentionally DEFERRED — no customer is waiting; the on-disk variant folders were left at their pre-feature state and no variant theme was reset. Run variants/build.php per variant only after the open prompts are done. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-26 13:51:55 +01:00
}
.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 */