-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.css
59 lines (52 loc) · 1.01 KB
/
index.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
html {
width: 100%;
height: 100%;
}
body {
font-family: monospace;
width: 100%;
height: 100%;
margin: 0;
box-sizing: border-box;
padding: 5px;
}
#calculator {
display: grid;
height: 100%;
width: 100%;
grid-template: repeat(6, 1fr) / repeat(4, 1fr);
}
#calculator .result-container {
grid-column: 1 / span 4;
border: 2px solid black;
border-radius: 10px;
background: rgb(31, 29, 29);
color: white;
position: relative;
margin-bottom: 5px;
padding: 5px;
}
#calculator .result-container #result {
position:absolute;
right:5px;
font-size: x-large;
font-weight: bold;
}
#calculator .result-container #operation {
position: absolute;
top: 2px;
left: 2px;
font-weight: bold;
}
#calculator button{
border-radius: 10px;
outline: none;
margin: 1px;
}
#calculator #equals {
grid-column-start: 4;
grid-row: 3 / span 4;
}
#calculator #clear {
grid-column: 2 / span 2;
}