-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
103 lines (83 loc) · 1.82 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
91
92
93
94
95
96
97
98
99
100
101
102
103
*{
box-sizing: border-box;
}
#calculator {
width: 45%;
height: 80%;
min-width: 300px;
min-height: 400px;
background-color: var(--light-grey);
margin: auto;
margin-top: 80px;
border: 2px solid var(--light-grey);
border-radius: var(--border-radius);
padding: 10px;
}
:root {
--border-radius: 5px;
--border-width: 1px;
background-image: url("https://source.unsplash.com/1600x1200/?/rainy-forest,beach-at-night");
--light-grey: #e2e0e03e;
--blue: #7f6cfc;
--orange: #ffc97746;
--red: #c14444;
}
#calculator h1 {
color: rgb(0, 0, 0);
text-transform: uppercase;
text-align: center;
padding: 10px;
}
#calculator h1:hover{
background-color: white;
}
#display-container {
font-size: 2.8rem;
display: flex;
align-items: flex-end;
justify-content: flex-end;
color: black;
width: 100%;
height: 20%;
min-height: 100px;
border-radius: var(--border-radius);
background-color: rgba(255, 255, 255, 0.479);
margin-bottom: 10px;
}
#display-container p {
margin: 0.5rem;
vertical-align: text-bottom;
}
#buttons-container{
width: 100%;
height: 60%;
min-height: 300px;
border: var(--border-width) solid var(--light-grey);
border-radius: var(--border-radius);
background-color: rgba(255, 255, 255, 0);
display: flex;
flex-flow: row wrap;
justify-content: space-around;
}
.button {
width: 25%;
height: 20%;
min-height: 60px;
display: flex;
align-items: center;
justify-content: center;
border: var(--border-width) solid var(--light-grey);
font-size: 1.8rem;
cursor: pointer;
transition-duration: 1s;
}
.button:hover {
background-color: rgb(0, 55, 237);
}
.red:hover {
background-color: rgb(255, 0, 132)
/* color: white; */
}
#button-zero {
width: 50%;
}