mirror of
https://github.com/roleypoly/roleypoly-v1.git
synced 2025-04-25 12:19:10 +00:00
[ui] add a few media query template misses
This commit is contained in:
parent
f2bb6a7b18
commit
544ae65c58
2 changed files with 7 additions and 9 deletions
|
@ -17,7 +17,7 @@ export const breakpoints = {
|
|||
xl: 1280
|
||||
}
|
||||
|
||||
const mediaTemplateLiteral = (size: number, ...stuff: any): string =>
|
||||
const mediaTemplateLiteral = (size: number, ...stuff: mixed[]): string =>
|
||||
`@media screen and (min-width: ${size}px) {\n${stuff.join()}\n};`
|
||||
|
||||
export const xs = mediaTemplateLiteral.bind(null, breakpoints.xs)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// @flow
|
||||
import * as React from 'react'
|
||||
import styled from 'styled-components'
|
||||
import MediaQuery from '../../kit/media'
|
||||
import { md } from '../../kit/media'
|
||||
import DiscordButton from '../../components/discord-button'
|
||||
import RPC from '../../config/rpc'
|
||||
import redirect from '../../lib/redirect'
|
||||
|
@ -29,13 +29,11 @@ const Wrapper = styled.div`
|
|||
max-width: calc(98vw - 10px);
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
${() => MediaQuery({
|
||||
md: `
|
||||
padding-top: 0;
|
||||
align-items: center;
|
||||
min-height: 80vh;
|
||||
`
|
||||
})}
|
||||
${md`
|
||||
padding-top: 0;
|
||||
align-items: center;
|
||||
min-height: 80vh;
|
||||
`}
|
||||
`
|
||||
|
||||
const Line = styled.div`
|
||||
|
|
Loading…
Add table
Reference in a new issue