-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.css
More file actions
155 lines (134 loc) · 3.12 KB
/
styles.css
File metadata and controls
155 lines (134 loc) · 3.12 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.calculator-container {
padding: 20px;
}
.calculator {
background: linear-gradient(145deg, #2d3436, #1e272e);
padding: 25px;
border-radius: 20px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4),
inset 0 2px 10px rgba(255, 255, 255, 0.05);
width: 320px;
}
/* Display Screen */
.display {
background: linear-gradient(145deg, #1a1f24, #0f1419);
margin-bottom: 20px;
border-radius: 12px;
padding: 5px;
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}
.display-screen {
background: #0f1419;
color: #00ff88;
font-size: 2.5rem;
font-weight: 300;
text-align: right;
padding: 20px;
border-radius: 8px;
min-height: 70px;
display: flex;
align-items: center;
justify-content: flex-end;
word-wrap: break-word;
word-break: break-all;
font-family: 'Courier New', monospace;
text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
/* Button Grid */
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
/* Base Button Styles */
.btn {
padding: 20px;
font-size: 1.5rem;
font-weight: 600;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
position: relative;
overflow: hidden;
}
.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transform: translate(-50%, -50%);
transition: width 0.3s, height 0.3s;
}
.btn:active::before {
width: 200px;
height: 200px;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.btn:active {
transform: translateY(1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Number Buttons */
.btn-number {
background: linear-gradient(145deg, #4a5568, #2d3748);
color: #ffffff;
}
.btn-number:hover {
background: linear-gradient(145deg, #5a6578, #3d4758);
}
/* Operator Buttons */
.btn-operator {
background: linear-gradient(145deg, #f59e0b, #d97706);
color: #ffffff;
}
.btn-operator:hover {
background: linear-gradient(145deg, #fbbf24, #f59e0b);
}
/* Equals Button */
.btn-equals {
background: linear-gradient(145deg, #10b981, #059669);
color: #ffffff;
grid-row: span 2;
}
.btn-equals:hover {
background: linear-gradient(145deg, #34d399, #10b981);
}
/* Clear Button */
.btn-function {
background: linear-gradient(145deg, #ef4444, #dc2626);
color: #ffffff;
}
.btn-function:hover {
background: linear-gradient(145deg, #f87171, #ef4444);
}
/* Decimal Button */
.btn-decimal {
background: linear-gradient(145deg, #4a5568, #2d3748);
color: #ffffff;
grid-column: span 2;
}
.btn-decimal:hover {
background: linear-gradient(145deg, #5a6578, #3d4758);
}