aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-09-16 00:31:02 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-09-16 00:34:29 +0800
commit4ae512fe8394b87c722377917332895a756a575a (patch)
tree49f5c2003e1eb11b47e9b42106e9448bab7a090a /src
parent02aba12a3215efbd496ac667924da5937b59283d (diff)
feat(CSS): draggable handle
* Linear gradient for scroll-up contents * Set higer z-index to overlap elments like leaflets * Gray-out contents when interacting with handle * Set content padding only for direct children for block
Diffstat (limited to 'src')
-rw-r--r--src/css/dumbymap.css13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css
index bbbd38c..0e24785 100644
--- a/src/css/dumbymap.css
+++ b/src/css/dumbymap.css
@@ -152,7 +152,7 @@
152 padding-bottom: 0; 152 padding-bottom: 0;
153 resize: both; 153 resize: both;
154 154
155 * { 155 > * {
156 padding-inline: 0.5rem; 156 padding-inline: 0.5rem;
157 } 157 }
158 158
@@ -171,17 +171,22 @@
171 display: block; 171 display: block;
172 top: 0; 172 top: 0;
173 position: sticky; 173 position: sticky;
174 background-color: white; 174 background: linear-gradient(0deg, rgba(255,255,255,0), rgba(255,255,255,1) 60%);
175 margin-bottom: -18px; 175 margin-bottom: -18px;
176 transform: translate(0, -16px); 176 transform: translate(0, -16px);
177 width: 100%; 177 width: 100%;
178 padding-inline: 0; 178 padding-inline: 0;
179 padding-bottom: 2em;
179 text-align: center; 180 text-align: center;
180 z-index: 100; 181 z-index: 9999;
181 transition: all 0.3s ease-out; 182 transition: all 0.3s ease-out;
182 &:hover { 183 &:hover {
183 background-color: #f1f1f1; 184 background: #e1e1e1;
184 padding-block: 1em 0.5em; 185 padding-block: 1em 0.5em;
186 & ~ * {
187 opacity: 0.7;
188 color: gray;
189 }
185 } 190 }
186 } 191 }
187 } 192 }