dropdown field arrow

This commit is contained in:
stefan.tollkuehn committed 2026-10-22 18:35:57 +02:00
1 parent 97ebaf3c06
commit 819109d5a4
2 files changed
+43 -10

No files matched your search

+31
View File
@@ -72,6 +72,37 @@
overflow-wrap: anywhere;
}
/*
* Select box with a theme-colored chevron instead of the
* native arrow, which is not visible on every platform.
*
* ┌───────────────────────────────┐
* │ Personal ⌄ │
* └───────────────────────────────┘
*/
.atocal-select {
position: relative;
display: block;
}
.atocal-select::after {
content: "";
position: absolute;
top: calc(50% - 5px);
right: 12px;
width: 8px;
height: 8px;
border-right: 2px solid var(--color-text-maxcontrast);
border-bottom: 2px solid var(--color-text-maxcontrast);
transform: rotate(45deg);
pointer-events: none;
}
.atocal-select select {
appearance: none;
padding-right: 32px;
}
.atocal-row select,
.atocal-row input[type="text"] {
align-self: center;
+12 -10
View File
@@ -116,16 +116,18 @@ $l = $_['l10n'];
<label for="atocal-calendar">
<strong><?= $h($l->t('Calendar')) ?></strong>
</label>
<select id="atocal-calendar" name="calendarId">
<?php foreach ($_['calendars'] as $calendar): ?>
<option
value="<?= $h($calendar['value']) ?>"
<?= $calendar['value'] === $_['calendarId'] ? 'selected' : '' ?>
>
<?= $h($calendar['displayName']) ?>
</option>
<?php endforeach; ?>
</select>
<span class="atocal-select">
<select id="atocal-calendar" name="calendarId">
<?php foreach ($_['calendars'] as $calendar): ?>
<option
value="<?= $h($calendar['value']) ?>"
<?= $calendar['value'] === $_['calendarId'] ? 'selected' : '' ?>
>
<?= $h($calendar['displayName']) ?>
</option>
<?php endforeach; ?>
</select>
</span>
</div>
<?php endif; ?>