Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit f71b417

Browse files
committed
refactor(sidebar): add theme color to dropShadow
1 parent 9a30852 commit f71b417

File tree

9 files changed

+18
-2
lines changed

9 files changed

+18
-2
lines changed

src/containers/Sidebar/styles/menu_bar.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export const MenuItemBar = styled.div`
4141
color: ${theme('sidebar.menuLink')};
4242
4343
box-shadow: ${({ dropShadow }) =>
44-
dropShadow ? '0px 6px 4px 0px rgba(0,0,0,0.2)' : 'none'};
44+
dropShadow ? theme('sidebar.topShadow') : 'none'};
4545
border-bottom: ${({ dropShadow }) =>
46-
dropShadow ? '1px dashed #316d7b' : ''};
46+
dropShadow ? theme('sidebar.topShadowBorderBottom') : ''};
4747
`
4848
export const MenuRow = styled.div`
4949
${cs.flex()};

utils/themes/skins/cyan.js

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ const cyan = {
109109
pinActive: primaryColor,
110110
menuLink: '#D9E6E5',
111111
borderColor: '#14363E',
112+
topShadow: '0px 6px 4px 0px rgba(0,0,0,0.2)',
113+
topShadowBorderBottom: '1px dashed #316d7b',
112114
},
113115
preview: {
114116
title: '#83a2a5',

utils/themes/skins/github.js

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ const github = {
110110
pinActive: primaryColor,
111111
menuLink: '#D9E6E5',
112112
borderColor: '#14363E',
113+
topShadow: '0px 6px 4px 0px rgba(0,0,0,0.2)',
114+
topShadowBorderBottom: '1px dashed #3d5a51',
113115
},
114116
preview: {
115117
title: threadTitle,

utils/themes/skins/green.js

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ const green = {
111111
pinActive: contentBg,
112112
menuLink: '#A6BBAF',
113113
borderColor: lighten(0.05, sidebarBg),
114+
topShadow: '-2px 2px 2px 0px rgb(39, 53, 45)',
115+
topShadowBorderBottom: '1px solid #576957',
114116
},
115117
preview: {
116118
title: bannerTitle,

utils/themes/skins/iron_green.js

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ const iconGreen = {
109109
pinActive: '#54848B',
110110
menuLink: '#F0F9F8',
111111
borderColor: '#14363E',
112+
topShadow: '-1px 6px 2px 0px rgb(9, 171, 165)',
113+
topShadowBorderBottom: '1px solid #668d90',
112114
},
113115
preview: {
114116
title: '#C2CDD0',

utils/themes/skins/monokai.js

+2
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ const monokai = {
112112
pinActive: '#849804',
113113
menuLink: '#93A1A1',
114114
borderColor: lighten(0.05, sidebarBg),
115+
topShadow: '-2px 1px 6px 0px rgb(1,21,25)',
116+
topShadowBorderBottom: '1px solid #6b5f34',
115117
},
116118
preview: {
117119
title: primaryColor,

utils/themes/skins/purple.js

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ const purple = {
110110
pinActive: '#849804',
111111
menuLink: '#93A1A1',
112112
borderColor: lighten(0.05, sidebarBg),
113+
topShadow: '-2px 1px 6px 0px rgb(1,21,25)',
114+
topShadowBorderBottom: '1px solid #615b79',
113115
},
114116
preview: {
115117
title: primaryColor,

utils/themes/skins/solarized_dark.js

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ const solarizedDark = {
111111
pinActive: '#849804',
112112
menuLink: '#93A1A1',
113113
borderColor: '#14363E',
114+
topShadow: '-2px 1px 6px 0px rgb(1,21,25)',
115+
topShadowBorderBottom: '1px solid #06495a',
114116
},
115117
preview: {
116118
title: primaryColor,

utils/themes/skins/yellow.js

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ const yellow = {
110110
pinActive: '#6AB3B1',
111111
menuLink: '#b6cecd',
112112
borderColor: lighten(0.05, sidebarBg),
113+
topShadow: '0px 6px 4px 0px rgba(0,0,0,0.2)',
114+
topShadowBorderBottom: '1px dashed #88755b',
113115
},
114116
preview: {
115117
title: primaryColor,

0 commit comments

Comments
 (0)