Added constant to sidebar width.
Signed-off-by: gabrielucido <gabrielucido@gmail.com>
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
import { RuleOptions } from './types';
|
||||
|
||||
const SIDEBAR_WIDTH = '224px';
|
||||
|
||||
export default ({ theme, sidebar }: RuleOptions) => `
|
||||
/*================== Layout ==================*/
|
||||
|
||||
@@ -169,7 +171,9 @@ export default ({ theme, sidebar }: RuleOptions) => `
|
||||
width: 12.1rem !important;
|
||||
z-index: 200;
|
||||
left: ${
|
||||
sidebar.isPinned ? 'calc(-12.1rem + 224px)' : 'calc(-12.1rem + 72px)'
|
||||
sidebar.isPinned
|
||||
? `calc(-12.1rem + ${SIDEBAR_WIDTH})`
|
||||
: 'calc(-12.1rem + 72px)'
|
||||
} !important;
|
||||
}
|
||||
.md-sidebar--secondary:not([hidden]) {
|
||||
|
||||
Reference in New Issue
Block a user