-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
82 lines (69 loc) · 1.2 KB
/
style.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
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Rubik:wght@400;500;600;700;800&display=swap");
*,
*::before,
*::after {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
font-size: 62.5%;
}
body {
font-family: "Roboto", sans-serif;
font-weight: 400;
line-height: 1;
color: 1;
}
.calculator {
width: 60rem;
margin: 5rem auto;
display: grid;
grid-template-columns: repeat(4, 1fr);
border-radius: 4px;
overflow: hidden;
}
button {
border: none;
outline: none;
padding: 2.4rem 6.4rem;
border: 1px solid #ddd;
cursor: pointer;
font-size: 2rem;
/* border-collapse: collapse; */
}
.btn-equal {
grid-column: 3 / span 2;
background-color: #7048e8;
color: #fff;
font-size: 3.2rem;
}
.btn-clear,
.btn-clearOne {
background-color: #7048e8;
color: #fff;
}
.btn-clear {
grid-column: span 2;
}
.btn-operation {
font-size: 2.4rem;
color: #343a40;
}
.prevEl,
.currentEl {
height: 5rem;
grid-column: 1/-1;
display: flex;
flex-direction: row-reverse;
align-items: center;
font-size: 2rem;
padding: 3.2rem 1.8rem;
}
.currentEl {
background-color: #cbeee5;
font-size: 3.2rem;
}
.prevEl {
background-color: #edf2ff;
}