Skip to content

Commit 08cfac8

Browse files
weyertalexkrolick
authored andcommitted
Improved the selected navigation item indicator, fixes testing-library#7 (testing-library#9)
* Update custom.css * feat: added active navigation indicator * fix: supporting the beautiful creatures named the octopus
1 parent f2de664 commit 08cfac8

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

website/static/css/custom.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,29 @@ a {
3737
color: $secondaryColor;
3838
}
3939

40+
/* Change styling of selected navigation item */
41+
.container .docsNavContainer {
42+
padding-left: 12px
43+
}
44+
45+
.navListItemActive {
46+
position: relative;
47+
}
48+
49+
.navListItemActive a.navItem {
50+
color: red !important;
51+
}
52+
53+
.navListItem {
54+
padding-left: 1rem !important;
55+
}
56+
57+
.navListItem.navListItemActive:before {
58+
content: "🐙";
59+
position: absolute;
60+
left: -8px;
61+
}
62+
4063
@media only screen and (min-device-width: 360px) and (max-device-width: 736px) {
4164
}
4265

@@ -61,4 +84,4 @@ a {
6184
}
6285

6386
@media only screen and (min-width: 1500px) {
64-
}
87+
}

0 commit comments

Comments
 (0)