diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-09-30 17:59:05 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-10-01 11:35:11 +0800 |
commit | f4fe9ff6c1ce2811fe9aa0272333b4732a6ebcdc (patch) | |
tree | 6bde54a5c2afe37fb4bea6a00b492e74a0720e16 /src/css/index.css | |
parent | 193ba872c455296bff55e5f6a7d6dbbbb85c265e (diff) |
refactor: move menu feature from editor to dumbymap
Diffstat (limited to 'src/css/index.css')
-rw-r--r-- | src/css/index.css | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/css/index.css b/src/css/index.css index 069bf85..b13a45d 100644 --- a/src/css/index.css +++ b/src/css/index.css | |||
@@ -104,22 +104,6 @@ body { | |||
104 | } | 104 | } |
105 | } | 105 | } |
106 | 106 | ||
107 | #menu { | ||
108 | display: none; | ||
109 | width: fit-content; | ||
110 | |||
111 | position: absolute; | ||
112 | z-index: 9999; | ||
113 | |||
114 | border: 2px solid gray; | ||
115 | border-radius: 6px; | ||
116 | |||
117 | background: white; | ||
118 | min-width: 10rem; | ||
119 | max-height: 40vh; | ||
120 | overflow-y: scroll; | ||
121 | } | ||
122 | |||
123 | .container__suggestion { | 107 | .container__suggestion { |
124 | display: flex; | 108 | display: flex; |
125 | overflow: hidden; | 109 | overflow: hidden; |
@@ -161,54 +145,3 @@ body { | |||
161 | } | 145 | } |
162 | } | 146 | } |
163 | } | 147 | } |
164 | |||
165 | .menu-item { | ||
166 | display: flex; | ||
167 | box-sizing: border-box; | ||
168 | justify-content: space-between; | ||
169 | padding: 0.5rem; | ||
170 | |||
171 | z-index: 9999; | ||
172 | |||
173 | border: 2px solid transparent; | ||
174 | border-radius: 5px; | ||
175 | |||
176 | cursor: pointer; | ||
177 | text-wrap: nowrap; | ||
178 | |||
179 | &:hover { | ||
180 | background: rgb(226 232 240); | ||
181 | } | ||
182 | |||
183 | .info { | ||
184 | padding-inline: 1em; | ||
185 | |||
186 | color: steelblue; | ||
187 | font-weight: bold; | ||
188 | } | ||
189 | } | ||
190 | |||
191 | .folder::after { | ||
192 | content: '⏵'; | ||
193 | } | ||
194 | |||
195 | .sub-menu { | ||
196 | overflow: scroll; | ||
197 | width: fit-content; | ||
198 | |||
199 | position: absolute; | ||
200 | z-index: 100; | ||
201 | |||
202 | border: 2px solid gray; | ||
203 | border-radius: 6px; | ||
204 | |||
205 | background: white; | ||
206 | min-width: 6rem; | ||
207 | max-height: 40vh; | ||
208 | |||
209 | .menu-item { | ||
210 | margin: 0 auto; | ||
211 | padding-inline: 0.5em; | ||
212 | min-width: 5em; | ||
213 | } | ||
214 | } | ||