-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
95 lines (94 loc) · 2.04 KB
/
index.css
File metadata and controls
95 lines (94 loc) · 2.04 KB
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
*{
margin: 0;
padding: 0;
color:#fff;
}
body{
display:flex;
justify-content:center;
align-items:center;
min-height:20px;
background:#333;
font-family:"poppins",sans-serif;
}
.container{
position:relative;
min-width:300px;
min-height:400px;
border-radius:30px;
box-shadow:25px 20px 75px rgba(0,0,0,0.25),
10px 10px 70px rgba(0,0,0,0.5),
inset 5px 5px 15px rgba(0,0,0,0.5),
inset -5px -5px 15px rgba(0,0,0,0.5);
padding:40px 30px 30px;
}
.calc{
position:relative;
display:grid;
}
.value{
position:relative;
grid-column:span 4;
height:100px;
width:calc(100% - 20px);
left:0;
border:none;
outline:none;
margin-bottom:10px;
background-color:#333;
box-shadow:0 0 2px rgba(0,0,0,0.5);
text-align:right;
font-size:2rem;
padding:10px;
}
.calc span{
color:#0ff;
position:relative;
display:grid;
width:80px;
height:80px;
background-color:linear-gradiant(180deg,#2f2f2f,#3f3f3f);
box-shadow:inset 0 -80px 8px rgba(0,0,0,0.15),
inset 0 -8px 8px rgba(0,0,0,.25),
inset 0 0 0 rgba(0,0,0,.25);
place-items:center;
margin:8px;
border-radius:10px
}
.calc span:active{
filter:brighness(1.5);
}
.calc span:befor{
content:"";
position:absolute;
top:3px;
left:4px;
bottom:10px;
right:12px;
background-color:linear-gradiant(90deg,#2f2f2f,#4d4d4d);
borde-radius:10px;
box-shadow:-5px -5px rgba(0,0,0,0.1),10px 5px 10px rgba(0,0,0,0.15);
border-tob:1px solid #0009;
border-left:1px solid#0004;
border-bottom:1px solid#0004;
}
.calc sapn i{
position:relative;
font-size:2rem;
cursor:pointer;
font-style:normal;
}
span.clear{
grid-column:span 2;
width:150px;
background-color:red;
}
span.clear::before{
background-color:lightblue;
border-left:1px solid lightpink;
}
span.equals{
grid-column:span 2;
width:150px;
background-color:lightblue;
}