-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
91 lines (79 loc) · 1.61 KB
/
style.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
body {
background-color: aliceblue;
box-sizing: border-box;
padding: 0;
margin: 0;
/* main */
display: flex;
align-items: center;
justify-content: center;
height: 75vh;
min-height: 500px;
padding: 10px;
margin-top: 50px;
}
#calculator {
width: 400px;
border: solid;
border-radius: 15px;
padding: 20px;
background-color: rgba(105, 109, 133, 0.84);
box-shadow: 3px 3px 5px 3px rgba(0,0,0,0.5);
}
#screen {
padding: 10px 20px;
border: solid;
border-radius: 5px;
margin-bottom: 20px;
background-color: rgb(149, 199, 149);
font-size: 40px;
min-width: 200px;
min-height: 100px;
}
#second-display {
min-width: 50px;
min-height: 50px;
font-size: 25px;
text-align: right;
word-wrap: break-word;
word-break: break-all;
}
#display {
text-align: right;
word-wrap: break-word;
word-break: break-all;
}
.all-buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
#equals {
grid-column: span 2;
}
button {
padding: 20px;
border: solid;
border-radius: 40px;
font-size: 25px;
box-shadow: 2px 1px 4px 0px rgba(0,0,0,0.5);
}
button:hover {
background-color: azure;
}
button:active {
background-color: rgb(193, 203, 203);
box-shadow: none;
transform: translateY(4px);
}
#operators, #equals{
background-color: rgb(67, 124, 185);
border-color: black;
color: white;
}
#operators:hover, #equals:hover {
background-color: rgb(49, 87, 128);
}
#operators:active, #equals:active {
background-color: rgb(82, 152, 226);
}