diff --git a/html/css/main.css b/html/css/main.css index 2ff9a3f6..6644022a 100644 --- a/html/css/main.css +++ b/html/css/main.css @@ -1,5 +1,8 @@ :root { - --ghs-autocomplete-menu-height: 340px; + --ghs-autocomplete-menu-items: 10; + --ghs-autocomplete-menu-height: calc(32px * var(--ghs-autocomplete-menu-items) + 2rem); + --ghs-dropdown-menu-items: 5; + --ghs-dropdown-menu-height: calc(32px * var(--ghs-dropdown-menu-items) + 1.125rem); --ghs-bottom-border: var(--bs-border-width) var(--bs-border-style) var(--bs-gray); --ghs-box-shadow: 0 0 0 0.2rem rgba(var(--bs-secondary-rgb), 0.25); --ghs-disabled-opacity: 0.6; @@ -93,6 +96,7 @@ input::-webkit-calendar-picker-indicator { } .btn-override { + height: var(--ghs-input-height)!important; color: var(--bs-secondary)!important; background-color: var(--bs-gray-200)!important; border-top: none!important; @@ -112,6 +116,10 @@ input::-webkit-calendar-picker-indicator { background-color: var(--bs-secondary)!important; } +.form-check { + margin-bottom: 0!important; +} + .form-check > * { cursor: pointer!important; } @@ -151,10 +159,24 @@ input::-webkit-calendar-picker-indicator { padding: var(--bs-dropdown-padding-y) 0!important; } +.dropdown-menu.dropdown-menu-scrollable { + height: auto!important; + max-height: var(--ghs-dropdown-menu-height)!important; + overflow-x: hidden!important; +} + .dropdown-toggle::after { display: none!important; } +.dropdown-toggle.btn-override { + overflow: hidden!important; + display: flex!important; + justify-content: space-between!important; + align-items: center!important; + gap: 0.25rem!important; +} + .dropdown-item.active, .dropdown-item:active { background-color: var(--bs-gray)!important; diff --git a/html/index.html b/html/index.html index 902f5dba..0991d9c4 100644 --- a/html/index.html +++ b/html/index.html @@ -107,8 +107,8 @@ class="nav-link" tabindex="-1" > - - GitHub + + GitHub @@ -141,7 +141,7 @@
General
data-bs-toggle="dropdown" aria-expanded="false" > - Contains + Contains