Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
148 lines (140 loc) · 3.1 KB
/
Copy pathstyles.css
File metadata and controls
148 lines (140 loc) · 3.1 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
@import url("https://fonts.googleapis.com/css?family=Lobster|Orbitron");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: url("computer-cup-desk-434337.jpg") no-repeat;
background-size: cover;
background-position: center;
height: 100vh;
}
/* --- Header section --- */
header h1 {
letter-spacing: 5px;
position: absolute;
font-size: 4rem;
font-family: "Lobster", cursive;
color: rgb(255, 255, 255);
text-shadow: 1px 1px 10px rgb(252, 178, 178);
top: 10px;
left: 50%;
transform: translate(-50%, 0%);
}
/* --- Calculator section --- */
.calculator {
box-shadow: 0 0 10px rgb(151, 151, 151);
width: 500px;
height: 600px;
position: absolute;
top: 15%;
left: 50%;
transform: translate(-50%, 0%);
background: #dae6ff;
border-radius: 8px;
position: relative;
}
.calculator .screen {
width: 80%;
height: 80px;
background: rgb(250, 250, 250);
padding-right: 7px;
text-align: right;
font-size: 2.5rem;
margin-top: 40px;
margin-bottom: 5px;
margin-left: 50px;
font-family: "Orbitron", sans-serif;
outline: none;
border: none;
box-shadow: -1px -1px 4px #333;
border-radius: 5px;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* --- Power indicator section --- */
.power-indicator {
position: absolute;
right: 10%;
top: 1.5%;
}
/* On / Off light */
.power-light {
width: 20px;
height: 20px;
border-radius: 50%;
box-shadow: 0 -1px 2px #333;
background: #fff;
display: inline-block;
margin-right: 15px;
}
.power-indicator #off-light {
background: rgb(253, 122, 99);
}
/* --- Calculator Pads section --- */
.num-pad {
position: absolute;
top: 21%;
left: 11%;
}
/* Number pad */
.num-pad .button-pad {
width: 80px;
height: 80px;
border: none;
outline: none;
background: rgba(255, 255, 255);
color: #fff;
text-shadow: 0px 0px 4px #222;
font-weight: bold;
font-size: 2em;
letter-spacing: 2px;
margin: 6px 7px;
border: 0.7px solid rgb(253, 224, 93);
border-radius: 15px;
box-shadow: 0px 3px 3px #555;
cursor: pointer;
font-family: "Orbitron", sans-serif;
transition: all 0.2s ease-out;
}
.num-pad #btn-equal {
width: 175px;
}
.num-pad #btn-decimal {
background: rgb(255, 243, 135);
}
.num-pad .operator {
background: rgb(173, 255, 148);
}
.num-pad .num {
background: rgb(138, 185, 255);
}
.num-pad #btn-delete {
background: rgb(255, 243, 135);
}
.num-pad #btn-clear-entry {
background: rgb(255, 187, 131);
}
.num-pad .power-off-red {
color: #fc2222;
text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 10px rgb(255, 135, 135),
0 0 15px rgb(255, 135, 135), 0 0 20px rgb(255, 135, 135),
0 0 25px rgb(255, 135, 135);
background: #fff;
}
.num-pad .button-pad:active {
transform: translateY(3px);
box-shadow: 0px 1px 1px #555;
}
/* --- JavaScript classList --- */
.num-pad .power-on-blue {
color: rgb(57, 60, 255);
text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 10px rgb(100, 148, 253),
0 0 15px rgb(100, 148, 253), 0 0 20px rgb(100, 148, 253),
0 0 25px rgb(100, 148, 253);
background: #fff;
}