98 lines
2.1 KiB
CSS
98 lines
2.1 KiB
CSS
/* Modal container */
|
|
.modal {
|
|
display: none; /* Hidden by default */
|
|
position: fixed; /* Stay in place */
|
|
z-index: 1000; /* Sit on top */
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%; /* Full width */
|
|
height: 100%; /* Full height */
|
|
background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
|
|
align-items: center; /* Vertically center the modal */
|
|
justify-content: center; /* Horizontally center the modal */
|
|
}
|
|
|
|
/* Modal content */
|
|
.modal-content {
|
|
background-color: white;
|
|
margin: 15% auto; /* Center the modal */
|
|
padding: 20px;
|
|
border: 1px solid #888;
|
|
width: 80%; /* Adjust as needed */
|
|
height: 80%;
|
|
}
|
|
|
|
.qrcode-image {
|
|
object-fit: contain;
|
|
width: 80%; /* Adjust as needed */
|
|
height: 80%;
|
|
}
|
|
|
|
/* Close button */
|
|
.close {
|
|
color: black;
|
|
float: right;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
/* General Reset */
|
|
body {
|
|
margin: 0;
|
|
font-family: Arial, sans-serif;
|
|
display: flex; /* Ensure the body uses a flex container */
|
|
height: 100vh; /* Full viewport height */
|
|
}
|
|
|
|
/* Sidebar (Nav Links) */
|
|
.nav-links {
|
|
width: 250px; /* Set a fixed width for the sidebar */
|
|
background-color: #f4f4f4; /* Light gray background */
|
|
padding: 20px;
|
|
box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Add a slight shadow for separation */
|
|
display: flex;
|
|
flex-direction: column; /* Ensure items stack vertically */
|
|
justify-content: flex-start; /* Optional: adjust spacing of items */
|
|
min-height: 100vh; /* Stretch to full viewport height */
|
|
}
|
|
|
|
.nav-links nav ul {
|
|
list-style: none; /* Remove bullet points */
|
|
padding: 0;
|
|
}
|
|
|
|
.nav-links nav ul li {
|
|
margin: 10px 0; /* Add spacing between links */
|
|
}
|
|
|
|
.nav-links nav ul li a {
|
|
text-decoration: none; /* Remove underline */
|
|
color: #333;
|
|
}
|
|
|
|
.nav-links nav ul li a:hover {
|
|
color: #007BFF; /* Change link color on hover */
|
|
}
|
|
|
|
.content {
|
|
flex-grow: 1; /* Allow content to fill the remaining space */
|
|
padding: 20px;
|
|
}
|
|
|
|
.menu-icon {
|
|
cursor: pointer;
|
|
display: inline-block;
|
|
}
|
|
|
|
.menu-icon span {
|
|
display: block;
|
|
width: 25px;
|
|
height: 3px;
|
|
margin: 5px 0;
|
|
background: #fff;
|
|
transition: 0.4s;
|
|
}
|
|
|