-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
107 lines (92 loc) · 2.05 KB
/
Copy pathstyle.css
File metadata and controls
107 lines (92 loc) · 2.05 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
/* Reset default browser styles for consistency */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
/* Set a minimum font size for accessibility */
html {
font-size: 16px;
min-height: 100vh;
}
/* Improve contrast and legibility */
body {
color: #333;
background-color: #f8f8f8;
line-height: 1.5;
}
/* Center the calculator on the page */
.calculator {
max-width: 400px;
margin: 0 auto;
border-radius: 5px;
background-image: linear-gradient(45deg, #fd5d94 0%, #ec4a8e 25%, #bc3a7a 50%, #8a2c6a 75%, #6a1b9a 100%);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
/* Add some padding to the display */
.display {
padding: 10px;
text-align: right;
border-bottom: 1px solid #ccc;
}
/* Style the result field */
#result {
font-size: 28px;
border: none;
outline: none;
background-color: transparent;
color: #fff;
}
/* Style the buttons container */
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
padding: 10px;
}
/* Style the buttons */
button {
font-size: 24px;
color: #fff;
background-color: transparent;
border: none;
border-radius: 5px;
padding: 10px;
cursor: pointer;
transition: background-color 0.2s ease-in-out;
}
/* Change button color on hover */
button:hover {
background-color: rgba(255, 255, 255, 0.2);
}
/* Style the operator button */
.operator {
background-color: rgba(255, 255, 255, 0.2);
}
/* Change operator button color on hover */
.operator:hover {
background-color: rgba(255, 255, 255, 0.4);
}
/* Style the zero button */
.zero {
grid-column: span 2;
}
/* Style the clear button */
.clear {
background-color: rgba(255, 255, 255, 0.2);
color: #333;
}
/* Change clear button color on hover */
.clear:hover {
background-color: rgba(255, 255, 255, 0.4);
}
/* Style the equal button */
.equal {
background-color: #fff;
color: #333;
}
/* Change equal button color on hover */
.equal:hover {
background-color: #eee;
}