-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (100 loc) · 2.11 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
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: consolas;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #333;
}
.calculator{
position: relative;
width: 330px;
}
.calculator .buttons
{
position: relative;
display: grid;
}
.calculator .buttons #value
{
position: relative;
left: 8px;
margin-bottom: 12px;
grid-column: span 4;
height: 100px;
line-height: 100px;
padding: 0 20px;
border-radius: 10px;
background: wheat;
text-align: right;
font-size: 1.5em;
color: #3a3c2e;
overflow: hidden;
box-shadow: inset 0 6px 1px 0 rgba(0, 0, 0, 0.35),
0 5px 5px rgba(0,0,0,0.5),
0 15px 25px rgba(0, 0, 0, 0.35);
user-select: none;
width: calc(100% - 16px);
}
.calculator .buttons span
{
position: relative;
padding: 10px;
margin: 6px;
min-width: 40px;
font-size: 1.1em;
display: flex;
justify-content: center;
align-items: center;
color: #999;
border: 2px solid #222;
border-radius: 6px;
background: linear-gradient(#555353,#363535);
box-shadow: inset 0 6px 1px 0 rgba(0, 0, 0, 0.35),
0 5px 5px rgba(0,0,0,0.5),
0 15px 25px rgba(0, 0, 0, 0.35);
cursor: pointer;
user-select: none;
}
.calculator .buttons span::before
{
content: '';
position: absolute;
inset: 5px 3px;
border-top: 1px solid #ccc;
filter: blur(2px);
}
.calculator .buttons span:active
{
box-shadow: inset 0 6px 1px 0 rgba(0, 0, 0, 0.35),
0 5px 5px rgba(0,0,0,0.5),
0 15px 25px rgba(0, 0, 0, 0.35);
color: #fff;
text-shadow: 0 0 5px #219cf3,
0 0 8px #219cf3;
}
.calculator .buttons span#clear
{
grid-column: span 2;
background: #ee1909;
color: #fff;
}
.calculator .buttons span#plus
{
grid-row: span 2;
background: orange;
color: #fff;
}
.calculator .buttons span#equal
{
grid-row: span 2;
background: rgb(25, 165, 25);
color: #fff;
}