-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
94 lines (81 loc) · 1.63 KB
/
Copy pathstyles.css
File metadata and controls
94 lines (81 loc) · 1.63 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
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f4f4f4;
}
.calculator {
width: 520px;
background-color: #c0c0c0;
padding: 20px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
#display {
width: 100%;
height: 40px;
margin-bottom: 15px;
font-size: 1.5rem;
padding: 5px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 5px;
background-color: white;
font-family: monospace;
position: relative;
display: flex;
align-items: right;
overflow-x: hidden;
white-space: nowrap;
outline: none;
}
button {
font-size: 1.2rem;
width: 100%;
height: 100%;
cursor: pointer;
background-color: #eee;
border: 1px solid #a0a0a0;
border-radius: 5px;
transition: background-color 0.3s ease;
margin-bottom: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.ans {
background-color: #e59554;
}
.ans:active{
background-color: #e5893d;
}
button:active {
background-color: #ccc;
}
.operation {
background-color: #f0ad4e;
color: white;
}
.operation:active {
background-color: #d2ba99;
}
.equals {
background-color: #5cb85c;
color: white;
}
.equals:active {
background-color: #4cae4c;
}
.buttons-container {
display: grid;
grid-template-columns: repeat(4, 1fr); /* 4 columns for buttons */
gap: 10px;
}
button {
padding: 15px;
text-align: center;
}
.button-wide {
grid-column: span 2; /* Span 2 columns for wider buttons (like zero or equals) */
}