-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdropdownCSS.css
More file actions
122 lines (101 loc) · 2.17 KB
/
dropdownCSS.css
File metadata and controls
122 lines (101 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/* Global styles */
* {
margin: 0;
box-sizing: border-box;
}
:root {
--accualDropdownSize: 50px;
}
.WholeSelectorObject {
place-self: center;
}
/* from: https://www.youtube.com/watch?v=Qhaz36TZG5Y */
.dropdown {
opacity: 0;
visibility: hidden;
}
.AutocompleatSearchBox:focus-within .dropdown, .AutocompleatSearchBox:focus-within .dropdown
{
opacity: 1;
visibility: visible;
}
.PropertyInputBox,
.ItemSelectorHolder
{
display: inline-block;
position: relative;
height: 10%;
width: 350px;
background-color: var(--colorBackground);
margin-left: 5px;
margin-right: 5px;
}
/* Input styling
.Input {
display: flex;
flex-direction: column;
justify-content: center;
place-self: center;
border: var(--border);
border-radius: var(--radius);
height: 36px;
width: 280px;
margin-top: 10px;
padding: var(--gutter);
background-color: white;
position: absolute;
}
.input:hover {
cursor: pointer;
} */
.PropertyInputBox {
position: relative;
}
/* Dropdown styling */
.structure {
--dropdownDisplaySize: 200px;
display: flex;
flex-direction: column;
justify-content: flex-start;
place-self: center;
height: var(--dropdownDisplaySize);
width: 280px;
overflow-y: scroll;
background-color: white;
box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
padding: 10px 0;
margin-bottom: calc(var(--accualDropdownSize) - var(--dropdownDisplaySize));
position: relative;
z-index: 1;
}
.structure>button {
display: flex;
flex-direction: row;
align-items: center;
padding: 16px;
background: none;
border: none;
z-index: 2;
}
.structure>button:hover {
background-color: var(--colorAccent);
color: rgb(163, 163, 163);
cursor: pointer;
}
.structure>button>h5 {
font-weight: 600;
margin-right: 4px;
}
.structure>button>p {
font-weight: 400;
font-size: 13px;
color: var(--colorPlaceholder);
}
.hide {
opacity: 0 !important;
visibility: hidden !important;
}
.structure>.disapear
{
display: none;
}