Highlight logo square when viewing status page
parent
8aaa374c80
commit
afc911c1ce
|
@ -69,10 +69,14 @@ const SideNav = React.createClass({
|
||||||
const dataExplorerLink = `${sourcePrefix}/chronograf/data-explorer`
|
const dataExplorerLink = `${sourcePrefix}/chronograf/data-explorer`
|
||||||
const isUsingAuth = !!logoutLink
|
const isUsingAuth = !!logoutLink
|
||||||
|
|
||||||
|
const isDefaultPage = location.split('/').includes(DEFAULT_HOME_PAGE)
|
||||||
|
|
||||||
return isHidden
|
return isHidden
|
||||||
? null
|
? null
|
||||||
: <NavBar location={location}>
|
: <NavBar location={location}>
|
||||||
<div className="sidebar--item">
|
<div
|
||||||
|
className={isDefaultPage ? 'sidebar--item active' : 'sidebar--item'}
|
||||||
|
>
|
||||||
<Link
|
<Link
|
||||||
to={`${sourcePrefix}/${DEFAULT_HOME_PAGE}`}
|
to={`${sourcePrefix}/${DEFAULT_HOME_PAGE}`}
|
||||||
className="sidebar--square sidebar--logo"
|
className="sidebar--square sidebar--logo"
|
||||||
|
|
|
@ -115,6 +115,16 @@ $sidebar-menu--gutter: 18px;
|
||||||
background-color: $sidebar--logo-bg-hover;
|
background-color: $sidebar--logo-bg-hover;
|
||||||
.sidebar--icon {color: $sidebar--logo-color-hover;}
|
.sidebar--icon {color: $sidebar--logo-color-hover;}
|
||||||
}
|
}
|
||||||
|
.sidebar--item.active .sidebar--square.sidebar--logo {
|
||||||
|
background-color: $sidebar--logo-bg-hover;
|
||||||
|
.sidebar--icon {
|
||||||
|
color: $sidebar--logo-color-hover;
|
||||||
|
text-shadow:
|
||||||
|
0 0 9px $c-hydrogen,
|
||||||
|
0 0 15px $c-neutrino,
|
||||||
|
0 0 20px $c-yeti;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Sidebar Sub Menus
|
Sidebar Sub Menus
|
||||||
|
|
Loading…
Reference in New Issue