MagicMirror² v2.4.1 is available! For more information about this release, check out this topic.
Please read the release notes carefully since this update requires adjustments to your Raspberry Pi configuration!

position from config.js conversion to main.css



  • Hello anybody,

    could anyone explain me how the mgic mirror converts the position from config.js to the
    css Styles from main.css?

    position: ‘top_center’ in config.js finds
    .region
    .region.top
    .region.top.center
    in main.css but how is this done?

    Thanks
    Fried



  • @Dimonic every region has the class region, the position gets splitted by underscore. then you have the class top and center

    the selector will match any tag which has the class region and top and center

    e.g. anytag class="region top center"

    EDIT: it wont let me write real html code < nor <