vanilla_respondage/css/plain.css
Tammo ter Hark 3e370322e7 fix(header): exact logo-top margin (0px touches top); menu texts on their own header row
- nav_bar.twig: header split into two rows — row 1 .survey-nav-logo-row holds
  all logos (left far left, center absolutely centered in the row, right
  ms-auto far right) so they align; row 2 #navbar holds the menu texts
  (language changer, save/clear all, question index) full-width, right-aligned
- sass/plain.sass (leading): #survey-nav align-items:flex-start, container
  stretch, .survey-nav-logo-row relative/w-100, .logo-container and its img
  padding-top:0, .logo-center top:0 translateX(-50%); dropped .logo-right
  margin-left:0 (ms-auto now on the element)
- css/plain.css: compiled from sass with dart-sass (export guard green)
- custom_header.twig: <pos>logotopmargin now emitted as margin-top on the
  .logo-*.logo-container, so the value is the EXACT distance from the top of
  the header to the logo (0px = logo touches the top of the page)
- README.md: header layout + logo-top-distance sections updated

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-11-27 19:56:11 +01:00

255 lines
4.6 KiB
CSS

@charset "UTF-8";
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: TWO rows inside #survey-nav (markup in nav_bar.twig) —
* row 1 (.survey-nav-logo-row): the logos. Left logo always far left, center
* logo always exactly centered (absolute, independent of the other logos),
* right logo always far right (ms-auto). All logos share this single row, so
* they align nicely.
* row 2 (#navbar): the menu texts (language changer, save/clear all, question
* index) on their own full-width row below the logos, right-aligned.
* The header content is TOP-aligned (align-items: flex-start) and the logo
* containers/images get padding-top: 0, so the per-logo top margin option
* (<pos>logotopmargin, emitted as margin-top on .logo-container in
* custom_header.twig) is the EXACT distance from the top of the header to the
* top of the logo: 0 px = the logo touches the top of the page. */
#survey-nav {
align-items: flex-start;
}
#survey-nav .container-fluid,
#survey-nav .container {
align-items: stretch;
}
#survey-nav .survey-nav-logo-row {
position: relative;
width: 100%;
}
#survey-nav .logo-container {
padding-top: 0;
}
#survey-nav .logo-container > img {
padding-top: 0;
}
#survey-nav .logo-center {
position: absolute;
left: 50%;
top: 0;
transform: translateX(-50%);
float: none;
z-index: 1;
}
/* NOTE: the swatch-chip / disable-mode styles for the options page live INLINE in
* options/options.twig (<style> block) — the admin options page does not load
* css/plain.css, so they would not apply from here (rows 117-119). */
/*# sourceMappingURL=plain.css.map */