-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
144 lines (113 loc) · 2.43 KB
/
index.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
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
* {
text-align: center;
justify-content: center;
justify-items: center;
align-items: center;
align-content: center;
margin: auto;
border: none;
font-family: 'Reem Kufi', sans-serif;
}
body {
background-image: linear-gradient(#fc384848, #27293fb9, #27292fb9), url(inspiration.png);
height: 100vh;
background-position: center;
background-size: cover;
display: flex;
background-repeat: no-repeat;
background-size: cover;
}
.calc {
display: inline-block;
background-color: #27293f;
width: 28.8rem;
height: 45rem;
transform: scale(0.8);
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
table {
margin: auto;
background: #27293f;
}
input {
color: #ffd9e0;
background: linear-gradient(#fe3667, #fc3847);
border: none;
font-size: 7vh;
width: 28.8rem;
height: 14rem;
}
button {
font-size: 3.5vh;
background-color: #27293f;
background: transparent;
border: none;
width: 6.5rem;
height: 4.8rem;
}
button:hover {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
button:active {
box-shadow: 0 12px 16px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
}
#operator button {
color: #cccdd1;
}
#first td button {
color: #515579;
}
#numbers td:not(#operator) button {
color: #ad315e;
}
/*Mobile */
@media only screen and (min-width: 300px) {
button {
font-size: 4vh;
}
.calc {
transform: scale(1.8);
float: center;
}
body {
transform: scale(0.3);
}
}
/* Tablet */
@media only screen and (min-width: 768px) {
button {
font-size: 3vh;
}
.container {
transform: scale(1.5);
}
}
/* Desktop */
@media only screen and (min-width: 992px) {
button {
font-size: 2vh;
}
.container {
transform: scale(3);
float: center;
}
}
/* Huge */
@media only screen and (min-width: 1280px) {
button {
font-size: 3.6vh;
}
.container {
transform: scale(1.39);
float: center;
}
}
@media only screen and (min-width: 2000px) {
button {
font-size: 2vh;
}
.container {
transform: scale(4);
float: center;
}
}