dropdown field arrow
This commit is contained in:
1 parent
97ebaf3c06
commit
819109d5a4
2 files changed
+43
-10
No files matched your search
@@ -72,6 +72,37 @@
|
|||||||
overflow-wrap: anywhere;
|
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 select,
|
||||||
.atocal-row input[type="text"] {
|
.atocal-row input[type="text"] {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
|||||||
+12
-10
@@ -116,16 +116,18 @@ $l = $_['l10n'];
|
|||||||
<label for="atocal-calendar">
|
<label for="atocal-calendar">
|
||||||
<strong><?= $h($l->t('Calendar')) ?></strong>
|
<strong><?= $h($l->t('Calendar')) ?></strong>
|
||||||
</label>
|
</label>
|
||||||
<select id="atocal-calendar" name="calendarId">
|
<span class="atocal-select">
|
||||||
<?php foreach ($_['calendars'] as $calendar): ?>
|
<select id="atocal-calendar" name="calendarId">
|
||||||
<option
|
<?php foreach ($_['calendars'] as $calendar): ?>
|
||||||
value="<?= $h($calendar['value']) ?>"
|
<option
|
||||||
<?= $calendar['value'] === $_['calendarId'] ? 'selected' : '' ?>
|
value="<?= $h($calendar['value']) ?>"
|
||||||
>
|
<?= $calendar['value'] === $_['calendarId'] ? 'selected' : '' ?>
|
||||||
<?= $h($calendar['displayName']) ?>
|
>
|
||||||
</option>
|
<?= $h($calendar['displayName']) ?>
|
||||||
<?php endforeach; ?>
|
</option>
|
||||||
</select>
|
<?php endforeach; ?>
|
||||||
|
</select>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user