Read the statement by Michael Teeuw here.
custom css for module question
-
@MMRIZE said
- move event(s) like “Trash day” all the way to the right to make the row narrow
- add an element to the bright or dimmed class
I can’t understand what those mean. Have you any example or sketch?
1 - multi-day or single event, can I move that to the right
to make the row narrower ? “Tuesday, March 19th” is a little redundant because the mini month tells me that.
I understand IF a day happens to have multiple events it would create multiple rows.2 - this is related but unrelated to the calendar, some modules don’t have the simple {font-size: 12px;color red;} they use classes of bright and dimmed and or use “1em” for the size or “var(–color-text)”
forgive me, I’m slowly learning CSS and command/terminal with error, repetition and trial.
-
I wanted to shrink the rows (blue paint)
by taking the (green) event and moving it to the right.
using this will give me space- .CX3A .cellHeaderMain .cellDate {display: none;}
with the red paint, I’ve tried
- border-radius:15px;
but it doesn’t work
- .CX3A .cellHeaderMain .cellDate {display: none;}
-
@greedyvegan said in custom css for module question:
1 - multi-day or single event, can I move that to the right
to make the row narrower ? “Tuesday, March 19th” is a little redundant because the mini month tells me that.
I understand IF a day happens to have multiple events it would create multiple rows.As you know already, Events could be more than one. So what you want is; if there is only one event, it should be one-liner with the date(or with relative day identifier), but if there are N events, makes multi-rows.
Maybe if it is possible, it will not be so pretty. And the look would be similar to the default calendar module. If so, use the default calendar module instead.2 - this is related but unrelated to the calendar, some modules don’t have the simple {font-size: 12px;color red;} they use classes of bright and dimmed and or use “1em” for the size or “var(–color-text)”
There is no standard style guide for modules, so every module has it’s own look & feel. You have to override each style by yourself.
Anyway, some modules respects the style of the default modules. They might use the values those are defined incss/main.css
You can override some of the default styles incss/custom.css
like below;/* css/custom.css */ :root { --color-text: darkorange; --color-text-dimmed: darkgreen; --color-text-bright: crimson; --font-size: 16px; --font-size-small: 12px; }
original
transformed
-
@greedyvegan said in custom css for module question:
with the red paint, I’ve tried
border-radius:15px;
It needs some tricks. ;)
/* css/custom.css */ .CX3A .miniMonth .weeks.thisWeek { background-color: darkolivegreen; /* I've put the color to show clearly */ } .CX3A .miniMonth .weeks.thisWeek td:first-child { /* left border round */ border-radius: 10px 0 0 10px; } .CX3A .miniMonth .weeks.thisWeek td:last-child { /* right border round */ border-radius: 0 10px 10px 0; }
For your blue/red directions. If it is possible or not, this module has not been designed for this. So I can’t help about it.
I recommend hiding empty cells to save some unnecessary (empty) lines./* css/custom.css */ .CX3A .cell[data-events-counts="0"] { display: none; }
original
transformed
-
@greedyvegan
Anyway I just show whether it is possible. (Yes, everything is possible… even though I hate this kind of looks…)
But… Is it really useful or pretty?
/* css/custom.css */ .CX3A .cellHeader { width: fit-content; } .CX3A .cellFooter { display: none; } .CX3A .cell[data-events-counts="1"] { display: flex; justify-content: space-between; } .CX3A .cell[data-events-counts="1"] .cellBody .fullday .event { max-width: 100%; }
-
@MMRIZE said
It needs some tricks. ;)
thank you :raising_hands:
this module has not been designed for this. So I can’t help about it.
I recommend hiding empty cells to save some unnecessary (empty) lines.understood
even though I hate this kind of looks…
But… Is it really useful or pretty?boom!
what my wife wants, my wife gets lol
(happy wife = happy lifeAnyway Yes, everything is possible…
I’m satisfied!
I appreciate your assistance… you’ve inspired me to learn more