-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalc.css
108 lines (96 loc) · 2.18 KB
/
calc.css
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
108
body{
display: flex;
justify-content: center;
height: 100vh;
margin-top: 1%;
}
.calc{
box-sizing: border-box;
height: 95vh;
width: 65vh;
border: 5px solid black;
padding: 10px;
padding-top: 2%;
background-color: rgb(244, 169, 206);
border-radius: 20px;
}
.screen{
display: flex;
justify-content: center;
text-align: center;
height: 16vh;
width: 52vh;
margin: 20px;
margin-left: 6%;
border: 4px solid black;
background-color: rgb(205, 232, 255);
align-items: center;
overflow: hidden;
text-overflow: ellipsis;
border-radius: 8px;
}
.solar{
display: grid;
grid-template-columns: repeat(5,1fr);
margin-left: 44%;
box-sizing: border-box;
height: 6vh;
width: 30vh;
border: 3px solid black;
background-color: rgb(245, 236, 236);
}
.solar .line {
border-right: 1px solid #000000;
height: 100%;
}
.buttons{
margin-top: 14%;
display: grid;
padding-left: 6%;
grid-template-columns: repeat(4, 84px);
grid-template-rows: repeat(5,59px);
row-gap: 10px;
column-gap: 10px;
}
/*//To apply styles to all buttons without affecting the parent container, you can target the button elements inside the .buttons container specifically. */
.buttons button{
border: 3px solid black;
border-radius: 20px;
background-color: rgb(246, 224, 238);
}
.buttons .clear{
background-color: skyblue;
}
.buttons .cross{
background-color: skyblue;
}
.buttons .equal{
background-color: rgb(199, 249, 223);
}
.num{
padding: 10px;
}
.operator{
padding: 10px;
}
.buttons
.plus{
grid-row: span 2;
background-color: rgb(255, 210, 155);
}
.buttons button:active {
background-color: #ddd; /* Adjust highlight color as needed */
transition: background-color 0.2s ease-in-out; /* Add smooth transition */
}
.buttons .div{
background-color: rgb(255, 210, 155);
}
.buttons .mul{
background-color: rgb(255, 210, 155);
}
.buttons .sub{
background-color: rgb(255, 210, 155);
}
.buttons .per{
background-color: rgb(255, 210, 155);
}