-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
85 lines (73 loc) · 1.37 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
83
84
85
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin, padding and fix font */
* {
margin: 0;
padding: 0;
font: inherit;
}
/*
Typographic tweaks!
Add accessible line-height
Improve text rendering
*/
body {
line-height: 1.5;
}
:root {
--clr-primary-100: rgb(228, 226, 226);
--clr-primary-300: rgb(184, 183, 183);
--clr-primary-400: rgb(151, 151, 151);
--clr-primary-500: rgb(128, 128, 128);
--clr-primary-700: rgb(56, 56, 56);
--clr-alternate-400: rgb(255, 187, 0);
--fs-300: 3rem;
--fs-600: 6rem;
}
#calculator {
display: grid;
grid-template-columns: repeat(4, 1fr);
width: 50rem;
height: 70rem;
margin: 5rem auto 0 auto;
gap: 0.5rem;
background-color: var(--clr-primary-700);
padding: 1.5rem;
}
#displayBar {
grid-column: 1 / 5;
font-size: var(--fs-600);
text-align: right;
background-color: var(--clr-primary-100);
padding: 1rem;
overflow: hidden;
text-overflow: ellipsis;
}
.bigButton {
grid-column: 1 / 3;
}
button {
background-color: var(--clr-primary-400);
border: var(--clr-primary-500);
font-size: var(--fs-300);
}
#displayBar,
#calculator,
button {
border-radius: 1.5rem;
}
.clr-orange {
background-color: var(--clr-alternate-400);
}
.clr-lgrey {
background-color: var(--clr-primary-300);
}
button:hover {
filter: brightness(0.9);
}
button:active {
filter: brightness(0.7);
}