File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ * {
2+ padding : 0 ;
3+ margin : 0 ;
4+ box-sizing : border-box;
5+ }
6+
7+ body {
8+ display : flex;
9+ justify-content : center;
10+ align-items : center;
11+ min-height : 100vh ;
12+ }
13+
14+ .select {
15+ width : 100% ;
16+ position : relative;
17+ max-width : 300px ;
18+ }
19+
20+ .select select {
21+ display : none !important ;
22+ background-color : # ffffff ;
23+ }
24+
25+ .select > .label {
26+ padding : 10px 10px ;
27+ border : 2px solid rgb (216 , 216 , 216 );
28+ text-transform : capitalize;
29+ cursor : pointer;
30+ display : block;
31+ width : 100% ;
32+ border-radius : 5px ;
33+ background-color : # f7f7f7 ;
34+ transition : 0.3s all;
35+ }
36+
37+ .select > .options {
38+ width : 100% ;
39+ list-style : none;
40+ padding : 0 ;
41+ margin : 0 ;
42+ border : 2px solid rgb (216 , 216 , 216 );
43+ display : none;
44+ position : absolute;
45+ top : calc (100% + 2px );
46+ z-index : 1 ;
47+ background-color : # f7f7f7 ;
48+ border-radius : 5px ;
49+ overflow : hidden;
50+ max-height : 300px ;
51+ overflow : auto;
52+ }
53+
54+ .select .active > .options {
55+ display : block;
56+ }
57+
58+ .select > .options > li {
59+ padding : 7px 10px ;
60+ text-transform : capitalize;
61+ cursor : pointer;
62+ transition : 0.3s all;
63+ }
64+
65+ .select > .options > li : hover ,
66+ .select > .options > li .current {
67+ background : rgb (219 , 219 , 219 );
68+ }
You can’t perform that action at this time.
0 commit comments