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

Changing table cell in calendar module using custom.css

Scheduled Pinned Locked Moved Custom CSS
11 Posts 2 Posters 607 Views 2 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 @evroom
    last edited by sdetweil Nov 13, 2024, 10:05 PM Nov 13, 2024, 10:03 PM

    @evroom you cannot add or change a classname string

    class=“foo”
    to add “bar” class too
    class =“foo bar”

    but you CAN change the behavior of the other classes to match what adding another class could do

    OR , you could add the styles to the ELEMENTS you WOULD have added the bar class to…

    just_have_to_select_them {
    styles
    }

    as an example of a complex selector in my MMM-Config, I want to hide an element on a library generated element

    .possibly-hidden-tab div:nth-child(2)  > div > div >div >ul >li:only-child >a[rel*="Item%201"] {
      display: none;
    }
    

    this is
    elements with the possibly-hidden-tab class
    its second child div
    its immed child div
    its immed child div
    its immed child div
    its immed child ul
    its immed only child li
    with an a element containing a rel attribute value of “Item 1”
    (spaces have to be encoded, but for clarity I left it out here)

    Sam

    How to add modules

    learning how to use browser developers window for css changes

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