mirror of
https://github.com/thangisme/notes.git
synced 2024-11-17 16:56:00 -05:00
Added feedback color variable for nav item/search result hover
(cherry picked from commit f25d76730b175fb680aa2770fb20a67fd858ffbb)
This commit is contained in:
parent
8a3458bafd
commit
bf86c33fe1
@ -15,3 +15,4 @@ $base-button-color: $grey-dk-250;
|
||||
$code-background-color: $grey-dk-250;
|
||||
$search-background-color: $grey-dk-250;
|
||||
$table-background-color: $grey-dk-250;
|
||||
$feedback-color: darken($sidebar-color, 3%);
|
||||
|
@ -165,7 +165,7 @@
|
||||
|
||||
.site-title:hover,
|
||||
.site-button:hover {
|
||||
background-color: darken($sidebar-color, 3%);
|
||||
background-color: $feedback-color;
|
||||
}
|
||||
|
||||
// stylelint-disable selector-max-type
|
||||
|
@ -32,7 +32,7 @@
|
||||
|
||||
&:hover,
|
||||
&.active {
|
||||
background-color: darken($sidebar-color, 3%);
|
||||
background-color: $feedback-color;
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@
|
||||
fill: $link-color;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($sidebar-color, 3%);
|
||||
background-color: $feedback-color;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -112,7 +112,7 @@
|
||||
|
||||
&:hover,
|
||||
&.active {
|
||||
background-color: $sidebar-color;
|
||||
background-color: $feedback-color;
|
||||
}
|
||||
|
||||
@include mq(md) {
|
||||
|
@ -56,6 +56,7 @@ $sidebar-color: $grey-lt-000 !default;
|
||||
$search-background-color: $white !default;
|
||||
$table-background-color: $white !default;
|
||||
$code-background-color: $grey-lt-000 !default;
|
||||
$feedback-color: darken($sidebar-color, 3%) !default;
|
||||
|
||||
$body-text-color: $grey-dk-100 !default;
|
||||
$body-heading-color: $grey-dk-300 !default;
|
||||
|
@ -27,6 +27,7 @@ function initNav() {
|
||||
jtd.addEvent(document, 'click', function(e){
|
||||
var expander = e.path.find(function(x){ return x.classList && x.classList.contains('nav-list-expander') });
|
||||
if (expander) {
|
||||
e.preventDefault();
|
||||
expander.parentElement.classList.toggle('active');
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user