-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
114 lines (99 loc) · 2.28 KB
/
style.css
File metadata and controls
114 lines (99 loc) · 2.28 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
letter-spacing: 1px;
}
body {
min-height: 100vh;
max-width: 100%;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(45deg, #0a0a0a, #3a4452);
transition: background 0.5s ease, color 0.5s ease;
}
.calculator {
padding: 15px;
box-shadow: 0 0 15px #000;
border: 2px solid rgb(116, 114, 114);
border-radius: 15px;
transition: all 0.5s ease;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
/**/
.calculator-box {
box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
animation: pulse 1s infinite;
}
@keyframes pulse {
0% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
50% { box-shadow: 0 0 40px rgba(255, 255, 255, 0.8); }
100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
}
/**/
.display input {
width: 360px;
border: none;
outline: none;
padding: 20px;
margin: 10px;
background: transparent;
color: #fff;
font-size: 40px;
text-align: right;
cursor: pointer;
transition: all 0.3s ease;
}
input::placeholder {
color: #fff;
}
.new-result {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
button {
width: 70px;
height: 70px;
margin: 10px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
font-size: 22px;
font-weight: 600;
border: none;
border-radius: 50%;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
outline: none;
cursor: pointer;
transition: all 0.2s ease;
}
button:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
}
button:active {
transform: scale(0.95);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}
.opr {
color: #fff;
background: #30c2cc;
font-weight: 700;
}
#eqBtn {
background: rgba(5, 88, 37, 0.8);
font-weight: 900;
}
.opr:hover {
background: #0c408d;
}
#eqBtn:hover {
background: rgba(9, 228, 118, 1);
}