Read the statement by Michael Teeuw here.
adapt css to a module with content
-
Hello,
i’m working with MMM-PublicTransportHafas. This module is compatible with french stations.
I’m trying to modifie css with my parameters. For Germany here a example.rb, .re { background-color: #F01414; border: 0.5px white solid; color: black; } .rbWithProductName:before { content: "RB "; }the name of train in Germany is like RB 1232 but in France it’s more like TER1232…There is no space between name and number. How adapt the content to define TER associed all numbers after
.ter { background-color: #F01414; border: 0.5px white solid; color: black; .terWithProductName:before { //////????? content: "TER~p ";/////????thanks for a help
-
@chassain-0 open the developers window, ctrl-shift-i on the keyboard, select the elements tab,
click the arrow on the top left of the elements tab and then navigate where the content is,
while navigating it will highlight the elements
and click on the one you want…now you can examine the classes and styles
once u have the name u can then set your custom.css to match
-
@sdetweil thanks.
-
No parameter on this…
the table displays with name of trains…some TERXXX and TGVXXXX…i wanted to have a difference between both for the fun in css… -
@chassain-0 see this
- Display and style elements depending on their value
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login