fix(template): GTranslate position + theme FAB collision avoidance #177
Reference in New Issue
Block a user
Delete Branch "fix/gtranslate-fab-position"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds a dedicated
gtranslatetemplate position and shifts the theme FAB clear of the GTranslate floating widget.<position>gtranslate</position>(abovedebug) intemplateDetails.xml; rendered inindex.php. Reassign the auto-injected GTranslate module (which defaults todebug) to this position.has-gtranslatebody class viacountModules(gtranslate).#mokoThemeFab.pos-brshifts toright: 9.5remand.pos-bltoleft: 9.5remunderhas-gtranslate, so the FAB clears GTranslate on whichever bottom corner it floats (per the module settings).Relates to #176 (first-class GTranslate integration).
3 files, +18 lines. No functional change unless a module is assigned to the new position.
- New 'gtranslate' template position (above debug); rendered in index.php - has-gtranslate body class via countModules('gtranslate') - Shift #mokoThemeFab .pos-br (right) and .pos-bl (left) by 9.5rem under has-gtranslate so the FAB clears the GTranslate floating widget on either bottom corner (GTranslate side is set per module settings)