forked from saimanoj22/calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
152 lines (130 loc) · 2.99 KB
/
style.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
@import url('https://fonts.googleapis.com/css2?family=Tinos&display=swap');
*{
font-family: 'Tinos', serif;
}
body{
margin: 0px;
display: flex;
flex-direction: column;
min-height: 100vh;
}
main{
background-color: #f2db14;
display: flex;
justify-content: center;
align-items: center;
flex-grow: 1;
}
.calculator{
background-color: rgba(38, 38, 38, 1);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
padding: 20px;
gap: 35px;
border-radius: 35px;
width: 250px;
}
.textArea{
margin: 5px 0px 20px 0px;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.count{
width: 250px;
min-height: 30px;
text-align: right;
color: white;
font-size: 21px;
word-wrap: break-word;
}
.answer{
width: 250px;
min-height: 60px;
text-align: right;
color: white;
font-size: 40px;
word-wrap: break-word;
}
.buttons{
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(5, 1fr);
row-gap: 15px;
column-gap: auto;
z-index: 1;
padding: 0px 0px 15px 0px;
}
button{
display: flex;
justify-content: center;
align-items: center;
border: none;
border-radius: 50%;
box-shadow: rgba(0, 0, 0, 1) 0px 3px 5px 1px;
color: white;
background-color: hsl(0, 0%, 15%, 1);
font-size: 13px;
width: 40px;
height: 40px;
font-weight: 800;
margin: 0px;
}
.number:hover, .plusMinus:hover {
box-shadow: rgb(80, 191, 230) -2px -2px 10px 2px, rgb(80, 191, 230) 2px 2px 10px 2px;
}
.number:active, .plusMinus:active {
box-shadow:rgb(80, 191, 230) inset -2px -2px 5px 1px, rgb(80, 191, 230) inset 2px 2px 5px 1px;
}
.operator:hover{
box-shadow: rgb(102, 255, 102) -2px -2px 10px 2px, rgb(102, 255, 102) 2px 2px 10px 2px;
}
.operator:active{
box-shadow: rgb(102, 255, 102)inset -2px -2px 5px 1px, rgb(102, 255, 102)inset 2px 2px 5px 1px;
}
.ac:hover, .bc:hover{
box-shadow: rgb(255, 53, 94) -2px -2px 10px 2px,rgb(255, 53, 94) 2px 2px 10px 2px;
}
.ac:active, .bc:active{
box-shadow: rgb(255, 53, 94)inset -2px -2px 5px 1px,rgb(255, 53, 94)inset 2px 2px 5px 1px;
}
.equal{
background-color: rgb(221, 105, 105);
width: 65px;
height: 65px;
font-weight: 800;
font-size: 26px;
}
.equal:hover{
background-color: rgb(102, 255, 102);
}
.equal:active{
box-shadow: rgb(102, 255, 102) -2px -2px 10px 2px,rgb(102, 225, 102) 2px 2px 10px 2px;
}
.rectangle{
background-color: black;
width: 90px;
height: 430px;
transform: translate(100px, -15px);
z-index: 0;
margin-top: -470px;
border-radius: 120px 0px 0px 120px;
}
.division, .multiplication, .subtraction, .addition{
transform: translate(15px, 0px);
font-size: 20px;
}
footer{
display: flex;
justify-content: center;
align-items: center;
gap:8px;
font-size:20px;
background-color: #f2db14;
}
.github{
width: 25px;
height: 25px;
}