-
Notifications
You must be signed in to change notification settings - Fork 0
/
style-calculator.css
87 lines (83 loc) · 2.01 KB
/
style-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
@import url('https://fonts.googleapis.com/css2?family=Comforter&family=Roboto+Slab:wght@800&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Comforter', cursive;
font-family: 'Roboto Slab', serif;
}
body
{
background-image: url(932271.jpg);
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.container
{
position: relative;
background-color: rgba(255,255,255,0.05);
border-radius: 6px;
overflow: hidden;
z-index: 10;
backdrop-filter: blur(10px);
border-top: 1px solid rgba(255,255,255,0.2);
border-left: 1px solid rgba(255,255,255,0.2);
box-shadow: 5px 5px 30px rgba(0,0,0,0.05);
}
.container .calculator{
position: relative;
/*position x to y using grid*/
display: grid;
}
.container .calculator .value{
grid-column: span 4;/*4*4 matrix form*/
height: 140px;
width: 300px;
text-align: right;
border: none;
outline: none;
padding: 10px;
font-size: 40px;
background: transparent;
color: rgb(255, 254, 254);
border-bottom:1px solid rgba(255,255,255,0.05);
border-right: 1px solid rgba(255,255,255,0.05);
}
.container .calculator span{
display: grid;
place-items: center;
width: 75px;
height: 75px;
font-weight: 400;
cursor: pointer;
font-size: 20px;
user-select: none;
border-bottom: 1px solid rgba(255,255,255,0.05);
border-right: 1px solid rgba(255,255,255,0.05);
transition: 0.5s;
}
.container .calculator span:hover{
transition: 0s;
background: rgba(255,255,255,0.05);
}
.container .calculator span:active{
background: rgb(89, 255, 47);
color: #192f00;
font-size: 24px;
font-weight: 500px;
}
.container .calculator .clear{
grid-column: span 2;
width: 150px;
background: rgba(255,255,255,0.05);
}
.container .calculator .plus{
grid-row: span 2;
height: 150px;
}
.container .calculator .equal{
background: rgba(255,255,255,0.05);
}