-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathmain.css
139 lines (117 loc) · 2.27 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
127
128
129
130
131
132
133
134
135
136
137
138
139
html, body {
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
height: 100%;
width:100%;
padding: 0;
margin: 0;
overflow-x: hidden;
}
/* used white colour for foreground so that disabled button is not visible to the screen */
button:disabled{
color: #fa0000;
}
/* made the hover background color to white so the annoying hover in empty space is removed */
button:disabled:hover{
color:white;
background-color:rgb(128, 255, 255);
}
.noHover{
pointer-events: none;
}
body {
font-family: monospace;
background-image: linear-gradient(to left, lightpink, lightblue);
}
h1 {
padding: 25px;
margin: 20px;
text-align: center;
}
.container {
justify-content: center;
align-items: center;
margin: auto;
height: 410px;
width: 340px;
box-shadow: 6px 8px 2px grey;
background: white;
border-radius: 10px;
}
.output {
position: relative;
top: 20px;
text-align: center;
}
input {
text-align: end;
padding: 8px;
font-size: 25px;
}
#display {
outline: none;
width: 280px;
height: 40px;
background: #f1f1f1;
border-radius: 10px;
border-color: none;
border: none;
}
.keyboard {
position: relative;
top: 40px;
text-align: center;
}
/* it Removes Outline of all Button */
*:focus {
outline: 0 !important;
}
button {
font-family: sans-serif;
font-weight: bolder;
font-size: 22px;
color:"black";
background: white;
border: none;
margin: 6px;
padding: 12px;
outline: none;
border-radius: 50%;
width: 49px;
height: 45px;
line-height:normal;
}
button:nth-child(1) {
background: lightgrey;
}
button:nth-child(2) {
font-weight: 550;
background: lightgrey;
}
button:nth-child(3) {
background: lightgrey;
}
button:nth-child(4) {
background: lightgreen;
}
button:nth-child(8) {
background: aqua;
}
button:nth-child(12) {
padding: 0px;
font-size: 30px;
font-family: monospace;
background: orange;
}
button:nth-child(16) {
background: pink;
font-size: 25px;
}
button:nth-child(20) {
background: yellow;
}
button:hover {
background: rgb(247 230 236);
}