From f278a46e3efeecebaaa15cc635c7252f03d103b0 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 23 Sep 2019 14:28:46 +0200 Subject: [PATCH] Move SideBar css out of theme (#1646) --- packages/apps/src/SideBar/SideBar.css | 6 +++--- packages/react-components/src/styles/theme.ts | 12 ------------ 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/packages/apps/src/SideBar/SideBar.css b/packages/apps/src/SideBar/SideBar.css index b487963963..c4e4b400cc 100644 --- a/packages/apps/src/SideBar/SideBar.css +++ b/packages/apps/src/SideBar/SideBar.css @@ -217,7 +217,6 @@ a.apps--SideBar-Item-NavLink { color: #eee; display: block; padding: 0.75em 0.75em; - transition: background 0.15s; white-space: nowrap; &:hover { @@ -230,9 +229,10 @@ a.apps--SideBar-Item-NavLink { a.apps--SideBar-Item-NavLink-active { background: #fafafa; border-radius: 0.28571429rem 0 0 0.28571429rem; - color: inherit; + color: #3f3f3f; &:hover { - color: inherit; + background: #fafafa; + color: #3f3f3f; } } diff --git a/packages/react-components/src/styles/theme.ts b/packages/react-components/src/styles/theme.ts index efc9b69255..0a03b63747 100644 --- a/packages/react-components/src/styles/theme.ts +++ b/packages/react-components/src/styles/theme.ts @@ -4,9 +4,6 @@ import { css } from 'styled-components'; -/* background color of the main Content container */ -const colorContentBg = '#fafafa'; - /* default buttons, dark gray */ const colorBtnDefault = '#666'; @@ -106,14 +103,5 @@ export default css` .ui.toggle.checkbox input:checked~label:before { background-color: ${colorBtnHighlight} !important; } - - a.apps--SideBar-Item-NavLink { - color: ${colorBtnText}; - } - a.apps--SideBar-Item-NavLink-active, - a.apps--SideBar-Item-NavLink-active:hover { - color: ${colorBtnPrimary}; - background: ${colorContentBg}; - } } `;