-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
162 lines (140 loc) · 2.75 KB
/
styles.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
153
154
155
156
157
158
159
160
161
162
html {
background-color: hsl(31, 31%, 63%);
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.calculator{
background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(37,37,36,1) 51%, rgba(42,42,40,1) 82%, rgba(47,47,45,1) 100%);
border-radius: 40px;
padding: 40px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
border: solid white 5px;
}
.display{
display: flex;
flex-direction: column;
width: 420px;
height: 145px;
box-sizing: border-box;
margin-bottom: 20px;
background-color: hsl(50,56%,53%);
border-radius: 20px;
border : solid black 2px;
box-shadow: inset -2px -2px 5px black, inset 2px 2px 5px black;
}
.sub-display{
display: flex;
justify-content: end;
padding: 10px;
box-sizing: border-box;
height: 65px;
width: 420px;
font-family: "Londrina Sketch",sans-serif;
font-size: 30px;
font-weight: bold;
}
.main-display{
display: flex;
justify-content: end;
padding: 10px;
box-sizing: border-box;
height: 80px;
width: 420px;
font-family: "Londrina Sketch",sans-serif;
font-size: 45px;
font-weight: bold;
}
.buttons{
display: flex;
flex-direction: column;
row-gap: 20px;
height: auto;
width: 420px;
}
.deletions{
display: flex;
justify-content: space-around;
}
.clear,
.delete{
height: 50px;
width: 160px;
background-color: hsl(27,100%,60%);
border-radius: 20px;
}
.numbers-and-operations{
display: flex;
}
.numbers{
display: flex;
row-gap: 20px;
column-gap: 28px;
flex-wrap: wrap;
}
.operations{
display: flex;
flex-direction: column;
row-gap: 20px;
}
.operatorBtn{
background-color: hsl(27,100%,60%);
}
.equalsBtn{
background-color: hsl(27,100%,50%);
}
.numberBtn,
.decimalBtn{
background-color: hsl(50,56%,53%);
}
.operatorBtn,
.equalsBtn,
.numberBtn,
.decimalBtn{
border-radius: 100%;
}
.clear,
.delete,
.operatorBtn,
.equalsBtn,
.numberBtn,
.decimalBtn{
font-family: "Londrina Sketch",sans-serif;
font-size: 42px;
font-weight: bold;
padding: 40px;
border: solid black 2px;
box-shadow: 2px 4px 0px black;
border-color: transparent;
outline: none;
}
button{
display: flex;
justify-content: center;
align-items: center;
height: 50px;
width: 50px;
}
.hover{
transform: scale(1.1,1.1);
transition: transform 200ms;
}
.hoverNumbersDecimal{
background-color: hsl(50, 76%, 60%);
}
.hoverEquals{
background-color: hsl(27, 100%, 57%);
}
.hoverOperators{
background-color: hsl(27, 100%, 65%);
}
.hoverClearDelete{
background-color: hsl(27, 100%, 65%);
}
.hoverRemove{
transition: transform 100ms;
}