123.calculator {4 border: 1px solid rgb(179, 179, 179);5 border-radius: 0.375rem;6 width: 190px;7 height: 254px;8 font-family: Arial, sans-serif;9 margin: 0 auto;10 padding: 10px;11}12.output {13 border: 1px solid #ccc;14 border-radius: 0.375rem;15 height: 40px;16 margin-bottom: 10px;17 margin-top: 10px;18 display: flex;19 align-items: center;20 justify-content: flex-end;21 padding-right: 10px;22}23.result {24 font-size: 20px;25}26.buttons {27 display: grid;28 grid-template-columns: repeat(4, 1fr);29 grid-gap: 5px;30}31button {32 border: none;33 border-radius: 0.375rem;34 padding: 10px;35 background-color: #eee;36 cursor: pointer;37 font-size: 16px;38}39button:hover {40 background-color: #ddd;41}42button:active {43 background-color: #ccc;44}45.bg-green {46 background-color: rgba(0, 177, 29, 0.651);47 color: white;48}49.bg-green:hover {50 background-color: rgba(0, 231, 39, 0.651);51 color: white;52}53.bg-red {54 background-color: rgba(223, 4, 4, 0.651);55 color: white;56}57.bg-red:hover {58 background-color: rgba(255, 1, 1, 0.651);59 color: white;60}
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
.calculator {
border: 1px solid rgb(179, 179, 179);
border-radius: 0.375rem;
width: 190px;
height: 254px;
font-family: Arial, sans-serif;
margin: 0 auto;
padding: 10px;
}
.output {
border: 1px solid #ccc;
border-radius: 0.375rem;
height: 40px;
margin-bottom: 10px;
margin-top: 10px;
display: flex;
align-items: center;
justify-content: flex-end;
padding-right: 10px;
}
.result {
font-size: 20px;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 5px;
}
button {
border: none;
border-radius: 0.375rem;
padding: 10px;
background-color: #eee;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #ddd;
}
button:active {
background-color: #ccc;
}
.bg-green {
background-color: rgba(0, 177, 29, 0.651);
color: white;
}
.bg-green:hover {
background-color: rgba(0, 231, 39, 0.651);
color: white;
}
.bg-red {
background-color: rgba(223, 4, 4, 0.651);
color: white;
}
.bg-red:hover {
background-color: rgba(255, 1, 1, 0.651);
color: white;
}
You need to sign in before you can write a comment.