Files
FOFTickets/public/styles.css
2024-12-21 00:29:45 -05:00

100 lines
2.0 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;
}
.navbar {
position: relative;
background: #333;
color: #fff;
display: inline-block;
align-items: center;
padding: 0.5rem 1rem;
top:0;
left:0;
}
.menu-icon {
cursor: pointer;
display: inline-block;
}
.menu-icon span {
display: block;
width: 25px;
height: 3px;
margin: 5px 0;
background: #fff;
transition: 0.4s;
}
.nav-links {
list-style: none;
margin: 0;
padding: 0;
display: none; /* Hidden by default; shown when .active */
position: absolute;
top: 100%; /* Appear below the navbar */
left: 0; /* Aligned left under the hamburger */
width: 200px; /* Fixed width for the dropdown panel */
background: #333;
box-shadow: 0 2px 8px rgba(0,0,0,0.4); /* Optional shadow for a "dropdown" effect */
border-radius: 4px; /* Slight rounding for a nicer look */
}
.nav-links li {
border-bottom: 1px solid #444;
}
.nav-links li:last-child {
border-bottom: none; /* No border on the last item */
}
.nav-links li a {
color: #fff;
text-decoration: none;
display: block;
padding: 0.75rem 1rem;
white-space: nowrap; /* Prevent awkward text wrapping */
}
/* Show the nav-links when .active is toggled by JavaScript */
.nav-links.active {
display: block;
}