From cafa8fe1167bc996778d1df8438d24c185f7e92e Mon Sep 17 00:00:00 2001 From: Tammo ter Hark Date: Fri, 27 Nov 2026 03:15:30 +0100 Subject: [PATCH] refactor(config): order and width of options now mirror the options.twig layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Row 160 (standing rule): config.xml stays analogue to options.twig — categories in the tab-row order, options within a category in the exact render order of the pane (aTopOfPageKeys/aImagesPaneKeys/aGroupKeys), and width = the pane column width (Groups 6, three-column panes 4, fonts colors row 3, full-width rows 12), so the core options renderer (optionspage=core) lays out the same structure. No option values changed. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- config.xml | 682 ++++++++++++++++++++++++++--------------------------- 1 file changed, 340 insertions(+), 342 deletions(-) diff --git a/config.xml b/config.xml index 635c740..71eec79 100644 --- a/config.xml +++ b/config.xml @@ -88,277 +88,43 @@ the json; build.php checks that the key exists. --> - - off - on - 1 - off - enable - - - - - ./files/logo-left.png - 30 - on - on - off - ./files/logo.png - 30 - on - on - off - ./files/logo-right.png - 30 - on - on - off - - on - - defaultbackgroundcolor - - - - - - - - - #ffffff - scroll - tile - ./files/tiledtexture.png - - - #5e1c64 - #ffffff - #ffffff - #fff3cd - #444444 - top - box - #cccccc - solid - hover - 5px - 5px - 5px - 5px - #ff005f - - - - under - - - - on - on - on - off - - 90 - - - - - - defaultbackgroundcolor - - - - - - - - - #ffffff - - default - - - - - - - - - #444444 - #5e1c64 - - color1 - - - - - - - - - #5e1c64 - defaultbackgroundcolor - - - - - - - - - #eeeeee - default - - - - - - - - - #ffffff - lightyellow + + HOUSE-STYLE: the font choice and the four colors below are house-style specific (set per variant via variants/.json). + PLACING A CUSTOM FONT - instructions: + 1. Put the font file (e.g. .woff2) in the files/fonts/ folder of + the variant (or of this mother theme if all variants should be + able to pick the font). + 2. Create a css file in the variant, e.g. css/variant.css, with the + @font-face and the GENERIC class .font- (not body-scoped!): + the selected font is applied as class font- on , but + the per-element font overrides (fontselect options, see below) + apply the same class on individual elements, so the rule must be + generic to work everywhere: + @font-face { + font-family: 'My Custom Font'; + src: url('../files/fonts/my-custom-font.woff2') format('woff2'); + } + .font-my_custom_font { + font-family: 'My Custom Font', Arial, sans-serif; + } + ('../files/...' works because the asset manager copies the whole + theme dir; in css of the mother theme likewise: ../files/fonts/...) + 3. Add to variants/.json: + "files_add": { "css": ["css/variant.css"], "js": [] }, + "fontOptions": [ { "value": "my_custom_font", + "label": "My Custom Font" } ] + build.php appends the css to the list and the font to the + "Custom (this theme)" optgroup below. data-font-package stays + "websafe": LimeSurvey only knows core font packages + (application/config/fonts.php); the actual font is loaded via + the variant's own css. + 4. Run: php variants/build.php and upload/reset the theme. + See also README.md ("Custom fonts per variant"). + To bundle an open source font in THIS mother theme itself, follow + files/fonts/README.md (English walkthrough: files/fonts/ + css/fonts.css + + the "Bundled open source fonts" optgroup below). --> noto_sans @@ -391,70 +157,225 @@ - - #444444 - 16px - - #ffffff - #5e1c64 - #888888 - #dddddd - - base - base - base - default + + #444444 + 16px + + #ffffff + #5e1c64 + #888888 + #dddddd + + + base + + default - - - - - #444444 - base - default + + + + + + + #444444 + + + + + defaultbackgroundcolor + + + + + + + + + #ffffff + + + on + on + on + off + + 90 + + + ./files/logo-left.png + 30 + on + on + off + ./files/logo.png + 30 + on + on + off + ./files/logo-right.png + 30 + on + on + off + + + under + base + + color1 + + + + + + + + + #5e1c64 + defaultbackgroundcolor + + + + + + + + + #eeeeee + default - - - - - #444444 - - base - default + + + + + + + #ffffff + + + + defaultbackgroundcolor + + + + + + + + + #ffffff + + on + ./files/tiledtexture.png + scroll + tile + + + + base + default @@ -463,9 +384,11 @@ - #444444 - base - default + #444444 + 2.0rem + bold + base + default @@ -474,22 +397,97 @@ - #444444 - base - default + #444444 + 1.2rem + normal + + + + + #5e1c64 + #ffffff + #ffffff + #fff3cd + #444444 + top + box + #cccccc + solid + hover + 5px + 5px + 5px + 5px + #ff005f + + base + default + + + + + + + #444444 + base + default + + + + + + + #444444 + base + default - #444444 - 1.2rem - 700 - 2.0rem - bold - 1.2rem - normal + #444444 + 1.2rem + 700 + + + #5e1c64 + lightyellow + + + + off + on + 1 + off + enable