Skip to content

Commit cb53458

Browse files
committed
Improve borders on timestamps
* Fixes the double border issue, and changes color depending on if it's for a Track or Challenge * `VideoSection` is defined separately for Tracks and Challenges separately, so it changes both * Keeps the default white background color on Track Stops and Parts respectively
1 parent 677680a commit cb53458

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

src/components/TimestampTimeline.module.css

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
display: flex;
1212
padding: 0;
1313
cursor: pointer;
14-
border-bottom: var(--border-red-light);
15-
border-top: var(--border-red-light);
14+
15+
&:first-child {
16+
/* border-top will be set by the variant */
17+
border-top: none !important;
18+
}
19+
1620
& span {
1721
display: flex;
1822
align-items: center;
@@ -68,6 +72,10 @@
6872
& .time {
6973
color: var(--red);
7074
}
75+
76+
& .timestamp {
77+
border-top: var(--border-red-light);
78+
}
7179
}
7280

7381
.cyan {
@@ -83,6 +91,10 @@
8391
& .time {
8492
color: var(--cyan);
8593
}
94+
95+
& .timestamp {
96+
border-top: var(--border-cyan-light);
97+
}
8698
}
8799

88100
@media (--reduced) {

src/components/challenges/VideoSection.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,7 @@
150150
font-size: var(--maru-small);
151151
font-family: var(--maru-mono);
152152

153-
background-color: #fffcfc;
154-
background-color: var(--red-lightest);
153+
background-color: white;
155154
}
156155

157156
.partTimeline.hide,

src/components/tracks/VideoSection.module.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@
150150
color: var(--red);
151151
font-size: var(--maru-small);
152152
font-family: var(--maru-mono);
153+
154+
background-color: white;
153155
}
154156

155157
.overviewTimeline.hide,

src/styles/variables.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
--border-red-light: 1px solid rgba(255, 0, 0, 0.1);
112112
--border-orange: 1px solid var(--orange);
113113
--border-cyan: 1px solid var(--cyan);
114+
--border-cyan-light: 1px solid rgba(0, 128, 128, 0.1);
114115
--border-pink: 1px solid var(--pink);
115116

116117
--box-padding: 25px;

0 commit comments

Comments
 (0)