@sdetweil So should be either .MMM-Gas.table { }
or .MMM-Gas table { }
? What is the preferred way?
Read the statement by Michael Teeuw here.

Posts
-
RE: Multiple tables formatted, not just MMM-Gas
-
RE: Multiple tables formatted, not just MMM-Gas
@cowboysdude I already have that in place.
-
RE: Applying CSS to individual cells in a table
@sdetweil Have it read MM/DD/YY, even on the day of event.
Either 6 or 7 days out from calendar event, the date swaps fromMM/DD/YY
toMonday at 12:00 AM
. (For US Labor Day holiday, in this case)
hideTime
gets me to it just showingMonday
.I thought
getRelative: 0,
was used to do what I want it to do, You have option of from between 0 - 48 hours with default being 6 hours it goes to relative time. It is swapping at about 6 - 7 DAYS in reality. Maybe just a coincidence but it seems like the defaultgetRelative: 6;
is 6 days, not hours, and setting it to zero has no effect. -
Multiple tables formatted, not just MMM-Gas
I applied some CSS to the MMM-Gas table and all was looking good until I looked at all the other tables on my MM and they all took the same formatting as MMM-Gas even though I directly named the module as shown in this code snippet. I thought that by addressing each item as shown in first CSS would prevent that. Shouldn’t the other tables have used whatever was configured in to their module code and CSS?
.MMM-Gas {
something something
}
would have prevented that.
I turned off the CSS for MMM-Gas and the other tables reverted to their expected format, Below is CSS for couple of items. How do I format JUST the MMM-Gas table?/* ###MMM-Gas Formatting###
.MMM-Gas .table {
position: relative;
left: 20px;
width: 95%;
}
.MMM-Gas th {
position: relative;
padding: 0;
text-align: left;
font-size: 20px;
}
-
RE: Applying CSS to individual cells in a table
@sdetweil What is “jumpy”? Is it similar to say moment.js or other similar libraries? I know I read a bunch of stuff relating to moment.js battling with the calendar module to see if I could figure out how to make the calendar module just show a date which I failed to succeed in doing.
-
Applying CSS to individual cells in a table
How do you go about changing individual cells in a table? I have been messing with MMM-Gas and out of the box it was really small in comparison to other modules. This on on a standard computer monitor and not on big TV I have been poking at, off and on.
I got the cells/font below Price and Station enlarged no problem and at first I was anticipating them to scale up but when I dug around in MMM-Gas.js they are doing something that I have not seen before.
ajumpy.innerHTML = "Price";
&xjumpy.innerHTML = "Station";
-
Generic CSS question when target is several layers down
How does one address what appears to be an attribute amenable to custom CSS tweaking when the item is several layers down as shown in attached picture? I figure it has to do with the crude example I sketched out below but not sure what is driver for when you insert spaces, or don’t.
I see CSS that is
.X.Y.Z {
padding-left: 20px;
}
While other times it may be.X.Y .Z {
padding-left: 20px;
}
-
dateFormat and getRelative
I have two of the default calendar modules, one above the other both visually and in
config.js
.module_1_calendar
andmodule_2_calendar
. I have both modules withdateFormat
set toMM/DD/YY
.
I also havegetRelative: 0,
which in the configure options description says will force the calendar event to stay absolute vs at a configured time (0 - 48) with default being 6. My understanding could be way off the mark but I translate that as saying right up to and including the day of the event it will stay in'MM/DD/YY'
rather than what is shown in attached picture of myconfig.js
file. The default 6 hours isn’t really the issue either as the circled Wednesday at 12:AM is way out beyond 6 hours.
In the end I do not want either calendar to show anything but'MM/DD/YY'
and I thought the combination of the date format and forcing thegetRelative
would accomplish that. -
RE: Duplicate Modules w Different CSS
@sdetweil You want me to start as new topic since it relates to config?
-
RE: Duplicate Modules w Different CSS
@sdetweil Are you saying to use that identifier in the config file too. I did that and it made the second module disappear.
I replacedmodule: 'calendar',
withmodule: 'module_2_calendar',
This is the line in Developer Tools
<div id="module_2_calendar" class="module calendar calendar"