-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcal.css
94 lines (76 loc) · 1.89 KB
/
cal.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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.calculator {
border: 1px solid #060606;
border-radius: 6px;
padding: 20px;
}
input {
width: 100%;
font-size: 24px;
padding: 5px;
margin-bottom: 10px;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
button {
font-size: 20px;
padding: 10px;
background-color: #e80088;
border: 1px solid #0a0c0c;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #0fa2c1;
}
body {
margin: 0;
padding: 0;
overflow: hidden; /* Prevents scrollbars */
}
.background-image {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1; /* Set the z-index to position the background below other content */
background-image: url("dark.jpg"); /* Replace 'your-background-image.jpg' with your image file */
background-size: cover; /* Adjust background size as needed */
}
.calculator {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(256, 255, 255, 0.8); /* Background color for the calculator */
padding: 20px;
border-radius: 10px;
text-align: center;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
z-index: 2; /* Set the z-index to position the calculator above the background */
}
#display {
width: 100%;
font-size: 24px;
margin-bottom: 10px;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
/* Add more CSS styles for your calculator buttons as needed */
.author {
font-size: 24px;
color: #00254e; /* Text color for the author information (white) */
}