-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.css
130 lines (98 loc) · 2.43 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
@font-face {
font-family: 'digital-7regular';
src: url('digital-7-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}
.container {
font-size: 2rem;
width: 400px;
height: 500px;
display: grid;
grid-template-columns: repeat(4, 25%);
grid-template-rows: repeat(5, 16.5%);
border: 5px solid black;
margin-top: 10%;
margin: auto;
grid-gap: 1px;
}
body {
font-family: sans-serif;
}
.display {
font-family: 'digital-7regular';
grid-column: 1/ 5;
margin-right: 5%;
margin-top: 2.5%;
margin-bottom: 2.5%;
text-align: right;
}
#sum {
}
#input {
font-size: 3rem;
}
#clear {
grid-column: 1/ 4;
background-color: #202325;
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
#clear:hover{
background-color: #202325ad;
}
#num0 {
grid-column: 1/ 3;
background-color: #202325;
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
#num0:hover {
background-color: #202325ad;
}
#num1, #num2, #num3, #num4, #num5, #num6, #num7, #num8, #num9 {
background-color: #202325;
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
#num1:hover, #num2:hover, #num3:hover, #num4:hover,
#num5:hover, #num6:hover, #num7:hover, #num8:hover, #num9:hover {
background-color: #202325ad;
}
#display {
background-color: lightgrey;
}
#plus, #minus, #times, #divide, #equals {
background-color: #4C5796;
color: white;
display: flex;
align-items: center;
justify-content: center;
margin-right: 3%;
font-weight: bold;
cursor: pointer;
}
#plus:hover, #minus:hover, #times:hover, #divide:hover, #equals:hover {
background-color: #4C5796ad;
}
#decimal {
grid-column: 3/4;
background-color: #202325;
color: white;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
#decimal:hover {
background-color: #202325ad;
}