Two fixes for the navbarfontcolor working example: (1) the hex value inside the swatch chips was unreadable and obscured the color — chips are now plain color swatches with the hex in a small label BELOW each swatch (.color-chip-label), and the chips row uses gap: 10px so the swatches stand out. (2) The visible color swatch input (navbarfontcolorcustom_picker) never re-enabled when choosing 'Other…' from the dropdown: it lacked data-parent/selector_radio_childfield, so updateChild/updateAllChildren never touched it and it stayed disabled (server-side rendered disabled) — the text field was enabled but the swatch the user actually clicks stayed grayed out. The swatch now gets the child classes when parented, so it follows the mode like the text field (also fixes the same latent bug for the per-element <el>textcolorcustom pickers). OPTIONS_JS_TOKEN -> 20261126.3. jsdom test extended: swatch enabled in mode 'other'/disabled otherwise, hex below swatch, chip gap 10px asserted against css/plain.css; suite 6/6, export 0. Variants intentionally not rebuilt. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
294 lines
5.1 KiB
CSS
294 lines
5.1 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.
|
|
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). */
|
|
.color-mode-chips {
|
|
display: flex;
|
|
width: 100%;
|
|
gap: 10px;
|
|
margin-top: 0.4rem;
|
|
}
|
|
|
|
.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;
|
|
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;
|
|
}
|
|
|
|
.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 */
|