-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdark.css
More file actions
104 lines (89 loc) · 1.94 KB
/
dark.css
File metadata and controls
104 lines (89 loc) · 1.94 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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #37474f 0%, #263238 100%);
}
.calculator {
background: rgba(33, 33, 33, 0.6);
height: 75vh;
width: 90%;
max-width: 400px;
border-radius: 20px;
box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.4);
backdrop-filter: blur(15px);
display: flex;
flex-direction: column;
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
.display {
background: rgba(255, 255, 255, 0.05);
color: #ffffff;
font-size: 2.2rem;
border-radius: 10px;
padding: 15px;
margin-bottom: 20px;
text-align: right;
box-shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.2);
}
.key {
display: grid;
grid-template-rows: repeat(5, 1fr);
grid-template-columns: repeat(4, 1fr);
gap: 15px;
}
button {
background: rgba(255, 255, 255, 0.1);
color: #cfd8dc;
font-size: 1.3rem;
border: none;
border-radius: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.4);
transition: all 0.3s ease-in-out;
cursor: pointer;
backdrop-filter: blur(5px);
}
button:hover {
background: rgba(255, 255, 255, 0.2);
}
button:active {
background: rgba(255, 255, 255, 0.3);
}
.equal {
background: rgba(38, 198, 218, 0.4);
color: #ffffff;
grid-column: span 2;
font-size: 1.5rem;
}
button.special {
background: rgba(0, 137, 123, 0.4);
color: #ffffff;
}
button.clear {
background: rgba(244, 67, 54, 0.5);
color: #ffffff;
}
button.clear:hover {
background: rgba(244, 67, 54, 0.7);
}
button.equals:hover {
background: rgba(38, 198, 218, 0.6);
}
button:nth-child(17) {
grid-column: span 2;
}
/* Responsive Design */
@media (min-width: 768px) {
.calculator {
width: 40%;
height: 80vh;
}
}