Files
Dreierpack-Manager/assets/modern/select_menu.rcss
T

19 lines
2.1 KiB
Plaintext

/* SPDX-License-Identifier: GPL-3.0-only */
/* The visible trigger is the real RmlUI select. Only its list is adapted. */
body {--select-popup:#293744;--select-league-popup:#293744fa;--select-popup-border:#d9e8f13d;--select-popup-hover:#6286a855;}
body.silver {--select-popup:#f3f7fcfc;--select-league-popup:#f3f7fcfc;--select-popup-border:var(--border);--select-popup-hover:var(--hover);}
body.matchday {--select-popup:#303037fc;--select-league-popup:#303037fc;--select-popup-border:var(--border);--select-popup-hover:var(--hover);}
select {border-radius:12dp;}
select selectvalue {white-space:nowrap;}
select selectarrow {width:10dp;height:10dp;border-bottom:2dp var(--muted);border-right:2dp var(--muted);transform:rotate(45deg);}
.native-select-menu {position:absolute;z-index:1000;display:block;width:360dp;max-height:480dp;padding:10dp;overflow-y:auto;overflow-x:hidden;border:2dp var(--select-popup-border);border-radius:16dp;background-color:var(--select-popup);box-shadow:0dp 18dp 55dp #0008;color:var(--text);}
.native-select-menu.league {padding:10dp;border-radius:18dp;background-color:var(--select-league-popup);max-height:740dp;}
.native-select-menu>.native-select-option {display:flex;align-items:center;justify-content:flex-start;gap:12dp;width:100%;min-height:72dp;margin:0;padding:10dp 14dp;border:0dp;border-radius:8dp;background-color:transparent;color:var(--text);text-align:left;font-size:1em;line-height:1.3;tab-index:none;}
.native-select-menu.league>.native-select-option {gap:12dp;padding:10dp 14dp;border-radius:10dp;}
.native-select-menu>.native-select-option:hover,.native-select-menu>.native-select-option.is-cursor,.native-select-menu>.native-select-option:focus {background-color:var(--select-popup-hover);}
.native-select-menu>.native-select-option:disabled {opacity:0.4;cursor:arrow;background-color:transparent;}
.native-select-check {display:flex;align-items:center;justify-content:center;width:28dp;min-width:28dp;flex-shrink:0;color:var(--accent);}
.native-select-menu.league .native-select-check {width:34dp;min-width:34dp;}
.native-select-check>.image-frame {flex-shrink:0;}
.native-select-text {display:block;min-width:0;flex:1;white-space:nowrap;}