-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
82 lines (70 loc) · 1.33 KB
/
style.css
File metadata and controls
82 lines (70 loc) · 1.33 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
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans&display=swap');
:root{
--grey-one: #2b2d2f;
--grey-two: #52565e;
}
*{
padding: 0;
margin: 0;
box-sizing: border-box;
}
body{
background-color: #008374;
}
.calculator{
font-family: 'Nunito Sans', sans-serif;
border: 1px solid wheat;
max-width: 600px;
width: 90%;
margin: 0 auto;
margin-top: 3rem;
}
.display{
height: 5.5rem;
background-color: #fff;
text-align: right;
font-size: 3rem;
padding: 0.8rem 0.5rem;
overflow: hidden;
}
.inputs{
display: flex;
color: #fff;
height: 50vh;
font-size: 1.5rem;
}
.numbers{
background-color: var(--grey-one);
padding: 0.8rem;
width: 80%;
display: grid;
grid-template-columns: repeat(3, 1fr);
justify-content: space-between;
align-items: center;
text-align: center;
}
.operations{
background-color: var(--grey-two);
padding: 2.5rem 0.8rem;
width: 20%;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
.numbers >*, .operations >*{
cursor: pointer;
}
/* Media Queries */
@media(max-width: 599px){
.inputs{
height: 55vh;
}
.display{
font-size: 2rem;
padding-top: 1.5rem;
}
.calculator{
width: 95%;
}
}