-
Notifications
You must be signed in to change notification settings - Fork 0
/
calc.css
136 lines (127 loc) · 2.46 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
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
*{
padding: 0;
margin: 0;
box-sizing: border-box;
color: white;
font-size: 16px;
}
body{
display: grid;
place-items: center;
height: 100vh;
width: 100vw;
background-color: #121212;
}
main{
display: flex;
flex-direction: column;
width: 350px;
height: 500px;
background: #1597ad;
align-items: center;
border-radius: 20px;
border: 3px solid #00859c;
padding-top:30px;
gap: 20px;
box-shadow: 8px 4px 15px #107385;
position: relative;
}
#view-area{
display: flex;
flex-direction: column-reverse;
width: 100%;
}
#current-operation{
width: 100%;
height: 100px;
background:#30829b;
position: relative;
font-size: 3rem;
display: flex;
align-items: center;
justify-content: end;
overflow: auto;
}
#previus-operation-area{
width: 100%;
height: 50px;
background:#30829b;
display: flex;
font-size: 1.5rem;
justify-content: end;
gap: 5px;
}
#result, #op-number{
width: max-content;
height: 100%;
}
#previus-operation #op-type{
height: 100%;
width: max-content;
display: flex;
align-items: center;
justify-content: center;
}
#buttons-area{
display: flex;
flex-direction: column;
gap: 5px;
}
.row{
display: flex;
flex-direction: row-reverse;
gap: 5px;
}
.buttons{
display: grid;
place-items: center;
background: #1c8d71;
width: 80px;
height: 40px;
border: 1px solid #003d2e;
box-shadow: 1px 1px 0px #043b2e;
user-select:none
}
.buttons:hover{
background:#095f4a;
}
.buttons:active{
background: linear-gradient(45deg,#066951 30%,#1c8d71 65%,#066951 70%);
border: none;
box-shadow: none;
}
#equal{
background: #1c568d;
border: 1px solid #00183d;
box-shadow: 1px 1px 0px #040e3b;
}
#equal:hover{
background: #04093b;;
}
#equal:active{
background: linear-gradient(45deg,#00183d 30%,#1c568d 65%,#00183d 70%);
border: none;
box-shadow: none;
}
#historic{
position: absolute;
font-size: 16px;
bottom: 94.5%;
left:88%;
background:#1597ad;
border: none;
width: 25px;
height: 25px;
display: grid;
place-items: center;
border-radius: 5px;
}
#historic:hover{
background:#18abc5;
}
#historic:active{
background:#117a8d;
}
i{
color: #2415ad;
}