Media breakpoints for nav (#3459)

This commit is contained in:
Jaco Greeff 2020-08-21 07:49:04 +02:00 committed by GitHub
parent 0b8a9cf236
commit 2ee50d1b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 22 deletions

View File

@ -32,7 +32,7 @@ function ChainInfo ({ className }: Props): React.ReactElement<Props> {
onClick={toggleEndpoints}
>
<ChainImg />
<div className='info'>
<div className='info ui--media-1000'>
<Chain className='chain' />
{runtimeVersion && (
<div className='runtimeVersion'>{t<string>('version {{version}}', { replace: { version: runtimeVersion.specVersion.toNumber() } })}</div>

View File

@ -48,7 +48,7 @@ export default React.memo(styled(Grouping)`
.groupHdr {
border-radius: 0.25rem 0.25rem 0 0;
padding: 1rem 1.5rem;
padding: 1rem 1.25rem 1rem 1.5rem;
> .ui--Icon {
margin-left: 0.75rem;

View File

@ -143,7 +143,7 @@ function Menu ({ className = '' }: Props): React.ReactElement<Props> {
))}
</ul>
</div>
<div className='menuSection'>
<div className='menuSection ui--media-1200'>
<ul className='menuItems'>
{externalRef.current.map((route): React.ReactNode => (
<Item
@ -192,7 +192,7 @@ export default React.memo(styled(Menu)`
background: #fefcfa;
border-radius: 0.25rem 0.25rem 0 0;
padding: 1rem 1.5rem;
margin: 0 1.5rem;
margin: 0 1rem;
&.isLoading {
background: #f5f3f1;
@ -207,7 +207,7 @@ export default React.memo(styled(Menu)`
color: #f5f4f3;
flex: 1 1;
list-style: none;
margin: 0 2rem 0 0;
margin: 0 1rem 0 0;
padding: 0;
> li {

View File

@ -32,103 +32,103 @@ export default css`
.ui--media-2000 {
@media only screen and (max-width: 1900px) {
display: none;
display: none !important;
}
}
.ui--media-1900 {
@media only screen and (max-width: 1900px) {
display: none;
display: none !important;
}
}
.ui--media-1800 {
@media only screen and (max-width: 1800px) {
display: none;
display: none !important;
}
}
.ui--media-1700 {
@media only screen and (max-width: 1700px) {
display: none;
display: none !important;
}
}
.ui--media-1600 {
@media only screen and (max-width: 1600px) {
display: none;
display: none !important;
}
}
.ui--media-1500 {
@media only screen and (max-width: 1500px) {
display: none;
display: none !important;
}
}
.ui--media-1400 {
@media only screen and (max-width: 1400px) {
display: none;
display: none !important;
}
}
.ui--media-1300 {
@media only screen and (max-width: 1300px) {
display: none;
display: none !important;
}
}
.ui--media-1200 {
@media only screen and (max-width: 1200px) {
display: none;
display: none !important;
}
}
.ui--media-1100 {
@media only screen and (max-width: 1100px) {
display: none;
display: none !important;
}
}
.ui--media-1000 {
@media only screen and (max-width: 1000px) {
display: none;
display: none !important;
}
}
.ui--media-900 {
@media only screen and (max-width: 900px) {
display: none;
display: none !important;
}
}
.ui--media-800 {
@media only screen and (max-width: 800px) {
display: none;
display: none !important;
}
}
.ui--media-700 {
@media only screen and (max-width: 700px) {
display: none;
display: none !important;
}
}
.ui--media-600 {
@media only screen and (max-width: 600px) {
display: none;
display: none !important;
}
}
.ui--media-500 {
@media only screen and (max-width: 500px) {
display: none;
display: none !important;
}
}
.ui--media-400 {
@media only screen and (max-width: 400px) {
display: none;
display: none !important;
}
}