-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculator.css
92 lines (82 loc) · 1.75 KB
/
calculator.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
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
#calc{
margin:auto;
display: flex;
border:solid 6px black;
height: 600px;
width: 600px;
border-radius: 5px;
background-color: gray;
flex-wrap: wrap;
box-shadow: 0 0 1rem black;
margin-top: 5rem;
}
#screen{
font-size: 4rem;
margin-top: 0.3rem;
margin-left: 0.6rem;
border:solid 2px white;
height: 5rem;
width:36rem;
border-radius: 5px;
text-align: right;
background-color:rgba(213, 218, 219,0.6);
color: white;
box-shadow: 0 0 1rem black;
overflow: hidden; /* this make the content out of box hidden */
overflow-wrap: break-word; /* made last overflown element visible disappear */
}
#nums{
display: flex;
margin-left: 5px;
flex-wrap: wrap;
border:solid 3px white;
height: 27rem;
width:26rem;
border-radius: 5px;
}
.numbers{
margin-left: 5px;
margin-top: 4px;
border:solid 2px white;
height: 6rem;
width:8rem;
border-radius: 5px;
font-size: 3rem;
text-align: center; /* -------------this and next one make content centered vertically by making lineheight equal to height*/
line-height: 6rem;
box-shadow: 0 0 1rem black;
}
.numbers:hover{
transform: scale(1.05);
}
#operations{
margin-left: 8px;
display: flex;
flex-wrap: wrap;
border:solid 3px white;
height: 27rem;
width:9.7rem;
border-radius: 5px;
}
.ops{
margin-left: 5px;
margin-top: 4px;
margin-right: 2px;
border:solid 2px white;
height: 4rem;
width:4rem;
border-radius: 5px;
text-align: center; /* -------------this and next one make content centered vertically by making lineheight equal to height*/
line-height: 6rem;
box-shadow: 0 0 1rem black;
text-align: center;
line-height: 4rem;
font-size: 2rem;
}
.ops:hover{
transform: scale(1.05);
}
.playing {
border-color: #ffc600;
box-shadow: 0 0 1rem #ffc600;
}