AllenYuan

home - globalstyle start

Apr 27th, 2020
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { createGlobalStyle } from 'styled-components';
  2. import constants from '../constants';
  3.  
  4. const GlobalStyle = createGlobalStyle([`
  5. body {
  6.   background-color: initial;
  7.   text-align: initial;
  8.   display: initial;
  9.   justify-content: initial;
  10.   align-items: initial;
  11.   height: initial;
  12.   width: initial;
  13.   margin: 0;
  14.   font-family: ${constants.fontFamily};
  15. }
  16.  
  17. a {
  18.   color: ${constants.primaryLinkColor};
  19.   text-decoration: none;
  20.   transition: ${constants.normalTransition};
  21.  
  22.   &:hover {
  23.     color: color(${constants.primaryLinkColor} lightness(-33%));
  24.   }
  25. }
  26.  
  27. li {
  28.   list-style-type: none;
  29. }
  30.  
  31. #root {
  32.   background-color: #192023;
  33.   background-image: -webkit-linear-gradient(to right, #1a2b3e, #141E30);
  34.   background-image: linear-gradient(to right, #1a2b3e, #141E30);
  35.   color: ${constants.primaryTextColor};
  36.   height: 100%;
  37.   in-height: 100vh;
  38.   overflow-x: hidden;
  39.   padding-top: 56px;
  40. }
  41. `]);
  42.  
  43. export default GlobalStyle;
Advertisement
Add Comment
Please, Sign In to add comment