Skip to content

Commit 2e300d4

Browse files
committed
change back button positions mostly for mobile
1 parent e9cff78 commit 2e300d4

File tree

3 files changed

+26
-4
lines changed

3 files changed

+26
-4
lines changed

LongevityWorldCup.Website/wwwroot/onboarding/convergence.html

+6
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@
131131
border-radius: 3px;
132132
cursor: pointer;
133133
}
134+
135+
/* Must use important because back button styles applied later. Without important it doesn't overwrite it. */
136+
.back-button {
137+
margin-right: auto !important;
138+
margin-left: 0 !important; /* Resets left margin */
139+
}
134140
</style>
135141
</head>
136142
<body>

LongevityWorldCup.Website/wwwroot/onboarding/pheno-age.html

+12-4
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@
7777
width: auto;
7878
min-width: var(--unit-select-min-width, auto); /* Placeholder variable for dynamic width */
7979
}
80+
81+
@media (max-width: 768px) {
82+
/* Must use important because back button styles applied later. Without important it doesn't overwrite it. */
83+
.back-button {
84+
margin-right: auto !important;
85+
margin-left: 0 !important; /* Resets left margin */
86+
}
87+
}
8088
</style>
8189
</head>
8290
<body>
@@ -386,10 +394,10 @@ <h2 data-aos="fade" data-aos-duration="700" data-aos-delay="250">The Blood Pact
386394
// Setting up the animated counter effect
387395
let displayAge = 0;
388396
resultElement.innerHTML = `
389-
<div style="font-size: 1rem; color: #2c3e50; text-align: center;">Your biological age is:</div>
390-
<div style="font-size: 2.5rem; color: #4CAF50; font-weight: bold; text-align: center;"><span id="animatedAge">0</span></div>
391-
<div id="yearsText" style="font-size: 1rem; color: #2c3e50; text-align: center;">years</div>
392-
`;
397+
<div style="font-size: 1rem; color: #2c3e50; text-align: center;">Your biological age is:</div>
398+
<div style="font-size: 2.5rem; color: #4CAF50; font-weight: bold; text-align: center;"><span id="animatedAge">0</span></div>
399+
<div id="yearsText" style="font-size: 1rem; color: #2c3e50; text-align: center;">years</div>
400+
`;
393401

394402
if (isFirstTimeAnimation) {
395403
// Set the flag to false after the first run

LongevityWorldCup.Website/wwwroot/onboarding/waiting-for-lab.html

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
transform: scale(1.03); /* Slight hover enlarge effect */
2525
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
2626
}
27+
28+
@media (max-width: 768px) {
29+
/* Must use important because back button styles applied later. Without important it doesn't overwrite it. */
30+
.back-button {
31+
margin-right: auto !important;
32+
margin-left: 0 !important; /* Resets left margin */
33+
}
34+
}
2735
</style>
2836

2937
<script>

0 commit comments

Comments
 (0)