Read the statement by Michael Teeuw here.
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 classtopandcenterthe selector will match any tag which has the class
regionandtopandcentere.g.
anytag class="region top center"EDIT: it wont let me write real html code < nor <
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login