-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcalculator.css
More file actions
87 lines (75 loc) · 1.49 KB
/
calculator.css
File metadata and controls
87 lines (75 loc) · 1.49 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
/* styles.css */
body {
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f3f3f3;
margin: 0;
transition: background-color 0.3s;
}
.calculator {
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
width: 300px;
padding: 20px;
}
.display {
display: flex;
flex-direction: column;
margin-bottom: 10px;
}
.history {
font-size: 12px;
color: #999;
height: 20px;
overflow: hidden;
text-align: right;
}
#result {
font-size: 20px;
text-align: right;
height: 40px;
margin-bottom: 10px;
border: none;
background: #f0f0f0;
padding: 5px;
border-radius: 5px;
}
.buttons, .scientific-buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
button {
font-size: 18px;
padding: 15px;
background-color: #eee;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s;
}
button:hover {
background-color: #ddd;
}
.scientific-buttons {
margin-top: 10px;
grid-template-columns: repeat(3, 1fr);
}
.dark-mode {
background-color: #2c2c2c;
color: #ddd;
}
.dark-mode #result {
background: #444;
}
.dark-mode button {
background-color: #444;
color: #ddd;
}
.dark-mode button:hover {
background-color: #555;
}