Advertisement
Guest User

src/styles/global.js

a guest
Jul 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. import { createGlobalStyle } from "styled-components"
  2. import { modernNormalize } from "styled-modern-normalize"
  3.  
  4. import { theme } from "src/styles/theme"
  5.  
  6. export const GlobalStyle = createGlobalStyle`
  7. ${modernNormalize}
  8.  
  9. html {
  10. font-size: 16px;
  11. }
  12.  
  13. body {
  14. font-family: ${theme.fonts.sans};
  15. font-style: normal;
  16. font-weight: normal;
  17. color: ${theme.colors.black};
  18. -webkit-font-smoothing: antialiased;
  19. -moz-osx-font-smoothing: grayscale;
  20. text-rendering: optimizeLegibility;
  21. }
  22.  
  23. a {
  24. text-decoration: none;
  25. }
  26.  
  27. button, a {
  28. &:hover {
  29. cursor: pointer;
  30. }
  31. }
  32.  
  33. blockquote {
  34. font-style: italic;
  35. position: relative;
  36. margin-left: 0;
  37. padding-left: 2rem;
  38.  
  39. &:before {
  40. position: absolute;
  41. content: "";
  42. top: 0;
  43. left: 0;
  44. height: 100%;
  45. width: 4px;
  46. border-radius: 2px;
  47. background-color: ${theme.colors.red};
  48. opacity: 0.5;
  49. }
  50. }
  51.  
  52. .modal-open {
  53. overflow: hidden;
  54. }
  55. /* Swiper styles */
  56. .swiper-custom {
  57. .swiper-pagination-bullets {
  58. bottom: 0 !important;
  59. width: auto !important;
  60. }
  61. .swiper-pagination-bullet {
  62. background: #e5e5e5;
  63. }
  64. .swiper-pagination-bullet-active {
  65. background: #fff;
  66. }
  67. }
  68. `
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement