-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
82 lines (68 loc) · 1.25 KB
/
main.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
/* CSS COLOR CODES
BlUE: #007bff
RED #dc3545
YELLOW #ffc107
INFO #17a2b8
GREEN: #28a745
*/
.text-center {
text-align: center;
}
.calc-title {
color: green;
}
.calc-wrapper {
border: 1px solid black;
padding: 25px;
margin: 20px;
width: 60%;
margin: auto;
}
.input-control {
height: 25px;
border: .5px solid grey;
border-radius: 3px;
width: calC(100% - 8px);
}
.result {
border: .5px solid grey;
padding: 4px;
margin-top: 4px;
border-radius: 3px;
}
/* Calculator buttons CSS */
.c-table {
width: 100%;
}
.c-cell {
border: .5px solid grey;
border-radius: 3px;
padding: 6px;
/* Change the mouse cursor to a hand shaped pointer */
cursor: pointer;
}
/* Whenever pointer enters the boundaries of an element, that element trigger hover event
and a class disegnated with :hover will be called */
.c-cell:hover {
background-color: lightgray;
}
.c-cell-equal:hover {
background-color: green;
color: white;
}
.c-cell-color:hover {
background-color: #ffc107;
color: white;
}
.c-number-color:hover {
background-color: #17a2b8;
color: white;
}
.c-symbol-color:hover {
background-color: #dc3545;
color: white;
}
.c-decimal-color:hover {
background-color: #007bff;
color:
}