-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
83 lines (72 loc) · 1.85 KB
/
styles.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
body {
font-family: 'Helvetica', sans-serif;
background-image: url('https://www.pixelstalk.net/wp-content/uploads/2016/06/Best-HD-Backgrounds-Photos-Download.jpg'); /* Replace 'background.jpg' with the path to your image */
background-size: cover; /* Adjust the size of the background image to cover the entire viewport */
background-position: center; /* Center the background image */
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.calculator {
background-color: rgba(51, 51, 51, 0.5); /* Set the calculator background color with an alpha value for transparency */
border-radius: 10px;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}
.display {
width: 100%;
height: 60px;
font-size: 24px;
text-align: right;
padding: 10px;
margin-bottom: 10px;
border: none;
border-radius: 5px;
background-color: #444444;
color: white;
}
.buttons {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-gap: 10px;
}
button {
width: 100%;
height: 60px;
font-size: 18px;
border: none;
border-radius: 5px;
cursor: pointer;
background-color: rgba(51, 51, 51, 0.5); /* Set the button background color with an alpha value for transparency */
color: white; /* Set text color to white for better visibility */
}
.operator {
background-color: #333333;
color: white;
}
.special {
background-color: #FFD700;
color: black;
}
.clear {
background-color: green;
color: white;
}
.backspace {
background-color: blue;
color: white;
}
.equals {
background-color: black;
color: white;
}
.end {
background-color: red;
color: white;
}
.grey {
background-color: grey;
color: white;
}