-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
125 lines (106 loc) · 2 KB
/
main.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
.app {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
body{
background: rgb(4,20,168);
background: linear-gradient(45deg, rgba(4,20,168,1) 0%, rgba(140,0,154,1) 35%, rgba(168,0,88,1) 100%);
}
.calculator {
background-color: rgba(255, 255, 255, 0.05);
width: 100%;
max-width: 375px;
min-height: 640px;
display: flex;
flex-direction: column;
border-radius: 1.5rem;
overflow: hidden;
}
.display {
min-height: 200px;
padding: 1.5rem;
display: flex;
justify-content: flex-end;
align-items: flex-end;
color: rgb(255, 255, 255);
text-align: right;
flex: 1 1 0%;
}
.display .content {
display: flex;
flex-direction: column;
justify-content: flex-end;
width: 100%;
max-width: 100%;
overflow: auto;
}
.display .input {
width: 100%;
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.display .output {
font-size: 3rem;
font-weight: 700;
width: 100%;
white-space: nowrap;
}
.display .operator {
color: #EB6666;
}
.display .brackets,
.display .percent {
color: #26FED7;
}
.keys {
background-color: rgba(255, 255, 255, 0.05);
/* padding: 1.5rem; */
/* border-radius: 1.5rem 1.5rem 0 0; */
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-gap: 1px;
/* box-shadow: 0px -2px 16px rgba(0, 0, 0, 0.2); */
}
.keys .key {
position: relative;
cursor: pointer;
display: block;
height: 0;
padding-top: 100%;
background-color: rgba(255, 255, 255, 0.05);
/* border-radius: 1rem; */
transition: 0.2s;
user-select: none;
}
.keys .key span {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 2rem;
font-weight: 700;
color: #FFF;
}
.keys .key:hover {
/* box-shadow: inset 0px 0px 8px rgb(0, 255, 26); */
background-color: rgba(255, 255, 255, 0.393);
}
.keys .key.operator span {
color: #09ff00;
}
.keys .key.action span {
color: #26FED7;
}
.keys .myeq:hover{
background-color: orangered;
color: white;
}