Skip to content

Commit a5c70d5

Browse files
authored
Merge pull request #315 from UW-Macrostrat/timescale-item
Timescale styling
2 parents 7c90d9c + bfb490d commit a5c70d5

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

pages/lex/timescales/@id/+Page.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,17 @@ export function Page() {
7676
h("div.timescale-content", [
7777
h("h1", titleCase(timescale)),
7878
h("h3", max_age + " - " + min_age + " Ma"),
79-
h(Timescale, {
80-
length: 970,
81-
levels: [0, 5],
82-
ageRange: [min_age, max_age],
83-
orientation: "horizontal",
84-
absoluteAgeScale: true,
85-
onClick: handleClick,
86-
}),
79+
h('div.timescale-container',
80+
h(Timescale, {
81+
length: 970,
82+
levels: [0, 5],
83+
ageRange: [min_age, max_age],
84+
orientation: "horizontal",
85+
absoluteAgeScale: true,
86+
onClick: handleClick,
87+
className: "timescale",
88+
}),
89+
),
8790
h(
8891
"div.int-list",
8992
Object.entries(grouped).map(([intType, group]) =>

pages/lex/timescales/@id/main.module.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ h3 {
1313
gap: 1em;
1414
}
1515

16+
.timescale-container {
17+
color: var(--text-emphasized-color) !important;
18+
19+
line {
20+
stroke: var(--text-emphasized-color) !important;
21+
}
22+
}
23+
1624
tspan {
17-
fill: var(--text-color); // sets the color to deep orange
25+
fill: var(--text-color);
1826
font-size: 14px;
1927
}
2028

@@ -43,4 +51,4 @@ tspan {
4351
border-radius: 0.2em;
4452
}
4553
}
46-
}
54+
}

pages/maps/+Page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,4 @@ function SourceItem({ data }) {
190190
]),
191191
]
192192
);
193-
}
193+
}

0 commit comments

Comments
 (0)