-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.css
70 lines (60 loc) · 1.25 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
background: linear-gradient(to right, #ff00ff, #00ffff);
font-family: Montserrat;
}
.calculator-container {
display: grid;
justify-content: center;
align-content: center;
height: 100vh;
grid-template-columns: repeat(4, 100px);
grid-template-rows: minmax(120px, auto) repeat(5, 100px);
}
@media (max-width: 767px) {
.calculator-container {
margin: 80px;
grid-template-columns: repeat(4, 75px);
grid-template-rows: minmax(90px, auto) repeat(5, 70px);
height: auto;
}
}
.calculator-container button {
outline: none;
border: 1px solid #fff;
font-size: 2.5rem;
}
.calculator-container button:hover {
background-color: rgba(250, 250, 250, .7);
transition: .7s;
}
@media (max-width: 767px) {
.calculator-container button:hover {
background-color: rgb(221, 221, 221);
transition: 0s;
}
}
.calculator-container .display {
background-color: #000;
color: rgb(250, 250, 250);
font-size: 2rem;
grid-column: 1 / -1;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: flex-end;
padding: 10px;
}
.calculator-container .display p {
color: rgba(250, 250, 250, .8);
}
.calculator-container .spaced {
grid-column: span 2;
}