-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
60 lines (55 loc) · 1.5 KB
/
style.css
File metadata and controls
60 lines (55 loc) · 1.5 KB
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
/* Dark theme for modal background */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8); /* Dark semi-transparent background */
justify-content: center;
align-items: center;
}
/* Modal content with relative sizing */
.modal-content {
background: #333; /* Dark gray */
color: #f5f5f5; /* Light text for contrast */
padding: 20px;
border-radius: 5px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Darker shadow */
width: 50%; /* Modal width relative to window size */
max-width: 500px; /* Maximum width */
position: relative; /* For absolute positioning of the close button */
}
/* Header section with centered title and separating line */
.modal-header {
text-align: center; /* Centered title */
padding-bottom: 10px; /* Spacing below the title */
border-bottom: 1px solid #666; /* Line to separate header and content */
display: flex;
justify-content: center;
}
/* Dark theme for close button */
.close-btn {
background: transparent;
border: none;
color: #f5f5f5; /* Light color for visibility */
font-size: 1.5rem;
cursor: pointer;
position: absolute; /* Position close button in top-right corner */
top: 10px;
right: 10px;
}
/* Hover effect for close button */
.close-btn:hover {
color: #ff4c4c; /* Red to indicate closure */
}
/* Style for the "Open Modal" button */
button {
background: #333;
color: #f5f5f5;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}