Skip to content

Instantly share code, notes, and snippets.

@csorlandi
Created December 18, 2018 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csorlandi/70ef664f80da8e94e1f3441970560428 to your computer and use it in GitHub Desktop.
Save csorlandi/70ef664f80da8e94e1f3441970560428 to your computer and use it in GitHub Desktop.
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