-
Notifications
You must be signed in to change notification settings - Fork 0
/
calc.css
65 lines (65 loc) · 1.04 KB
/
calc.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
60
61
62
63
64
65
body{
font-family: 'Open Sans',sans-serif;
background: linear-gradient(to right ,IndianRed,DodgerBlue);
}
#container{
width: 1000px;
height: 550px;
margin: 20px auto;
}
#calculator{
width: 320px;
height: 520px;
background-color: silver;
margin: 0 auto;
top: 20px;
position: relative;
border-radius: 10px;
box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.4), 0 6px 20px 0 rgba(0, 0, 0, 0.4);
}
#result{
height: 120px;
border:3px solid silver;
background-color: white;
border-radius: 5%;
}
#history{
text-align: right;
height: 20px;
margin: 0 20px;
padding-top: 20px;
font-size: 15px;
color: #919191;
}
#output{
text-align: right;
height: 60px;
margin: 10px 20px;
font-size: 30px;
}
#keypad{
height: 400px;
}
.operator, .number{
width: 55px;
height: 55px;
margin: 12px;
float: left;
border-radius: 10%;
border-width: 0;
font-weight: bold;
font-size: 18px;
}
.number{
background-color: white;
}
.number, .operator{
cursor: pointer;
}
.operator:active, .number:active{
font-size: 10px;
}
#clear{
width: 66%;
border-radius: 5px;
}