-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
135 lines (121 loc) · 2.57 KB
/
styles.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
127
128
129
130
131
132
133
134
135
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #0d0d0d;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: "Arial", sans-serif;
}
#calculator {
background-color: #252525;
padding: 30px;
border-radius: 15px;
box-shadow: 0 0 20px rgba(36, 36, 36, 0.5);
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
}
#buttons-grid {
display: flex;
flex-direction: column;
align-items: center;
gap: 15px;
}
#options-row button {
border-radius: 10px;
border: none;
color: #e0e0e0;
font-size: 20px;
cursor: pointer;
padding: 20px 53px;
margin: 0 2px;
transition: background-color 0.3s ease, transform 0.3s ease;
}
#clear-button {
background-color: #c0392b;
}
#clear-button:hover {
background-color: #ad1717;
}
#backspace-button {
background-color: #6044ad;
}
#backspace-button:hover {
background-color: #482f8b;
}
.row {
display: flex;
gap: 10px;
}
.row button {
flex: 1;
padding: 20px 30px;
min-width: 70px;
border-radius: 10px;
border: none;
color: #e0e0e0;
font-size: 24px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
}
.number {
background-color: #34495e;
}
.number:hover {
background-color: #2a3b4d;
}
.operator {
background-color: #d3711c;
}
.operator:hover {
background-color: #995418;
}
#equal {
background-color: #1d852b;
}
#equal:hover {
background-color: #145c1e;
}
#display {
background-color: #627a77;
padding: 0;
display: flex;
flex-direction: column;
align-items: baseline;
gap: 15px;
max-width: 330px;
width: 330px;
height: auto; /* Makes the height adjustable */
color: #e0e0e0;
font-size: 36px;
text-align: right;
border-radius: 10px;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}
#previous-operations,
#result {
width: 100%; /* Use full width */
padding: 0 5px; /* Common padding */
background-color: #627a77; /* Consistent background */
border-radius: 10px; /* Consistent border radius */
overflow-wrap: break-word; /* Break long numbers to avoid overflow */
word-wrap: break-word; /* For compatibility */
white-space: normal; /* Allows wrapping to the next line */
text-align: right; /* Align text to the right */
}
#previous-operations {
font-size: 24px;
color: #272727; /* Text color for previous operations */
}
#result {
font-size: 40px; /* Larger font for current result */
font-weight: 600; /* Bold font weight for emphasis */
color: #000000; /* Text color for the current result */
min-height: 60px; /* Minimum height */
}