Hi there,
I’m not shure if this is really a css topic, so feel free to move it to a better place if neccessary.
Just running my first complete build up new MM as my wife wished. :-) (picture will follow)
Now try some tests with the setup of selected modules. I included the default calendar module in different regions with different calendars. The problem is, their layouts differ and I don’t understand why.
I build up an example setup to show the problem.
You see the two upper calendars have different layouts, but I think, their config ist the same, isn’t it?
Here the config for the scrennshot
var config = {
timeFormat: 24,
modules: [
/**********************
* TOP_BAR
**********************/
{
module: "calendar",
header: "Ferien Hessen",
position: "top_bar",
config: {
tableClass: "medium",
colored: true,
fetchInterval: 60000,
fullDayEventDateFormat: "dd DD. MMM",
timeFormat: "absolute",
urgency: 0,
getRelative: 0,
maximumEntries: 2,
maxTitleLength: 50,
showEnd: true,
dateEndFormat: "dd DD. MMM",
calendars: [
{
// Ferien Hessen 2020
symbol: "democrat",
color: "#ffaaaa",
url: "https://www.ferienwiki.de/exports/ferien/2020/de/hessen"
},
]
}
},
{
module: "calendar",
header: "Kalender Silke + Dirk",
position: "top_bar",
config: {
tableClass: "medium",
colored: true,
coloredSymbolOnly: true,
fetchInterval: 60000,
dateFormat: "dd DD. MMM HH:mm",
fullDayEventDateFormat: "dd DD. MMM",
timeFormat: "absolute",
urgency: 0,
getRelative: 0,
maximumNumberOfDays: 30,
maximumEntries: 2,
maxTitleLength: 50,
excludedEvents: [
"Geb.",
"Geburtstag ",
" Geburtstag"
// {filterBy: "Geb."},
],
calendars: [
{
// Dirk
symbol: "calendar",
color: "#006600",
url: "https://www.ferienwiki.de/exports/ferien/2020/de/hessen"
},
]
}
},
/**********************
* TOP_LEFT
**********************/
{
module: "calendar",
header: "Geburtstage",
position: "top_left",
config: {
tableClass: "medium",
colored: true,
coloredSymbolOnly: true,
fetchInterval: 60000,
nextDaysRelative: false,
fullDayEventDateFormat: "ddd DD. MMM",
timeFormat: "absolute",
urgency: 0,
getRelative: 0,
maximumEntries: 2,
maximumNumberOfDays: 30,
calendars: [
{
// Geburtstage
symbol: "birthday-cake",
color: "#5522aa",
url: "https://www.ferienwiki.de/exports/ferien/2020/de/hessen",
},
]
}
},
{
module: "calendar",
header: "Müllabfuhr2",
position: "top_left",
config: {
tableClass: "medium",
colored: true,
fetchInterval: 60000,
nextDaysRelative: false,
fullDayEventDateFormat: "ddd DD. MMM",
timeFormat: "absolute",
urgency: 0,
getRelative: 0,
maximumNumberOfDays: 8,
maximumEntries: 2,
fadePoint: 0.3,
calendars: [
{
// Müllabfuhr
symbol: "trash-alt",
color: "#FF6A00",
url: "https://www.ferienwiki.de/exports/ferien/2020/de/hessen",
},
]
}
},
/**********************
* TOP_RIGHT
**********************/
{
module: "calendar",
header: "Müllabfuhr",
position: "top_right",
config: {
tableClass: "medium",
colored: true,
fetchInterval: 60000,
nextDaysRelative: false,
fullDayEventDateFormat: "ddd DD. MMM",
timeFormat: "absolute",
urgency: 0,
getRelative: 0,
maximumNumberOfDays: 8,
maximumEntries: 2,
fadePoint: 0.3,
calendars: [
{
// Müllabfuhr
symbol: "trash-alt",
color: "#FF6A00",
url: "https://www.ferienwiki.de/exports/ferien/2020/de/hessen",
},
]
}
},
{
module: "calendar",
header: "Geburtstage2",
position: "top_right",
config: {
tableClass: "medium",
colored: true,
coloredSymbolOnly: true,
fetchInterval: 60000,
nextDaysRelative: false,
fullDayEventDateFormat: "ddd DD. MMM",
timeFormat: "absolute",
urgency: 0,
getRelative: 0,
maximumEntries: 2,
maximumNumberOfDays: 30,
calendars: [
{
// Geburtstage
symbol: "birthday-cake",
color: "#5522aa",
url: "https://www.ferienwiki.de/exports/ferien/2020/de/hessen",
},
]
}
},
]
};
Is the config responsible for this layout? Or the calendar connected?
For all calendars I Wish the icon to be aligned left, followed by the text and the date (the third column) aligned right the same way.
How do I get this done?
Every help is welcome.
Regards