-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.scss
137 lines (120 loc) · 2.51 KB
/
styles.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: linear-gradient(#647AAF, #092659);
width: 100vw;
height: 100vh;
background-repeat: no-repeat;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
}
#screenContainer {
height: 150px;
background: linear-gradient(90deg, rgba(2,0,36,0.15) 0%, rgba(9,9,121,0.15) 35%, rgba(0,212,255,0.15) 100%);
border: 1px solid black;
border-radius: 15px;
margin-bottom: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-end;
font-size: 40px;
font-family: "Courier New";
}
#screenInput, #screenOutput {
height: 50%;
color: white;
}
#calculator {
display: flex;
flex-direction: column;
padding: 10px;
border: 5px solid black;
border-radius: 15px;
background: linear-gradient(#647AAF, #092659);
width: 30vw;
height: 70vh;
}
#buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(5, 1fr);
column-gap: 2px;
row-gap: 2px;
width: 100%;
height: 100%;
font-family: 'Courier New', Courier, monospace, sans-serif;
}
.buttons {
font-size: 40px;
box-shadow: inset 0px 1px 0px 0px #bbdaf7;
background: rgb(2,0,36);
border-radius: 6px;
color: white;
font-family: 'Courier New', Courier, monospace, sans-serif;
}
.specialButtons {
font-size: 40px;
font-family: 'Courier New', Courier, monospace, sans-serif;
box-shadow: inset 0px 1px 0px 0px #bbdaf7;
background: rgb(2,0,36);
border-radius: 6px;
color: #B22222;
}
.buttons:hover {
cursor: pointer;
opacity: 70%;
transform: scale(1.1, 1.1);
}
#ac {
grid-column: 1 / 2;
}
#delete {
grid-column: 3 / 4;
grid-row: 1 / span 1;
}
#multiply {
grid-column: 4 / span 1;
grid-row: 2 / span 1;
}
#divide {
grid-column: 4 / span 1;
grid-row: 3 / span 1;
}
#subtract {
grid-column: 4 / span 1;
grid-row: 4 / span 1;
}
#equals {
grid-column: 3 / span 2;
grid-row: 5 / span 1;
background-color: #006400;
color: white;
}
#decimalPoint {
grid-column: 1 / span 1;
grid-row: 5 / 5;
}
#zero {
grid-column-start: 2;
grid-row-start:5;
}
// For use with button as part of pressing down animation.
.pressed {
transform: matrix(0.95, 0, 0, 0.95, 0, 0);
}
// Media Query for responsiveness
@media screen and (max-width: 1200px) {
#calculator {
display: flex;
flex-direction: column;
padding: 10px;
width: 90vw;
height: 90vh;
}
}