• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

CSS 101 - Getting started with CSS and understanding how CSS works

Scheduled Pinned Locked Moved Custom CSS
15 Posts 11 Posters 28.2k Views 19 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.
  • B Offline
    Bill Door @j.e.f.f
    last edited by Bill Door Dec 30, 2020, 11:27 AM Dec 30, 2020, 11:27 AM

    @j-e-f-f said in CSS 101 - Getting started with CSS and understanding how CSS works:

    Now issue the following command to start MagicMirror in development mode.
    

    npm start dev

    
    This will start MagicMirror in a split screen layout. One side will be the Magic Mirror that you know and love, the other side will be the developer tools console. 
    

    Is this correct? I spent quite a bit of time trying to figure this out. Maybe it’s changed.

    The developer tools console is surely just the browser console which is achieved by pressing F12.

    When I tried the command:
    npm start dev

    What this did is direct debug messages into the shell where I typed the command, but didn’t change the display in the web browser. I just thought this might help other people following this guide, which is excellent!

    1 Reply Last reply Reply Quote 0
    • L luisestrada referenced this topic on Mar 2, 2023, 3:38 PM
    • V Offline
      videogame95
      last edited by May 8, 2023, 11:27 AM

      @j-e-f-f said in CSS 101 - Getting started with CSS and understanding how CSS works:

      < span style=“background-color: red” class=“text-color-blue”>

      Hi do I have to specify what element like calendar I am changing it in the begging do i have to name of the one i am using ? as I’ve tried changing my calendar border - black
      and the text white not sure how to get it to go around the text border around my calendar I’ve tried to change it in the calendar css and on the custom css but nothing changed.

      please show me how I should wright this code out .
      and where I should change it css custom or css calendar or both ?
      any help please
      thank for help

      S 1 Reply Last reply May 8, 2023, 11:48 AM Reply Quote 0
      • S Offline
        sdetweil @videogame95
        last edited by sdetweil Oct 8, 2023, 11:16 PM May 8, 2023, 11:48 AM

        @videogame95 only ever change custom.css

        never change any file we ship or any module ships, as it will break update for any of those

        so, in a css entry the stuff before the { is called the css selector clause, as it ‘selects’ the elements the info between the {} will apply to

        in MagicMirror each module has a container element that uses is name in the class= attribute, so you can select stuff in the calendar module by using its classname

        .calendar

        I use this to help me remember all the stuff that can go in a selector clause
        https://www.w3schools.com/cssref/css_selectors.php

        you can use the developers window, elements tab to see and test changes on any element in the active browser window

        see here for using the developer window
        https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1683502518638

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        V C 2 Replies Last reply May 12, 2023, 10:00 AM Reply Quote 0
        • V Offline
          videogame95 @sdetweil
          last edited by May 12, 2023, 10:00 AM

          @sdetweil Hi I’ve add to the custom css
          .MMM-Googlecalendar ,
          But nothing is changing I just need to add
          A border around my text .
          }
          border around the text

          border-color:#000, = block
          Border-size-width : 20px
          Borde-size-hight: 20px
          },

          S 1 Reply Last reply May 12, 2023, 11:07 AM Reply Quote 0
          • S Offline
            sdetweil @videogame95
            last edited by May 12, 2023, 11:07 AM

            @videogame95 css is case sensitive like everything else

            be careful on the selector clause, just module name applies to everything

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • C Offline
              Chazzer @sdetweil
              last edited by Oct 8, 2023, 7:30 PM

              @sdetweil Thanks for the initial tips here.

              1 Reply Last reply Reply Quote 0
              • C Offline
                Chazzer
                last edited by Oct 8, 2023, 9:47 PM

                Great infos and good tips. Thank you 🙏

                1 Reply Last reply Reply Quote 0
                • R roth_nj referenced this topic on Oct 22, 2023, 11:10 AM
                • S svenpisa referenced this topic on Feb 6, 2024, 1:20 PM
                • K kayakbabe referenced this topic on Feb 18, 2024, 9:55 AM
                • G greedyvegan referenced this topic on Mar 30, 2024, 8:54 PM
                • 1
                • 2
                • 2 / 2
                • 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