-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
107 lines (91 loc) · 1.7 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
* {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
.container {
width: 100%;
min-height: 100vh;
background: linear-gradient(135deg, #4203a9, #90bafc);
color: #ffff76;
padding: 10px;
}
.calculator {
width: 100%;
max-width: 600px;
margin: 10% auto;
}
.calculator h1 {
font-size: 60px;
}
.input-box {
background: rgba(255, 255, 255, 0.3);
border-radius: 10px;
margin: 40px 0;
padding: 35px;
display: flex;
align-items: center;
}
.input-box input {
flex: 1;
margin-right: 20px;
padding: 14px 20px;
border: 0;
outline: 0;
font-size: 18px;
border-radius: 5px;
position: relative;
}
.input-box button {
background: #ffff76;
border: 0;
outline: 0;
padding: 15px 30px;
border-radius: 5px;
font-weight: bold;
color: #333;
cursor: pointer;
transition: background-color 0.3s;
}
.input-box button:hover {
background-color: #ffd700;
}
.input-box input::-webkit-calendar-picker-indicator {
top: 0;
left: 0;
right: 0;
bottom: 0;
width: auto;
height: auto;
position: absolute;
background-position: calc(100% - 10px);
background-size: 30px;
cursor: pointer;
}
#result {
font: 20px;
}
#result span {
color: #ffff76;
}
/* Media Queries */
@media only screen and (max-width: 600px) {
.calculator {
margin: 20% auto;
}
.calculator h1 {
font-size: 40px;
}
.input-box {
flex-direction: column;
align-items: flex-start;
padding: 20px;
}
.input-box input {
margin-bottom: 20px;
}
.input-box button {
width: 100%;
}
}