-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.css
118 lines (101 loc) · 1.88 KB
/
calculator.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
* {
user-select: none;
font-family: "Roboto", sans-serif;
font-size: 120%;
line-height: 5%;
}
body {
width: 100vw;
max-width: 100%;
padding-top: 30px;
margin: 0;
background-color: #fff;
opacity: 1;
background-image: radial-gradient(#e1d3d3 1.1500000000000001px, #fff 1.1500000000000001px);
background-size: 23px 23px;
}
p.input {
padding: 0 20px;
text-align: right;
}
p.log {
padding: 0 20px;
text-align: right;
color: rgb(51, 50, 51);
font-size: 80%;
font-style: italic;
}
div.calculatorContainer {
position: relative;
width: 462px;
height: 680px;
background-color: #000000;
background: linear-gradient(to bottom right, #000000, #505050);
border-radius: 35px;
margin: auto;
box-shadow: 3px 3px 35px #000000;
}
div.screen {
position: absolute;
width: 340px;
height: 90px;
background-color: #99aed6;
border-radius: 20px;
margin-left: 65px;
margin-top: 40px;
box-shadow: inset 1px -1px 8px #f67750;
}
div.buttons {
position: absolute;
width: 360px;
height: 470px;
margin-left: 55px;
margin-top: 150px;
}
button {
margin-left: 10px;
margin-top: 20px;
width: 72px;
height: 72px;
border: none;
border-radius: 35px;
color: #000000;
box-shadow: 3px 3px 35px #000000;
outline-style: none;
}
button.reset {
background-color: rgb(218, 61, 61);
}
button.equals {
background-color: #CD6839;
}
button.percentage {
background-color: #505050;
}
button.operator {
background-color: #c69a9a;
}
button.number {
background-color: #C0C0C0;
}
button:hover {
background-color: rgb(232, 152, 78);
transition: 0.2s;
cursor: pointer;
}
button:active {
width: 67px;
height: 67px;
margin-left: 15px;
margin-bottom: -500px;
font-size: 110%;
}
/* Media query for tablets and smaller devices */
/* @media only screen and (max-width: 472px) {
body{
background-color: red;
}
p{
color: red;
}
} */