pantdipendra commited on
Commit
4cc470e
·
verified ·
1 Parent(s): cc86a99

arrow and timeline steps highlight

Browse files
Files changed (1) hide show
  1. style.css +43 -1
style.css CHANGED
@@ -171,7 +171,7 @@ header p { margin: 0; color: var(--muted); }
171
  /* flow buttons */
172
  .flow {
173
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px;
174
- width: min(960px, 92vw); background: #39629b;
175
  border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 10px 12px;
176
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
177
  }
@@ -268,3 +268,45 @@ header p { margin: 0; color: var(--muted); }
268
  padding-left: 14px;
269
  }
270
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  /* flow buttons */
172
  .flow {
173
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px;
174
+ width: min(960px, 92vw); background: #1f3859;
175
  border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 10px 12px;
176
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
177
  }
 
268
  padding-left: 14px;
269
  }
270
  }
271
+
272
+
273
+ /* Highlight the step that's currently linked to the flow bar */
274
+ .step.current {
275
+ background: #142235 !important; /* same color as .flow */
276
+ border-color: rgba(255,255,255,0.28) !important;
277
+ box-shadow: 0 12px 40px rgba(0,0,0,0.45);
278
+ }
279
+ .step.current .num {
280
+ background: rgba(255,255,255,0.18);
281
+ border-color: rgba(255,255,255,0.22);
282
+ }
283
+ .step.current .badge {
284
+ background: rgba(255,255,255,0.12);
285
+ border-color: rgba(255,255,255,0.22);
286
+ color: #fff;
287
+ }
288
+ /* Don't let hover override the 'current' highlight */
289
+ .step.current:hover,
290
+ .step.current:focus-within {
291
+ background: #1f3859 !important;
292
+ /* border-color: rgba(255,255,255,0.28) !important;*/
293
+ /* transform: translateY(-2px);*/
294
+ /*box-shadow: 0 12px 40px rgba(0,0,0,0.45);*/
295
+ }
296
+
297
+ /* Full-screen overlay SVG for the bent arrow */
298
+ .linksvg {
299
+ position: fixed;
300
+ inset: 0;
301
+ width: 100vw;
302
+ height: 100vh;
303
+ pointer-events: none; /* clicks go through */
304
+ z-index: 20; /* above content, below modal if you use it */
305
+ }
306
+ .linksvg path {
307
+ stroke: #98a1b2; /* soft ink color; tweak if you like */
308
+ stroke-width: 3;
309
+ fill: none;
310
+ filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
311
+ opacity: 0.9;
312
+ }