-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
95 lines (81 loc) · 1.9 KB
/
style.scss
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
@font-face {
font-family: calculatorFont;
src: url(./MesloLGS_NF_Italic.ttf);
}
$purple-background-color: #c7d2ff;
$green-background-color: rgb(123, 247, 86);
$button-color-hover-background: #fee48f;
$button-color-hover-border: #b18907;
$button-clear-background-color: orange;
$button-clear-border-color: red;
$button-clear-hover-color: rgb(239, 57, 57);
$border: 1px solid black;
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-color: #e4e7f4;
}
.container {
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.calculator {
aspect-ratio: 5 / 6;
background-color: rgb(133, 127, 127);
border: $border;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr 5fr;
margin-inline: auto;
.screen-container {
display: flex;
flex-direction: column;
align-items: center;
button {
width: 100%;
height: 100%;
font-family: calculatorFont;
font-size: min(4.5rem, 7.5vw, 7.5vh);
font-weight: bolder;
text-align: right;
padding: 0 2%;
border: $border;
color: black;
}
}
.buttons {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: repeat(5, 1fr);
button {
font-size: min(3.5rem, 6.5vw, 6.5vh);
border: $border;
color: black;
}
.purple-background {
background-color: $purple-background-color;
}
.green-background {
background-color: $green-background-color;
}
.button-clear {
background-color: $button-clear-background-color;
border-color: $button-clear-border-color;
}
.button-clear:hover {
background-color: $button-clear-hover-color;
cursor: pointer;
}
.change-on-hover:hover {
background-color: $button-color-hover-background;
border-color: $button-color-hover-border;
cursor: pointer;
}
}
}