-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
114 lines (95 loc) · 1.86 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: lightblue;
font-family: 'Roboto', sans-serif;
}
.container {
background-color: #fff;
border-radius: 20px 20px 100px 20px;
padding: 40px 60px 40px 40px;
}
.date-container {
display: flex;
gap: 50px;
border-bottom: 1px solid lightgray;
padding-bottom: 20px;
margin-bottom: 50px;
}
.date-container span,
.date-container input {
display: block;
color: gray;
}
input {
width: 150px;
padding: 10px;
font-size: 2rem;
border: none;
border: 1px solid lightgray;
border-radius: 5px;
outline: none;
}
input.error {
border: 1px solid red;
}
input:focus {
border: 1px solid rgb(134 76 255);
}
.date-container span {
margin-bottom: 5px;
font-size: 1.2rem;
text-transform: uppercase;
}
.date-container .errorInfo {
color: red;
font-size: 15px;
margin-top: 10px;
display: none;
}
input.error + .errorInfo {
display: block;
animation: shake 0.1s;
}
@keyframes shake {
0% {transform: translateX(0px);}
50% {transform: translateX(10px);}
70% {transform: translateX(-10px);}
100% {transform: translateX(0px);}
}
button {
border: none;
background: rgb(134 76 255);
width: 100px;
height: 100px;
border-radius: 50%;
cursor: pointer;
position: relative;
top: 70px;
transition: 0.2s ease;
}
button:hover {
background-color: #000;
}
.results {
display: flex;
align-items: center;
gap: 15px;
}
.results span,
.results p {
font-size: 5rem;
font-style: italic;
font-weight: 900;
}
.results span {
color: rgb(134 76 255);
}