• 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 Font size and Color

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 810 Views 1 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.
  • J Offline
    johnnyboy
    last edited by johnnyboy Jun 15, 2020, 3:52 PM Jun 15, 2020, 3:33 PM

    Hi Guys

    I added MMM-Smartthings module to top-left… and because I have quite a lot of Smartthings items, it has produced a long list that goes all the way down the left side of my screen - covering parts of Compliments - Lower 3rd… and NewsFeed - bottom bar.

    The font size is slightly larger than what I have on my callender, so wondered if reducing font size will help pull up the list? Or would this be padding or frame I need to reduce?

    I also wanted to color the text on the Header, and make the Header, and bar underneath it, stand out more by size, and maybe, depending on how it looks, to have my Smartthings list colored too?

    Below is what I think needs doing, but no doubt not written correctly? As Last time I did CSS on MM was a couple years back, so I’m a bit rusty, and I just tried this and it did not alter anything… So, im missing something?

    Can someone help out with which bits need added to these? Or If I need to do something else to reduce length of list.

    .MMM-Smartthings-Module header {
      font-size: 20px;
      color: blue;
    border-bottom: blue
    }
    
    .MMM-Smartthings {
    font-size: 15px;
    color: blue
    }
    
    J 1 Reply Last reply Jun 15, 2020, 7:17 PM Reply Quote 0
    • J Offline
      johnnyboy @johnnyboy
      last edited by Jun 15, 2020, 7:17 PM

      @johnnyboy

      Okay, playing around trying various combo’s, I managed this… Top one is the Header, and bottom one is the Title… Not sure why title is named as such, but?

      Header is what I named as ‘‘Smart Home’’
      Title is what it is named by default underneath for doors and locks.

      Now, how can I name the actual items underneath? the list it compiles of my smartthings items here that was imported with the Token from Smartthings?

        }
        .MMM-Smartthings header {
        font-size: 20px;
        color: blue;
      border-bottom: 2px solid blue;
      }
      .MMM-Smartthings {
      font-size: 20px;
      color: solid blue;
      }
      
      
      S 1 Reply Last reply Jun 15, 2020, 7:54 PM Reply Quote 0
      • S Offline
        sdetweil @johnnyboy
        last edited by sdetweil Jun 15, 2020, 7:56 PM Jun 15, 2020, 7:54 PM

        @johnnyboy every module gets to do their own thing in terms of styles.
        if they aren’t documented in the module doc, MAYBE there is a css file in the module folder (usually not)

        the ‘most’ direct way to discover the styles for a particular thing, is using the developers window (vs looking thru the code)

        ctrl-shift-i, to open the dev window,
        select the elements tab, and navigate thru the web page to find the elements you want to manipulate.
        at the bottom of the page you will see the class tree list closest to the module on the right, closest to main.css on the left…

        the css tree of attributes is on the right, closest to the module on the top, closest to main on the bottom
        looks like this , the element classnames are circled at the bottom

        Screenshot at 2020-05-25 17-11-54.png

        you can edit/add the attributes on the top right panel with a click, type its name (it will show a drop down , then is value, also a a drop down… so u can experiment and not have to write css file, try, etc,etc,etc

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        J 1 Reply Last reply Jun 15, 2020, 9:48 PM Reply Quote 2
        • J Offline
          johnnyboy @sdetweil
          last edited by Jun 15, 2020, 9:48 PM

          @sdetweil

          Ahhhh… right… I will defo be giving that a look.
          As you say, saves me playing around trying things in CSS and reloading mirror each time before I see if CSS worked or not… very time consuming!

          Thanks again Sam… appreciate all your help.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            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