-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalculator.css
128 lines (110 loc) · 2.41 KB
/
calculator.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
html {
font-size: 67.5%;
box-sizing: border-box;
}
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: inherit;
background-color: #000000d8;
border-radius: 60px;
}
.calculator {
border: 1px solid #ccc;
border-radius: 27px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 400px;
background-color: rgb(0, 0, 0);
user-select: none;
box-shadow: 0 0.7px rgb(243, 241, 241);
}
.calculator-screen {
border-radius: 27px;
width: 100%;
font-size: 5rem;
height: 100px;
border: none;
background-color: #000000;
color: #fff;
text-align: right;
padding-right: 20px;
padding-left: 10px;
font-size: 80px;
box-shadow: 0 0.5px rgb(243, 241, 241);
user-select: none;
}
button {
height: 60px;
background-color: rgba(5, 5, 5, 0.315);
border-radius: 12px;
border: 1px solid orange;
background-color: transparent;
font-size: 2rem;
color: rgba(250, 250, 250, 0.829);
text-shadow: 0 2px rgba(255, 255, 255, 0.288);
box-shadow: 0 5px orange;
cursor: pointer;
user-select: none;
}
button:active{
transform: translateY(3px);
box-shadow: 0 5px rgb(73, 39, 1);
}
button:hover {
background-color: #383838;
}
.operator {
color: #000000;
background-color: orange;
border-color: rgb(0, 0, 0);
}
.operator:hover{
background-color: rgb(212, 138, 0);
}
.all-clear {
background-color: orange;
border-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);
font-size: 2rem;
}
.all-clear:hover {
background-color: rgb(212, 138, 0);
}
.equal-sign:hover {
background-color: rgb(212, 138, 0);
}
.calculator-keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 20px;
padding: 20px;
}
.equal-sign {
background-color: orange;
border-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);
height: 100%;
grid-row-start: 6;
grid-row-end: 5;
grid-column-start: 3;
grid-column-end: 5;
}
.percentage-key {
background-color: orange;
border-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);
}
.percentage-key:hover{
background-color: rgb(212, 138, 0);
}
.delete-key {
background-color: orange;
border-color: rgb(0, 0, 0);
color: rgb(0, 0, 0);
}
.delete-key:hover{
background-color: rgb(212, 138, 0);
}