select

Better select widgets in vanilla javascript.  https://p.ce9e.org/select/demo/
git clone https://git.ce9e.org/select.git

commit
0b48cebfde67957b17aff8d58633ed98972635dc
parent
c1393645c57e2429d7962d5f6253c3146411aba8
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2023-06-12 12:08
make last line half visible

Diffstat

M select.css 6 +++++-

1 files changed, 5 insertions, 1 deletions


diff --git a/select.css b/select.css

@@ -22,8 +22,12 @@
   22    22 	border-top: 0;
   23    23 	left: 0;
   24    24 	right: 0;
   25    -1 	max-height: 10em;
   26    25 	overflow-y: auto;
   -1    26 
   -1    27 	/* line-height and height are chosen so that the last line is only */
   -1    28 	/* half visible (to indivate that there is more below) */
   -1    29 	line-height: 1.2;
   -1    30 	max-height: 10.4em;
   27    31 }
   28    32 .select__dropdown:empty {
   29    33 	display: none;