Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
79 lines (73 loc) · 1.66 KB
/
Copy pathstyle.css
File metadata and controls
79 lines (73 loc) · 1.66 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
body{
margin: 0;
background-color: #1c1c1e;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.calculator-box{
background-color: black;
padding: 16px;
border-radius: 20px;
box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
gap: 12px; /* Space between the display and the buttons */
width: 420px; /* Constraints the width into a clean box */
}
#displayExpression{
width: 100%;
box-sizing: border-box;
padding: 10px;
font-size: 4.5rem;
text-align: right;
background-color: transparent;
border: none;
color: hsl(0, 0%, 100%);
overflow: hidden;
}
#container{
display: grid;
grid-template-columns: repeat(4,1fr);
gap: 12px;
justify-items: center;
align-items: center;
}
button{
width: 85px;
height: 85px;
border-radius: 50%;
font-size: 2.2rem;
font-weight: bold;
cursor: pointer;
background-color: hsl(0, 3%, 12%);
color: white;
border: none;
transition: background-color 0.1s ease;
}
button:hover{
background-color: hsl(0, 3%, 15%);
}
button:active{
background-color: hsl(0, 3%, 12%);
}
.utility{
background-color: hsl(0, 4%, 40%);
}
.operators{
background-color: hsl(38, 87%, 53%);
}
.operators:hover{
background-color: hsl(38, 87%, 40%);
}
.operators:active{
background-color: hsl(38, 87%, 50%);
}
.utility:hover{
background-color: hsl(0, 4%, 30%);
}
.utility:active{
background-color: hsl(0, 4%, 39%);
}