Updating link color opacity in LHS

Этот коммит содержится в:
Asaad Mahmood
2015-10-06 22:25:22 +05:00
родитель cdb09be6d0
Коммит a0a32bb608
2 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@@ -122,10 +122,10 @@ module.exports = {
default: { default: {
type: 'Mattermost', type: 'Mattermost',
sidebarBg: '#fafafa', sidebarBg: '#fafafa',
sidebarText: '#999999', sidebarText: '#333333',
sidebarUnreadText: '#333333', sidebarUnreadText: '#333333',
sidebarTextHoverBg: '#e6f2fa', sidebarTextHoverBg: '#e6f2fa',
sidebarTextHoverColor: '#999999', sidebarTextHoverColor: '#333333',
sidebarTextActiveBg: '#e1e1e1', sidebarTextActiveBg: '#e1e1e1',
sidebarTextActiveColor: '#111111', sidebarTextActiveColor: '#111111',
sidebarHeaderBg: '#2389d7', sidebarHeaderBg: '#2389d7',
@@ -144,10 +144,10 @@ module.exports = {
organization: { organization: {
type: 'Organization', type: 'Organization',
sidebarBg: '#2071a7', sidebarBg: '#2071a7',
sidebarText: '#bfcde8', sidebarText: '#fff',
sidebarUnreadText: '#fff', sidebarUnreadText: '#fff',
sidebarTextHoverBg: '#136197', sidebarTextHoverBg: '#136197',
sidebarTextHoverColor: '#bfcde8', sidebarTextHoverColor: '#fff',
sidebarTextActiveBg: '#136197', sidebarTextActiveBg: '#136197',
sidebarTextActiveColor: '#FFFFFF', sidebarTextActiveColor: '#FFFFFF',
sidebarHeaderBg: '#2f81b7', sidebarHeaderBg: '#2f81b7',
@@ -166,10 +166,10 @@ module.exports = {
mattermostDark: { mattermostDark: {
type: 'Mattermost Dark', type: 'Mattermost Dark',
sidebarBg: '#1B2C3E', sidebarBg: '#1B2C3E',
sidebarText: '#bbbbbb', sidebarText: '#fff',
sidebarUnreadText: '#fff', sidebarUnreadText: '#fff',
sidebarTextHoverBg: '#4A5664', sidebarTextHoverBg: '#4A5664',
sidebarTextHoverColor: '#bbbbbb', sidebarTextHoverColor: '#fff',
sidebarTextActiveBg: '#39769C', sidebarTextActiveBg: '#39769C',
sidebarTextActiveColor: '#FFFFFF', sidebarTextActiveColor: '#FFFFFF',
sidebarHeaderBg: '#1B2C3E', sidebarHeaderBg: '#1B2C3E',
@@ -188,10 +188,10 @@ module.exports = {
windows10: { windows10: {
type: 'Windows Dark', type: 'Windows Dark',
sidebarBg: '#171717', sidebarBg: '#171717',
sidebarText: '#999', sidebarText: '#fff',
sidebarUnreadText: '#fff', sidebarUnreadText: '#fff',
sidebarTextHoverBg: '#302e30', sidebarTextHoverBg: '#302e30',
sidebarTextHoverColor: '#999', sidebarTextHoverColor: '#fff',
sidebarTextActiveBg: '#484748', sidebarTextActiveBg: '#484748',
sidebarTextActiveColor: '#FFFFFF', sidebarTextActiveColor: '#FFFFFF',
sidebarHeaderBg: '#1f1f1f', sidebarHeaderBg: '#1f1f1f',

Просмотреть файл

@@ -399,9 +399,9 @@ export function applyTheme(theme) {
} }
if (theme.sidebarText) { if (theme.sidebarText) {
changeCss('.sidebar--left .nav-pills__container li>a, .sidebar--right, .settings-modal .nav-pills>li a, .sidebar--menu', 'color:' + theme.sidebarText, 1); changeCss('.sidebar--left .nav-pills__container li>a, .sidebar--right, .settings-modal .nav-pills>li a, .sidebar--menu', 'color:' + changeOpacity(theme.sidebarText, 0.7), 1);
changeCss('@media(max-width: 768px){.settings-modal .settings-table .nav>li>a', 'color:' + theme.sidebarText, 1); changeCss('@media(max-width: 768px){.settings-modal .settings-table .nav>li>a', 'color:' + theme.sidebarText, 1);
changeCss('.sidebar--left .nav-pills__container li>h4, .sidebar--left .add-channel-btn', 'color:' + changeOpacity(theme.sidebarText, 0.8), 1); changeCss('.sidebar--left .nav-pills__container li>h4, .sidebar--left .add-channel-btn', 'color:' + changeOpacity(theme.sidebarText, 0.7), 1);
changeCss('.sidebar--left .add-channel-btn:hover, .sidebar--left .add-channel-btn:focus', 'color:' + theme.sidebarText, 1); changeCss('.sidebar--left .add-channel-btn:hover, .sidebar--left .add-channel-btn:focus', 'color:' + theme.sidebarText, 1);
changeCss('.sidebar--left, .sidebar--right .sidebar--right__header', 'border-color:' + changeOpacity(theme.sidebarText, 0.2), 1); changeCss('.sidebar--left, .sidebar--right .sidebar--right__header', 'border-color:' + changeOpacity(theme.sidebarText, 0.2), 1);
changeCss('.sidebar--left .status path', 'fill:' + changeOpacity(theme.sidebarText, 0.5), 1); changeCss('.sidebar--left .status path', 'fill:' + changeOpacity(theme.sidebarText, 0.5), 1);
@@ -418,7 +418,7 @@ export function applyTheme(theme) {
} }
if (theme.sidebarTextHoverColor) { if (theme.sidebarTextHoverColor) {
changeCss('.sidebar--left .nav-pills__container li>a:hover, .sidebar--left .nav-pills__container li>a:focus, .settings-modal .nav-pills>li:hover a, .settings-modal .nav-pills>li:focus a', 'color:' + theme.sidebarTextHoverColor, 2); changeCss('.sidebar--left .nav-pills__container li>a:hover, .sidebar--left .nav-pills__container li>a:focus, .settings-modal .nav-pills>li:hover a, .settings-modal .nav-pills>li:focus a', 'color:' + changeOpacity(theme.sidebarTextHoverColor, 0.7), 2);
changeCss('@media(max-width: 768px){.settings-modal .settings-table .nav>li:hover a', 'color:' + theme.sidebarTextHoverColor, 2); changeCss('@media(max-width: 768px){.settings-modal .settings-table .nav>li:hover a', 'color:' + theme.sidebarTextHoverColor, 2);
} }