Mit Boardmitteln nicht, das wäre zu spezifisch.
Du kannst dein Template cal_default leicht anpassen.
PHP-Code:
...
<a href="<?= $event['href'] ?>" ... ><?= $event['link'] ?></a>
<div class="teaser invisible"><?= $event['teaser'] ?></div>
...
Den Selektor ".invisible" solltest du in deinem CSS zur Verfügung haben.
https://github.com/contao/core/blob/...essed.css#L105
Diese Regel versteckt Elemente, lässt sie aber für Screenreader sichtbar.
Das Ganze kannst du dann mit CSS gestalten, z.B. so.
PHP-Code:
/* CSS */
.mod_calendar {
overflow: visible;
}
.mod_calendar .event {
background-color: red;
position: relative;
}
.mod_calendar .teaser {
background-color: green;
border-radius: 10px;
box-shadow: 2px 2px 4px 0 rgba(0, 0, 0, .5);
opacity: 0;
transition: opacity .3s ease 0s;
}
.mod_calendar .event a:hover + .teaser {
width: auto;
min-width: 200px;
height: auto;
margin: 0;
clip: auto;
padding: 1em;
opacity: .95;
z-index: 1;
}
Lesezeichen