AllenYuan

Untitled

May 26th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. import styled from 'styled-components';
  2. import constants from '../constants';
  3.  
  4. // style headcontainer
  5. export const HeadContainerDiv = styled.div`
  6. width: 600px;
  7. height: 300px;
  8. margin: 0 auto;
  9. text-align: center;
  10. padding-top: 120px;
  11.  
  12. @media only screen and (max-width: 768px) {
  13. width: auto;
  14. }
  15. `;
  16.  
  17. // style headline
  18. export const HeadlineDiv = styled.div`
  19. text-transform: uppercase;
  20. font-size: 90px;
  21. font-weight: ${constants.fontWeightMedium};
  22. line-height: 1.2;
  23. text-shadow: #000 0 0 3px;
  24.  
  25. // configure font size for small windows
  26. @media only screen and (max-width: 425px) {
  27. font-size: 60px;
  28. }
  29.  
  30. @media only screen and (max-width: 375px) {
  31. font-size: 42px;
  32. }
  33. `;
  34.  
  35. // style description
  36. export const DescriptionDiv = styled.div`
  37. font-size: ${constants.fontSizeMedium};
  38. opacity: 0.6;
  39. font-weight: ${constants.fontWeightLight};
  40. text-align: right;
  41. `;
  42.  
  43. // style footer
  44. export const BottomTextDiv = styled.div`
  45. font-size: ${constants.fontSizeMedium};
  46. opacity: 0.6;
  47. font-weight: ${constants.fontWeightLight};
  48. text-align: right;
  49. `;
  50.  
  51. // style home buttons
  52. export const ButtonsDiv = styled.div`
  53. margin-bottom: 30px;
  54. & .bottomButtons {
  55. display: flex;
  56. justify-content: space-around;
  57. flex-wrap: wrap;
  58. }
  59.  
  60. & a {
  61. background-color: ${constants.defaultPrimaryColor} !important;
  62. border: 2px solid ${constants.textColorPrimary} !important;
  63. padding: 3px 6px !important;
  64. height: auto !important;
  65. margin: 10px 5px !important;
  66.  
  67. @media only screen and (max-width: 375px) {
  68. line-height: 20px !important;
  69. }
  70.  
  71. &:hover {
  72. background-color: ${constants.colorSuccess} !important;
  73. }
  74.  
  75. & .label {
  76. font-weight: ${constants.fontWeightLight};
  77. font-size: ${constants.fontSizeCommon};
  78.  
  79. & b {
  80. font-size: 18px;
  81. font-weight: ${constants.fontWeightMedium};
  82. }
  83. }
  84. }
  85.  
  86. & span {
  87. text-transform: none !important;
  88. }
  89.  
  90. & svg {
  91. width: 20px;
  92. height: 20px;
  93. fill: ${constants.textColorPrimary};
  94. vertical-align: sub !important;
  95. }
  96. `;
Advertisement
Add Comment
Please, Sign In to add comment