* Media adjustments with AddressSmall * Update packages/page-staking/src/Targets/Validator.tsx
197 lines
3.4 KiB
TypeScript
197 lines
3.4 KiB
TypeScript
// Copyright 2017-2020 @polkadot/react-components authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the Apache-2.0 license. See the LICENSE file for details.
|
|
|
|
import { css } from 'styled-components';
|
|
|
|
export default css`
|
|
/* 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;
|
|
}
|
|
|
|
.ui--media-2000 {
|
|
@media only screen and (max-width: 1900px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1900 {
|
|
@media only screen and (max-width: 1900px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1800 {
|
|
@media only screen and (max-width: 1800px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1700 {
|
|
@media only screen and (max-width: 1700px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1600 {
|
|
@media only screen and (max-width: 1600px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1500 {
|
|
@media only screen and (max-width: 1500px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1400 {
|
|
@media only screen and (max-width: 1400px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1300 {
|
|
@media only screen and (max-width: 1300px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1200 {
|
|
@media only screen and (max-width: 1200px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1100 {
|
|
@media only screen and (max-width: 1100px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-1000 {
|
|
@media only screen and (max-width: 1000px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-900 {
|
|
@media only screen and (max-width: 900px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-800 {
|
|
@media only screen and (max-width: 800px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-700 {
|
|
@media only screen and (max-width: 700px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-600 {
|
|
@media only screen and (max-width: 600px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-500 {
|
|
@media only screen and (max-width: 500px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.ui--media-400 {
|
|
@media only screen and (max-width: 400px) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1281px) {
|
|
.ui--flex-large {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.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;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.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;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ui--media-small {
|
|
height: auto;
|
|
visibility: visible;
|
|
width: auto;
|
|
|
|
}
|
|
|
|
td.ui--media-small,
|
|
th.ui--media-small {
|
|
display: table-cell;
|
|
}
|
|
}
|
|
|
|
/* tabs */
|
|
@media (max-width: 991px) {
|
|
.ui.menu.tabular {
|
|
padding-left: 5.2rem !important;
|
|
}
|
|
}
|
|
`;
|