Created
December 18, 2018 12:11
-
-
Save csorlandi/70ef664f80da8e94e1f3441970560428 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createGlobalStyle, css } from 'styled-components'; | |
import 'font-awesome/css/font-awesome.css'; | |
import './UI-v1/main.scss'; | |
import Auth from '../services/auth'; | |
const GlobalStyle = createGlobalStyle` | |
${Auth().guest | |
&& css` | |
body { | |
/* o-page */ | |
height: 100%; | |
display: flex; | |
justify-content: center; | |
align-items: center; | |
padding: 0; | |
} | |
@media screen and (max-width: 768px) { | |
#root { | |
margin: 0 !important; | |
padding: 0 !important; | |
width: 100% !important; | |
} | |
.o-page__card--horizontal { | |
margin: 0 !important; | |
padding: 0 !important; | |
width: 97%; | |
} | |
.login { | |
} | |
.login-logo { | |
display: none !important; | |
} | |
} | |
`}; | |
${Auth().authenticated | |
&& css` | |
footer { | |
width: 100%; | |
} | |
`}; | |
`; | |
export default GlobalStyle; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment