-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.css
More file actions
78 lines (69 loc) · 1.33 KB
/
app.css
File metadata and controls
78 lines (69 loc) · 1.33 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
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
body{
text-align: left;
font-size: 19px;
font-family:arial;
letter-spacing: 1px;
line-height: 27px;
margin:0;
background-image: linear-gradient(red,blue);
}
a{
text-decoration:none;
}
#calculator-wrapper{
position:absolute;
width: 300px;
height: 400px;
top:calc(50vh - 200px);
left:calc(50vw - 150px);
border:1px solid #000;
background-color:#f3f3f3;
}
#display-wrapper{
text-align:right;
padding:9px;
}
#display{
font-size:44px;
margin-top:10px;
}
#clear {grid-area:clear;}
#divide {grid-area:divide;}
#multiply {grid-area:multiply;}
#subtract {grid-area:subtract;}
#add {grid-area:add;}
#equals {grid-area:equals;}
#zero {grid-area:zero;}
#one {grid-area:one;}
#two {grid-area:two;}
#three {grid-area:three;}
#four {grid-area:four;}
#five {grid-area:five;}
#six {grid-area:six;}
#seven {grid-area:seven;}
#eight {grid-area:eight;}
#nine {grid-area:nine;}
#decimal {grid-area:decimal;}
#button-wrapper{
display: grid;
grid-template-areas:
'clear divide multiply subtract'
'seven eight nine add'
'four five six add'
'one two three equals'
'zero zero decimal equals';
height:300px;
margin-top:17px;
border-top:1px solid #000;
}
#button-wrapper > div{
border:1px solid;
padding: 15px 0;
text-align: center;
font-size: 28px;
cursor: pointer;
transition:.4s;
}
#button-wrapper > div:hover{
background-color:#dbdbdb;
}