-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
87 lines (78 loc) · 2.24 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
* {
box-sizing: border-box;
font-family: roboto, sans-serif;
}
.calculator {
width: 350px;
height: 550px;
background: #3a4655;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 8px 50px -7px black;
border: solid 1px #3A4655;
.calculator-screen {
height: 30%; /* 165px */
padding: 20px;
.operation {
height: 35%;
padding-top: 15px;
padding-left: 5px;
padding-right: 5px;
border-bottom: #727B86 dotted 1px;
color: #727B86;
direction: rtl;
font-size: 21px;
}
input.result {
padding: 25px 10px 5px;
font-size: 45px;
color: #FFF;
text-align: end;
background: inherit;
width: 100%;
border: none;
margin-top: 10px;
}
}
.calculator-buttons {
height: 70%;
width: 100%;
.buttons-row {
height: 19.6%;
width: 100%;
margin-bottom: 2px;
display: flex;
.button {
border: none;
height: 100%;
width: 24.5%;
margin-left: 2px;
background: #404D5E;
vertical-align: middle;
text-align: center;
font-size: 25px;
color: #FFF;
padding-top: 23px;
cursor: pointer;
outline: none;
transition: 0.2s all;
/* Adding transformation when the button is active */
&:active {
transform: scale(0.98);
/* Scaling button to 0.98 to its original size */
box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
/* Lowering the shadow */
}
&:hover {
background: red;
box-shadow:
0 0 60px 2px red, /* inner white */
0 0 100px 3px red, /* middle magenta */
0 0 140px 5px red; /* outer cyan */
}
}
}
}
}