-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
128 lines (112 loc) · 2.57 KB
/
style.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
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
font-family: conslas;
}
.calc-container{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #333;
width: 100%;
}
.calc-container .container{
position: relative;
min-width: 300px;
min-height: 400px;
background :#333;
padding: 40px 30px 30px;
border-radius: 20px;
box-shadow: 25px 25px 75px rgba(0,0,0,0.25),
10px 10px 70px rgba(0,0,0,0.25),
inset -5px -5px 15px rgba(0,0,0,0.5),
inset 5px 5px 15px rgba(0,0,0.5);
}
.calculator{
position: relative;
display: grid;
}
.calculator .value{
position: relative;
grid-column: span 4;
height: 100px;
left: 10px;
width: calc(100% - 30px);
border: none;
outline: none;
background: #a7af7c;
margin-bottom: 10px;
border-radius: 10px;
box-shadow: 0 0 0 2px rgba(0,0,0,0.25);
text-align: right;
padding: 10px;
font-size: 2em;
}
.calculator span{
position: relative;
display: grid;
width: 80px;
height: 80px;
margin: 8px;
place-items: center;
background: linear-gradient(180deg #2f2f2f, #3f3f3f);
box-shadow: inset -8px 0 8px rgba(0,0,0,0.15),
inset 0 -8px 8px rgba(0,0,0,0.25),
inset 0px 0px 2px rgba(0,0,0,0.75),
10px 10px 25px rgba(0,0,0,0.4);
color: #fff;
user-select:none;
cursor: pointer;
font-size: 20px;
font-weight: 400;
}
.calculator span::before{
content: "";
position: absolute;
top: 3px;
left: 4px;
bottom: 14px;
right: 12px;
background: linear-gradient(90deg #2f2f2f, #4d4d4d);
border-radius: 10px;
box-shadow: -5px -5px 15px rgba(0,0,0,0.1),
10px 5px 10px rgba(0,0,0,0.15);
border-left: 1px solid #0004;
border-bottom: #0004;
border-top: #0009;
}
.calculator span i:active{
filter: brightness(1.5);
}
.calculator span i{
position: relative;
font-style: normal;
font-size: 1,5;
text-transform: uppercase;
}
.calculator .clear{
grid-column: span 2;
width: 170px;
background: #f00;
}
.calculator .clear::before{
background:linear-gradient(90deg, #d20000, #ffffff5c);
border-left: 1px solid #fff4;
border-bottom: 1px solid #fff4;
border-top: 1px solid #fff4;
}
.calculator .plus{
grid-row: span 2;
height: 180px;
}
.calculator .equal{
background: #2196f3;
}
.calculator .equal::before{
background: linear-gradient(90deg, #1479c9, #ffffff5c);
border-left: 1px solid #fff4;
border-bottom: 1px solid #fff4;
border-top: 1px solid #fff4;
}