-
-
Notifications
You must be signed in to change notification settings - Fork 967
Expand file tree
/
Copy pathstyles.css
More file actions
53 lines (52 loc) · 1.22 KB
/
styles.css
File metadata and controls
53 lines (52 loc) · 1.22 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
/* enter stlyes here */
.calculator_grid_container {
width: 100%;
height: 100vh;
background: linear-gradient(to right, yellow, green, yellow);
display: grid;
place-items: center;
}
.calculator_grid {
display: grid;
margin-top: 2rem;
grid-template-columns: repeat(4, 6rem);
grid-template-rows: minmax(7rem, auto) repeat(5, 6rem);
}
.calculator_grid > button {
cursor: pointer;
border: 0;
outline: 0;
border-radius: 10px;
box-shadow:
-8px -8px 15px rgba(255, 255, 255, 0.1),
5px 5px 15px rgba(0, 0, 0, 0.2);
background: white;
}
.calculator_grid > button:hover,
.calculator_grid > button:focus {
background-color: rgba(255, 255, 255, 0.9);
}
.calculator_grid .span_two {
grid-column: span 2;
}
.calculator_grid .output {
grid-column: 1/ -1;
background-color: rgba(0, 0, 0, 0.75);
display: flex;
flex-direction: column;
align-items: flex-end;
justify-content: space-around;
padding: 0.75rem;
word-wrap: break-word;
word-break: break-all;
border-top-right-radius: 10px;
border-top-left-radius: 10px;
}
.calculator_grid .output .previous_operand {
color: rgba(255, 255, 255, 0.75);
font-size: 1.5rem;
}
.calculator_grid .output .current_operand {
color: white;
font-size: 2.5rem;
}