Advertisement
Eulis

Login style js

Jan 21st, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.35 KB | None | 0 0
  1. import styled from 'styled-components';
  2. import { Form, Input } from '@rocketseat/unform';
  3. import theme_primary from '~/styles/themes/theme_primary';
  4.  
  5. export const Wrap = styled.div`
  6. position: absolute;
  7. right: 19%;
  8. z-index: 4;
  9. `;
  10.  
  11. export const Container = styled.div`
  12. display: none;
  13. flex-direction: column;
  14. background-color: ${theme_primary.light};
  15. width: 380px;
  16. /* height: 414.97px; */
  17. position: relative;
  18. border: 1px solid ${theme_primary.light_gray};
  19. border-radius: 10px;
  20. margin-top: 11px;
  21. box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  22. `;
  23. export const Triangle = styled.div`
  24. display: block;
  25. height: 24px;
  26. width: 24px;
  27. background-color: inherit;
  28. border: inherit;
  29. position: absolute;
  30. top: -12px;
  31. left: calc(90% - 10px);
  32. clip-path: polygon(0% 0%, 100% 100%, 0% 100%);
  33. transform: rotate(135deg);
  34. border-radius: 0 0 0 0.25em;
  35. `;
  36. export const InputBox = styled.div`
  37. display: flex;
  38. flex-direction: column;
  39. padding: 30px 39px 21px 40px;
  40. `;
  41. export const FormCustom = styled(Form)`
  42. span {
  43. font-size: 15px;
  44. font-family: 'Lato', sans-serif;
  45. color: red;
  46. display: flex;
  47. flex-wrap: wrap;
  48. margin-top: 20px;
  49. max-width: 301px;
  50. }
  51. `;
  52. export const Label = styled.label`
  53. display: flex;
  54. flex-direction: column;
  55. font: 20px 'Lato', sans-serif;
  56. font-weight: 700;
  57. margin-bottom: ${props => (props.position === 'top' ? '16px' : '10px')};
  58. `;
  59.  
  60. export const InputLogin = styled(Input)`
  61. padding: 10px;
  62. width: 301px;
  63. height: 40px;
  64. border: 1px solid ${theme_primary.dark_content_1};
  65. border-radius: 6px;
  66. font-family: 'Lato', sans-serif;
  67. font-size: 18px;
  68. margin-top: 8px;
  69. `;
  70. export const ButtonsLoginContainer = styled.div`
  71. display: flex;
  72. justify-content: space-between;
  73. width: 301px;
  74. button {
  75. -webkit-appearance: none;
  76. background-color: transparent;
  77. border: none;
  78. font-family: 'Lato', sans-serif;
  79. font-size: 20px;
  80. font-weight: 500;
  81. font-style: medium;
  82. }
  83. `;
  84.  
  85. export const SubmitButtonLogin = styled.button`
  86. display: flex;
  87. align-items: center;
  88. -webkit-appearance: none;
  89. background-color: ${theme_primary.vine};
  90. color: ${theme_primary.light};
  91. border-radius: 10px;
  92. width: 300px;
  93. height: 49px;
  94. margin: 20px 0 16px;
  95. font-weight: 700;
  96. justify-content: center;
  97. font: 21px 'Lato', sans-serif;
  98. `;
  99.  
  100. export const Division = styled.div`
  101. display: flex;
  102. align-items: center;
  103. margin-bottom: 27px;
  104. width: 301px;
  105. p {
  106. color: ${theme_primary.dark_content_1};
  107. font: 15px 'Lato', sans-serif;
  108. margin: 0 12px;
  109. }
  110. span {
  111. /* display: flex; */
  112. background-color: ${theme_primary.dark_content_1};
  113. height: 1px;
  114. opacity: 0.3;
  115. width: 129px;
  116. margin: 0;
  117. }
  118. `;
  119.  
  120. export const SocialContainer = styled.div`
  121. display: flex;
  122. justify-content: center;
  123. align-items: center;
  124. button {
  125. -webkit-appearance: none;
  126. background-color: transparent;
  127. width: 56px;
  128. height: 32px;
  129. border-radius: 6px;
  130. border: 1px solid ${theme_primary.dark_content_3};
  131. display: flex;
  132. justify-content: center;
  133. align-items: center;
  134. margin-left: ${props => (props.position === 'left' ? '15px' : '0px')};
  135. margin-right: ${props => (props.position === 'left' ? '0px' : '15px')};
  136. }
  137. img {
  138. width: 24px;
  139. height: 24px;
  140. }
  141. `;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement