-
Notifications
You must be signed in to change notification settings - Fork 13
/
style.css
126 lines (109 loc) · 1.9 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
114
115
116
117
118
119
120
121
122
123
124
125
126
@import url("https://fonts.googleapis.com/css2?family=Belanosima&display=swap");
:root {
--primary-color: #e3f9ff;
--secondary-color: rgb(35, 67, 88);
}
.dark-theme {
--primary-color: #212121;
--secondary-color: #141013;
}
body {
height: 100%;
font-family: "Belanosima", sans-serif;
background-color: var(--primary-color);
}
#icon {
margin-left: 30px;
margin-top: 10px;
width: 30px;
height: 30px;
cursor: pointer;
}
.historyHeadline {
text-align: center;
}
.clearHistory {
cursor: pointer;
}
.button {
width: 50px;
height: 50px;
border: none;
outline: none;
padding: 10px;
border-radius: 0.5rem;
margin: 0.3rem;
box-shadow: 2px 5px 20px #000;
background: transparent;
font-size: 20px;
color: #fff;
cursor: pointer;
}
.button.arithmetic {
background: #83b4b1;
font-size: 17px;
}
/* Responsive styles for smaller screens */
@media screen and (max-width: 768px) {
.cal-outer-body {
width: 350px;
}
}
.input {
height: 100%;
width: 100%;
}
.button:active {
background-color: black;
color: #81eded;
}
.button:hover {
/* added a button hover effect */
background-color: #000000;
opacity: 0.7;
}
.row {
margin: 8px 0;
}
.row input {
width: 225px;
font-size: 20px;
margin: 0;
padding: 10px 38px;
border: none;
border-radius: 5px;
}
.cal-outer-body {
display: block;
margin: 0 auto;
width: 400px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
background: var(--secondary-color);
border-radius: 10px;
color: #fff;
}
.cal-inner-body {
padding: 10px;
}
.shake {
animation: shake 0.5s ease-in-out;
}
@keyframes shake {
0%,
100% {
transform: translateX(0);
}
10%,
30%,
50%,
70%,
90% {
transform: translateX(-10px);
}
20%,
40%,
60%,
80% {
transform: translateX(10px);
}
}