feat!: rename theme respondage_vanilla -> vanilla_respondage, variants -> respondage_<client>
Prompt V (prompts.md rows 51-54). Mother theme folder + <name> renamed to vanilla_respondage (version 3.3.0); client variants renamed to respondage_defensie / respondage_erasmus (<extends>vanilla_respondage</extends>, auto-derived by build.php). export_public.sh now derives the release name from the theme dir and the leak-check glob matches ../respondage_* siblings, so the public-release leak check keeps working after the rename (sabotage-tested). All doc/tooling references updated; local-only files stay gitignored. Also includes the pending uncommitted theme work from this testing week (custom options page, header logos, sticky-header options, bundled OFL fonts, per-element font overrides, font-dropdown reordering, jsdom tests) that was verified locally but not yet pushed. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
37f28f08e6
commit
cffd3cefa6
1 changed files with 3701 additions and 898 deletions
|
|
@ -37,4 +37,26 @@ $(document).on('ready pjax:scriptcomplete',function(){
|
|||
$('.save-message .card-body').removeClass('card-body');
|
||||
$('.navbar-light.bg-light').removeClass('bg-light');
|
||||
$('.privacy.row').removeClass('row');
|
||||
|
||||
/**
|
||||
* THEME ADDITION: the header (#survey-nav) is sticky only on the selected
|
||||
* screen sizes (theme options headersticky + headersticky{computer,tablet,
|
||||
* mobile}, applied as media queries in custom_header.twig). The parent
|
||||
* theme.js fixBodyPadding() assumes a permanently fixed header and always
|
||||
* sets body padding-top to the header height; this correction runs after it
|
||||
* and removes that padding when the header is NOT fixed at the current
|
||||
* viewport width (computed position != 'fixed').
|
||||
*/
|
||||
var fixBodyPaddingSticky = function () {
|
||||
var nav = $('#survey-nav');
|
||||
if (!nav.length) { return; }
|
||||
if (nav.css('position') === 'fixed') {
|
||||
$('body').css('padding-top', Math.round(nav.height()) + 'px');
|
||||
} else {
|
||||
$('body').css('padding-top', '');
|
||||
}
|
||||
};
|
||||
// namespaced so re-running on pjax:scriptcomplete never stacks duplicate handlers
|
||||
$(window).off('resize.stickyheader').on('resize.stickyheader', fixBodyPaddingSticky);
|
||||
fixBodyPaddingSticky();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue