Spaces:
Running
Running
filters sticky
Browse files- index.html +6 -6
- src/style.css +6 -10
index.html
CHANGED
|
@@ -32,15 +32,15 @@
|
|
| 32 |
</div>
|
| 33 |
</header>
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
<main>
|
| 36 |
<div id="upload-status"></div>
|
| 37 |
|
| 38 |
-
<section id="filter-section" class="hidden">
|
| 39 |
-
<div class="filter-container" id="filter-container">
|
| 40 |
-
<!-- Activity type filters will be dynamically generated here -->
|
| 41 |
-
</div>
|
| 42 |
-
</section>
|
| 43 |
-
|
| 44 |
<section id="charts-section" class="hidden">
|
| 45 |
<div class="chart-container">
|
| 46 |
<h2>🗺️ Distance-based ACWR</h2>
|
|
|
|
| 32 |
</div>
|
| 33 |
</header>
|
| 34 |
|
| 35 |
+
<section id="filter-section" class="hidden">
|
| 36 |
+
<div class="filter-container" id="filter-container">
|
| 37 |
+
<!-- Activity type filters will be dynamically generated here -->
|
| 38 |
+
</div>
|
| 39 |
+
</section>
|
| 40 |
+
|
| 41 |
<main>
|
| 42 |
<div id="upload-status"></div>
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
<section id="charts-section" class="hidden">
|
| 45 |
<div class="chart-container">
|
| 46 |
<h2>🗺️ Distance-based ACWR</h2>
|
src/style.css
CHANGED
|
@@ -26,8 +26,7 @@ body {
|
|
| 26 |
|
| 27 |
#app {
|
| 28 |
min-height: 100vh;
|
| 29 |
-
display:
|
| 30 |
-
flex-direction: column;
|
| 31 |
}
|
| 32 |
|
| 33 |
header {
|
|
@@ -40,9 +39,6 @@ header {
|
|
| 40 |
align-items: center;
|
| 41 |
gap: 2rem;
|
| 42 |
flex-wrap: wrap;
|
| 43 |
-
position: sticky;
|
| 44 |
-
top: 0;
|
| 45 |
-
z-index: 200;
|
| 46 |
}
|
| 47 |
|
| 48 |
header h1 {
|
|
@@ -263,7 +259,6 @@ header h1 {
|
|
| 263 |
}
|
| 264 |
|
| 265 |
main {
|
| 266 |
-
flex: 1;
|
| 267 |
padding: 2rem;
|
| 268 |
max-width: 100%;
|
| 269 |
margin: 0 auto;
|
|
@@ -390,13 +385,12 @@ h2 {
|
|
| 390 |
/* Filter Section */
|
| 391 |
#filter-section {
|
| 392 |
background-color: var(--card-bg);
|
| 393 |
-
border-
|
| 394 |
padding: 1rem 2rem;
|
| 395 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
| 396 |
-
margin-bottom: 2rem;
|
| 397 |
position: sticky;
|
| 398 |
-
top:
|
| 399 |
-
z-index:
|
| 400 |
}
|
| 401 |
|
| 402 |
#filter-container {
|
|
@@ -404,6 +398,8 @@ h2 {
|
|
| 404 |
align-items: center;
|
| 405 |
flex-wrap: wrap;
|
| 406 |
gap: 1.5rem;
|
|
|
|
|
|
|
| 407 |
}
|
| 408 |
|
| 409 |
.filter-checkbox {
|
|
|
|
| 26 |
|
| 27 |
#app {
|
| 28 |
min-height: 100vh;
|
| 29 |
+
display: block;
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
header {
|
|
|
|
| 39 |
align-items: center;
|
| 40 |
gap: 2rem;
|
| 41 |
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
| 42 |
}
|
| 43 |
|
| 44 |
header h1 {
|
|
|
|
| 259 |
}
|
| 260 |
|
| 261 |
main {
|
|
|
|
| 262 |
padding: 2rem;
|
| 263 |
max-width: 100%;
|
| 264 |
margin: 0 auto;
|
|
|
|
| 385 |
/* Filter Section */
|
| 386 |
#filter-section {
|
| 387 |
background-color: var(--card-bg);
|
| 388 |
+
border-bottom: 1px solid var(--border-color);
|
| 389 |
padding: 1rem 2rem;
|
| 390 |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
|
|
| 391 |
position: sticky;
|
| 392 |
+
top: 0;
|
| 393 |
+
z-index: 200;
|
| 394 |
}
|
| 395 |
|
| 396 |
#filter-container {
|
|
|
|
| 398 |
align-items: center;
|
| 399 |
flex-wrap: wrap;
|
| 400 |
gap: 1.5rem;
|
| 401 |
+
max-width: 100%;
|
| 402 |
+
margin: 0 auto;
|
| 403 |
}
|
| 404 |
|
| 405 |
.filter-checkbox {
|