I would like to share something that Iāve been working on for the last couple of days because I couldnāt find it anywhere else (forgive me if someone else did it already and Iām just repeating).
Basically, Iām using Kumireiās fix for the header as a base, and Iāve written the following bit of code to define the colours of the radicals, kanji and vocab dropdowns according to the BD theme:
/* RADICALS, KANJI AND VOCABULARY DROPDOWNS */
.sitemap__section-header[data-expanded="false"]:hover {
border-color: rgba(188, 188, 188, 0.25) !important;
}
.sitemap__section-header[data-expanded="true"] {
border-color: #bcbcbc !important;
}
.sitemap__expandable-chunk--radicals,
.sitemap__expandable-chunk--radicals:before {
background-color: /*[[radicals-color]]*/ !important;
}
.sitemap__section-header--radicals[data-expanded="true"] {
border-color: /*[[radicals-color]]*/ !important;
color: /*[[radicals-color]]*/ !important;
}
.sitemap__section-header--radicals[data-expanded="false"]:hover {
border-color: rgba(61, 174, 233, 0.25) !important;
color: /*[[radicals-color]]*/ !important;
}
.sitemap__expandable-chunk--radicals[class*="rad"] * {
color: #232629 !important;
}
.sitemap__expandable-chunk--kanji,
.sitemap__expandable-chunk--kanji:before {
background-color: /*[[kanji-color]]*/ !important;
}
.sitemap__section-header--kanji[data-expanded="true"],
.sitemap__section-header--kanji[data-expanded="true"] span {
border-color: /*[[kanji-color]]*/ !important;
color: /*[[kanji-color]]*/ !important;
}
.sitemap__section-header--kanji[data-expanded="false"]:hover,
.sitemap__section-header--kanji[data-expanded="false"]:hover span {
border-color: rgba(253, 188, 75, 0.25) !important;
color: /*[[kanji-color]]*/ !important;
}
.sitemap__expandable-chunk--kanji[class*="kanji"] * {
color: #232629 !important;
}
.sitemap__expandable-chunk--vocabulary,
.sitemap__expandable-chunk--vocabulary:before {
background-color: /*[[vocab-color]]*/ !important;
}
.sitemap__section-header--vocabulary[data-expanded="true"],
.sitemap__section-header--vocabulary[data-expanded="true"] span{
border-color: /*[[vocab-color]]*/ !important;
color: /*[[vocab-color]]*/ !important;
}
.sitemap__section-header--vocabulary[data-expanded="false"]:hover,
.sitemap__section-header--vocabulary[data-expanded="false"]:hover span{
border-color: rgba(46, 204, 113, 0.25) !important;
color: /*[[vocab-color]]*/ !important;
}
.sitemap__expandable-chunk--vocabulary[class*="vocab"] * {
color: #232629 !important;
}
Iāve made it so that the colours of the buttons change when you hover over them in the same way that they do in the original web page, and the text is now dark grey to make it readable. The border of the Levels and Account buttons is also more visible (light gray).
This is the first time that Iāve ever coded in CSS, and Iāve done it by taking as an example the code that was already written, so Iām sure there may be a better way of writing it. But it works for me, and Iām slightly proud of it, so I hope someone else finds it useful!
Here are some screenshots:
PS: @Kumirei I see you have tiny lines separating your reviews and level buttons, and the account button. Would you mind explaining how you do that?