sidebar <=> SrcreenSizes (#919)
This commit is contained in:
parent
630feed48b
commit
7b731211ac
@ -57,7 +57,7 @@ const Toggle = styled.img`
|
||||
top: 0.9rem;
|
||||
}
|
||||
|
||||
${media.TABLET`
|
||||
${media.DESKTOP`
|
||||
opacity: 0 !important;
|
||||
top: -2.9rem !important;
|
||||
`}
|
||||
|
||||
@ -2,6 +2,8 @@
|
||||
// This software may be modified and distributed under the terms
|
||||
// of the Apache-2.0 license. See the LICENSE file for details.
|
||||
|
||||
import { ScreenSizes } from '@polkadot/ui-app/constants';
|
||||
|
||||
export enum SideBarTransition {
|
||||
COLLAPSED = 'COLLAPSED',
|
||||
EXPANDED = 'EXPANDED',
|
||||
@ -9,5 +11,5 @@ export enum SideBarTransition {
|
||||
MINIMISED_AND_EXPANDED = 'MINIMISED_AND_EXPANDED'
|
||||
}
|
||||
|
||||
export const SIDEBAR_MENU_THRESHOLD = 768;
|
||||
export const SIDEBAR_MENU_THRESHOLD = ScreenSizes.DESKTOP;
|
||||
export const SIDEBAR_TRANSITION_DURATION = 300;
|
||||
|
||||
@ -80,7 +80,7 @@ th.ui--media-small {
|
||||
}
|
||||
|
||||
/* tabs */
|
||||
@media (max-width: 767px) {
|
||||
@media (max-width: 991px) {
|
||||
.ui.menu.tabular {
|
||||
padding-left: 5.2rem !important;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user