NepaliCNN / static /style /popup.css
pujan paudel
first commit
1a11305
.popup {
display: none;
/* Initially hide the modal */
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
/* Transparent background with slight opacity */
text-align: center;
z-index: 10;
/* Ensure modal stays above other content */
}
.popup.active {
display: block;
/* Show the modal when the 'active' class is added */
}
.top-bar {
position: absolute;
top: 10px;
right: 10px;
}
.close-btn {
color: red;
font-size: 36px;
font-weight: bold;
cursor: pointer;
transition: 0.3s ease;
}
.close-btn:hover {
color: #f1f1f1;
}
.large-image {
max-width: 100%;
max-height: 100%;
margin: auto;
margin-top: 12px;
margin-bottom: 12px;
display: block;
}
.image {
cursor: pointer;
}