MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Main.css / custom.css change

    Scheduled Pinned Locked Moved Custom CSS
    2 Posts 2 Posters 514 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      svenpisa
      last edited by

      Hello everyone,
      when I was brand new, I worked my way through and made adjustments to the main.css. The longer you’re at it, the more entries you find in the forum that the main.css must never be customized and everything must be stored in the custom.css.
      Now I want to change my main.css back to the standard, but of course I want to transfer the entries to the custom.css first.

      Here is the default of the root entries

      :root {
        --color-text: #999;
        --color-text-dimmed: #666;
        --color-text-bright: #fff;
        --color-background: #000;
        --font-primary: "Roboto Condensed";
        --font-secondary: "Roboto";
        --font-size: 20px;
        --font-size-xsmall: 0.75rem;
        --font-size-small: 1rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 3.25rem;
        --font-size-xlarge: 3.75rem;
        --gap-body-top: 60px;
        --gap-body-right: 60px;
        --gap-body-bottom: 60px;
        --gap-body-left: 60px;
        --gap-modules: 30px;
      }
      

      and here my changed entries.

      :root {
        --color-text: #999;
        --color-text-dimmed: #666;
        --color-text-bright: #fff;
        --color-background: #000;
        --font-primary: "Roboto Condensed";
        --font-secondary: "Roboto";
        --font-size: 15px;
        --font-size-xsmall: 0.75rem;
        --font-size-small: 1rem;
        --font-size-medium: 1.5rem;
        --font-size-large: 2.25rem;
        --font-size-xlarge: 2.75rem;
        --gap-body-top: 10px;
        --gap-body-right: 10px;
        --gap-body-bottom: 10px;
        --gap-body-left: 10px;
        --gap-modules: 10px;
      }
      

      How do I transfer these entries to the Custom.css? I tried copy-paste but the changes like the “gap-body” are not displayed.

      I changed gap and font

      i tried to customize the body via “margin” and “boarder”, but i’m not quite happy…

      Can you tell me the correct entries for my Custom.css?

      S 1 Reply Last reply Reply Quote 0
      • S Away
        sdetweil @svenpisa
        last edited by

        @svenpisa just put your complete root definition in custom.css

        git checkout  css/main.css
        

        to restore the original main.css

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Enjoying MagicMirror? Please consider a donation!
        MagicMirror created by Michael Teeuw.
        Forum managed by Sam, technical setup by Karsten.
        This forum is using NodeBB as its core | Contributors
        Contact | Privacy Policy