• 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.

Help restyling MMM-ValuesByNotification

Scheduled Pinned Locked Moved Custom CSS
18 Posts 3 Posters 1.7k 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 Away
    sdetweil @BKeyport
    last edited by Jul 13, 2024, 12:46 AM

    @BKeyport well pausing makes it hard to see the results.

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 0
    • S Away
      sdetweil @BKeyport
      last edited by sdetweil Jul 13, 2024, 9:53 AM Jul 13, 2024, 9:53 AM

      @BKeyport remember, along the bottom edge of the elements tab view window is the selector style clauses for the selected element

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      B 1 Reply Last reply Jul 14, 2024, 12:01 AM Reply Quote 0
      • B Offline
        BKeyport Module Developer @sdetweil
        last edited by BKeyport Jul 14, 2024, 12:03 AM Jul 14, 2024, 12:01 AM

        @sdetweil I’m aware of everything you said, the problem is that I can’t get the CSS to cooperate. I can get 'em all to row, all to column (Default), etc, just not anything else.

        Where I’m weakest is CSS, I have a hard time wrapping my head around it.

        The "E" in "Javascript" stands for "Easy"

        S W 2 Replies Last reply Jul 14, 2024, 12:24 AM Reply Quote 0
        • S Away
          sdetweil @BKeyport
          last edited by Jul 14, 2024, 12:24 AM

          @BKeyport ok, it’s not row, column or anything else.

          the stuff before the { is called the selector clause. it selects the elements (document wide) that the stuff inside the braces will be applied to.

          many elements do NOT inherit settings from their parent, much less their grandparent

          I use this cheatsheet to help me remember
          https://www.w3schools.com/cssref/css_selectors.php

          spaces between elements in the selector matter.

          no space means AN element MUST have ALL the attributes. not parent child…

          sometimes for me it is better read right to left.

          styles are selected by the nearest specifier if there are multiples. unless you use the !important override.

          . means class
          # means id
          [] means element  attribute [src...]
          no prefix  means tag name,  table, p, div ..
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • W Offline
            wishmaster270 Module Developer @BKeyport
            last edited by wishmaster270 Jul 14, 2024, 7:48 AM Jul 14, 2024, 7:27 AM

            @BKeyport
            Hi and sorry for the late reply.
            I am not sure if I will have time to test your case the next days.

            I think your main problem is that you try to use “normal” styling directives for the layout but I use flexbox css as the basic.

            You can find a short tutorial at:
            https://css-tricks.com/snippets/css/a-guide-to-flexbox/

            Edit:
            Had 5 minutes and did a quick check.
            I think the following two statements are a good starting point:

            .MMM-ValuesByNotification .vbn .groupsWrapper {
              flex-direction: row;
            }
            
            .MMM-ValuesByNotification .vbn .valueWrapper {
              flex-direction: row;
            }
            
            B 1 Reply Last reply Jul 14, 2024, 9:05 PM Reply Quote 0
            • B Offline
              BKeyport Module Developer @wishmaster270
              last edited by Jul 14, 2024, 9:05 PM

              @wishmaster270 I think the problem I’m having is figuring out where to place the classes to trigger what I want. Flex to me seems a bit erratic with how to set things.

              The "E" in "Javascript" stands for "Easy"

              S 1 Reply Last reply Jul 14, 2024, 9:26 PM Reply Quote 0
              • S Away
                sdetweil @BKeyport
                last edited by Jul 14, 2024, 9:26 PM

                @BKeyport said in Help restyling MMM-ValuesByNotification:

                the

                if the class style affects a single element, then the style goes there

                if it affects multiple items, then on their parent

                and then you need to look at the style to see if it can be inherited from an ancestor

                http://web.simmons.edu/~grabiner/comm244/weekfour/css-concepts.html#:~:text=In CSS%2C some styles are,tree while others are not.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                B 1 Reply Last reply Jul 22, 2024, 2:41 AM Reply Quote 0
                • B Offline
                  BKeyport Module Developer @sdetweil
                  last edited by Jul 22, 2024, 2:41 AM

                  I’ve officially given up.

                  I can get it to start to look right outside the magicmirror environment, and even with unsetting everything styled within the ValuesByNotification app, I can’t get it to duplicate within Magic Mirror.

                  This is with copying Main.css into a test environment, along with the other modules’ CSS files, and using the output HTML from MagicMirror.

                  Works great in test, but the moment I try to make it go live, it’s doing random things.

                  I hate CSS. I really do.

                  The "E" in "Javascript" stands for "Easy"

                  S W 2 Replies Last reply Jul 22, 2024, 4:29 AM Reply Quote 0
                  • S Away
                    sdetweil @BKeyport
                    last edited by Jul 22, 2024, 4:29 AM

                    @BKeyport can you send me info on what you are trying to do

                    outside and inside

                    same userid at gmail

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wishmaster270 Module Developer @BKeyport
                      last edited by Jul 22, 2024, 7:44 PM

                      @BKeyport Hi, can you make a screenshot of the things styled outside MagicMirror so we can see how it should look exactly?
                      Maybe you will need some additional classes in your module config to make it possible to select the different elements jn CSS.

                      B 1 Reply Last reply Aug 1, 2024, 6:29 AM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 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