UNPKG

2.28 kBTypeScriptView Raw
1import styled from 'styled-components';
2
3import Colors from '../Colors';
4import TextHelper from '../TextHelper';
5import Sizes from '../Sizes';
6
7export const WrapperTable = styled.table`
8 width: 100%;
9 text-align: center;
10 border-collapse: collapse;
11
12 @media screen and (min-width: 768px) {
13 width: 376px;
14 margin: 25px auto 0;
15 }
16`;
17
18export const DaysRow = styled.tr`
19 color: ${Colors.support};
20 font-size: ${TextHelper.pxToEm(Sizes.s3)}em;
21`;
22
23export const DaysColumn = styled.td<{ active: boolean }>`
24
25 button {
26 background-color: transparent;
27 border: 0;
28 border-radius: 50%;
29 width: 41px;
30 height: 41px;
31 margin: 5px auto;
32 display: flex;
33 align-items: center;
34 justify-content: center;
35 cursor: pointer;
36 transition: .5s all ease;
37 font-size: ${TextHelper.pxToEm(Sizes.s3)}em;
38 font-family: ${TextHelper.fontVariant('regular')};
39 }
40
41 ${({ active }) => active && `
42 button {
43 background-color: ${Colors.mongeral};
44 color: white;
45 }
46 `};
47`;
48
49export const SelectYear = styled.select`
50 appearance: none;
51 border: 0 none;
52 background-color: transparent;
53 font-size: 16px;
54 font-family: ${TextHelper.fontVariant('medium')};
55 text-transform: uppercase;
56 width: 100%;
57 max-width: 90%;
58`;
59
60export const SelectYearWrapper = styled.div`
61 text-align: center;
62 display: inline-flex;
63 align-items: center;
64 justify-content: center;
65 margin: 25px 0 25px 15px;
66
67 @media screen and (min-width: 768px) {
68 margin: 41px 0 10px 67px;
69 }
70
71 &:last-of-type {
72 margin-left: 20px
73 }
74
75 label {
76 display: inherit;
77 }
78
79 svg {
80 margin-left: 5px;
81 }
82`;
83
84export const InputWrapper = styled.div`
85 position: relative;
86
87 button {
88 appearance: none;
89 background-color: transparent;
90 border: 0 none;
91 padding: 0;
92 position: absolute;
93 top: -3px;
94 right: 0;
95 }
96`;
97
98export const ModalStyles = styled.div`
99
100 div[type="default"] { padding: 0 0 20px }
101
102 .close { right: 20px; background-color: transparent; top: 16px; position: absolute }
103
104 @media screen and (min-width: 768px) {
105 div[type="default"] {
106 padding: 0;
107 max-height: 494px;
108 margin-top: 109px;
109 };
110
111
112 & .footer-modal {
113 position: absolute;
114 bottom: 20px;
115 right: 20px;
116 }
117 }
118`;