-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinline_style_19.css
More file actions
183 lines (84 loc) · 2.48 KB
/
inline_style_19.css
File metadata and controls
183 lines (84 loc) · 2.48 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
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
.modal-documentation {
display: none;
position: fixed;
top: 50%; /* Center vertically */
left: 50%; /* Center horizontally */
transform: translate(-50%, -50%); /* Adjust for exact center */
width: 700px; /* Fixed width */
height: 500px; /* Fixed height */
padding: 20px;
background: white;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
overflow: hidden; /* Prevent scrolling on the modal itself */
z-index: 1000; /* Ensure modal is above everything */
}
.modal-content {
margin-top: 10px;
text-align: left;
padding: 10px;
height: calc(100% - 60px); /* Adjust height to fit within the modal */
overflow-y: auto; /* Enable vertical scrolling */
}
.modal-header {
position: relative; /* Ensure the close button is positioned relative to the header */
font-size: 20px;
font-weight: bold;
padding-bottom: 10px;
border-bottom: 1px solid #ccc;
}
.close-btnn {
position: absolute;
top: 0px;
right: 0px;
width: 30px;
height: 30px;
background: #ff4444;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
font-size: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
z-index: 1001;
}
.close-btnn:hover {
background: darkred; /* Darker red on hover for better UX */
}
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 999; /* Ensure overlay is below modal but above everything else */
}
/* Class to disable body scrolling when modal is open */
.body-no-scroll {
overflow: hidden;
}
/* Responsive modal for mobile */
@media (max-width: 768px) {
.modal-documentation {
width: 90%; /* Almost full width */
height: 80%; /* Almost full height */
padding: 15px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.modal-content {
height: calc(100% - 60px); /* Keep scrolling for content */
}
.modal-header {
font-size: 18px;
}
.close-btnn {
width: 28px;
height: 28px;
font-size: 18px;
}
}