Skip to content

Commit e2b6d78

Browse files
committed
Refactor styles for navigator-title
1 parent 3ed9dcc commit e2b6d78

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

src/components/Navigator/NavigatorCard.vue

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@
3232
@keydown.up.exact.capture.prevent="focusPrev"
3333
@keydown.down.exact.capture.prevent="focusNext"
3434
>
35-
<slot name="navigator-title">
35+
<slot name="navigator-title" className="navigator-title">
3636
<Reference
3737
v-if="technology"
3838
:id="INDEX_ROOT_KEY"
3939
:url="technologyPath"
40-
:class="['technology-title', { 'router-link-exact-active': isTechnologyRoute }]"
40+
:class="[
41+
'technology-title navigator-title',
42+
{ 'router-link-exact-active': isTechnologyRoute }
43+
]"
4144
@click.alt.native.prevent="toggleAllNodes"
4245
>
4346
<h2 class="card-link">
@@ -1015,26 +1018,31 @@ $navigator-card-vertical-spacing: 8px !default;
10151018
}
10161019
}
10171020
1018-
.technology-title {
1021+
:deep(.navigator-title) {
10191022
@include safe-area-left-set(margin-left, var(--card-horizontal-spacing));
10201023
@include safe-area-right-set(margin-right, var(--card-horizontal-spacing));
1024+
white-space: nowrap;
10211025
padding: $navigator-card-vertical-spacing $nav-card-horizontal-spacing;
10221026
padding-left: $nav-card-horizontal-spacing * 2;
1027+
@include font-styles(label-reduced);
1028+
font-weight: $font-weight-semibold;
1029+
overflow: hidden;
1030+
text-overflow: ellipsis;
1031+
}
1032+
1033+
.technology-title {
10231034
background: $technology-title-background;
10241035
border-radius: $nano-border-radius;
10251036
display: flex;
1026-
white-space: nowrap;
1037+
color: var(--color-text);
10271038
1028-
@include breakpoint(small, nav) {
1029-
margin-top: 0;
1039+
.card-link {
1040+
font-size: inherit;
1041+
font-weight: inherit
10301042
}
10311043
1032-
.card-link {
1033-
color: var(--color-text);
1034-
@include font-styles(label-reduced);
1035-
font-weight: $font-weight-semibold;
1036-
overflow: hidden;
1037-
text-overflow: ellipsis;
1044+
@include breakpoint(small, nav) {
1045+
margin-top: 0;
10381046
}
10391047
10401048
&.router-link-exact-active {

0 commit comments

Comments
 (0)