ghost-portal/packages/ui-app/src/styles/media.css
Ross Bulat d7f73b1baf Mobile friendly sidebar, auto hide and show on resize (#818)
* mobile friendly sidebar;

* substrate logo support

* >=

* logo size + node info padding

* polkadot toggle no padding

* padding

* remove padding trans

* tooltip overflow fix

* z-index fix

* simple var names

* remove unneeded state

* menu toggle animation

* menu toggle behaviour

* <Responsive /> + menu toggle

* yarn lock

* <Responsive /> flexbox fix

* scroll-y fix

* stefies-sassy-sidebar-suggestions-submission

* remove lodash

* enums

* apps/constants

* copyright

* literally  literals
2019-03-20 15:34:48 +01:00

96 lines
1.6 KiB
CSS

/* Copyright 2017-2019 @polkadot/ui-app authors & contributors
/* This software may be modified and distributed under the terms
/* of the Apache-2.0 license. See the LICENSE file for details. */
/* block by default, flex as per media queries below */
.ui--flex-large,
.ui--flex-medium,
.ui--flex-small {
display: block;
}
/* hide all by default, add as per media queries below */
.ui--media-large,
.ui--media-medium,
.ui--media-small {
height: 0;
visibility: hidden;
width: 0;
}
td.ui--media-large,
td.ui--media-medium,
td.ui--media-small,
th.ui--media-large,
th.ui--media-medium,
th.ui--media-small {
display: none;
}
@media (min-width: 1281px) {
.ui--flex-large {
display: flex;
}
.ui--media-large {
height: auto;
visibility: visible;
width: auto;
}
td.ui--media-large,
th.ui--media-large {
display: table-cell;
}
}
@media (min-width: 1025px) {
.ui--flex-medium {
display: flex;
}
.ui--media-medium {
height: auto;
visibility: visible;
width: auto;
}
td.ui--media-medium,
th.ui--media-medium {
display: table-cell;
}
}
@media (min-width: 768px) {
.ui--flex-small {
display: flex;
}
.ui--media-small {
height: auto;
visibility: visible;
width: auto;
}
td.ui--media-small,
th.ui--media-small {
display: table-cell;
}
}
/* tabs */
@media (max-width: 767px) {
.ui.menu.tabular {
padding-left: 4.2rem !important;
}
}
/* sidebar */
@media (min-width: 768px) {
.apps-SideBar-Wrapper {
> img {
opacity: 0 !important;
top: -2.9rem !important;
}
}
}