-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyles.css
More file actions
148 lines (142 loc) · 2.97 KB
/
Copy pathstyles.css
File metadata and controls
148 lines (142 loc) · 2.97 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
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
137
138
139
140
141
142
143
144
145
146
147
148
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 90vh;
background: #2f363e;
}
.container {
position: relative;
min-width: 300px;
min-height: 480px;
padding: 30px 30px 30px;
border-radius: 20px;
background: #2f363e;
box-shadow: 25px 25px 75px rgba(0 0 0 /50%), 10px 10px 70px rgba(0 0 0 /50%),
inset 5px 5px 10px rgba(0 0 0 /50%),
inset 5px 5px 20px rgba(255 255 255 /25%),
inset -5px -5px 15px rgba(0 0 0 /75%);
}
.container .calc {
position: relative;
display: grid;
}
.container .calc .value {
position: relative;
grid-column: span 4;
height: 80px;
left: 10px;
width: calc(100% - 20px);
border: none;
outline: none;
background: #fff;
margin-bottom: 15px;
border-radius: 10px;
text-align: right;
padding: 10px;
font-size: 2rem;
box-shadow: 2px 5px 7px rgb(0 0 0 /50%),
inset 5px 5px 5px rgb(255 255 255 /30%), inset -3px -3px 5px rgb(0 0 0 /50%);
}
span {
color: #fff;
}
.container .calc span {
position: relative;
display: grid;
place-items: center;
width: 80px;
height: 85px;
margin: 6px;
background: linear-gradient(100deg, #3f3f3f);
color: #fff;
user-select: none;
cursor: pointer;
font-size: 20px;
font-weight: 500;
border-radius: 10px;
box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.15),
inset 0px -8px 8px rgba(0, 0, 0, 0.25), inset -8px 0 8px rgba(0, 0, 0, 0.15),
0px 0 2px rgba(0, 0, 0, 0.75), 18px 20px 25px rgba(0, 0, 0, 0.4);
}
.container .calc span::before {
content: "";
position: absolute;
top: 8px;
left: 8px;
bottom: 10px;
right: 8px;
border-radius: 10px;
border-bottom: 1px solid #0004;
border-left: 1px solid #0004;
border-top: 1px solid #0009;
border-right: 1px solid #0004;
box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.1),
inset 10px 5px 10px rgba(0, 0, 0, 0.15);
}
.container .calc span:active {
filter: brightness(1.5);
}
.container .calc .clear {
grid-column: span 2;
width: 180px;
background: #f9123c;
}
.container .calc .backspace {
/* grid-column: span 2; */
/* width: 180px; */
background: rgb(255, 89, 0);
}
.container .calc .clear::before {
border-bottom: 1px solid #0004;
border-left: 1px solid #0004;
border-top: 1px solid #0004;
}
.container .calc .equals {
/* grid-row: span 1; */
background: #2196f3;
}
.container .calc .equals::before {
border-bottom: 1px solid #fff4;
border-left: 1px solid #fff4;
border-top: 1px solid #fff4;
}
.calc span i {
position: relative;
font-style: normal;
font-size: 1.5rem;
text-transform: uppercase;
}
/*Media Queries for Moblie responsive */
@media (max-width: 480px) {
.container {
padding: 15px;
min-height: 70vh;
}
.container .calc {
grid-template-columns: repeat(3, 1fr);
}
.container .calc .value {
grid-column: span 4;
font-size: 1.5rem;
height: 60px;
}
.container .calc span {
width: 60px;
height: 65px;
margin: 3px;
font-size: 16px;
}
.container .calc span::before {
top: 6px;
left: 6px;
bottom: 8px;
right: 6px;
}
}