kokjan/frontend/web/css/popup2.css

53 lines
952 B
CSS
Raw Normal View History

2026-02-25 06:59:34 +00:00
/* สไตล์สำหรับ popup */
.popup {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 90%;
max-height: 90%;
z-index: 1000;
border-radius: 5px;
overflow: hidden;
}
/* สไตล์สำหรับ overlay */
.overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 999;
}
/* สไตล์สำหรับปุ่มปิด */
.close-btn {
position: absolute;
top: 10px;
right: 10px;
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
width: 30px;
height: 30px;
border-radius: 50%;
font-size: 18px;
cursor: pointer;
z-index: 1001;
}
.close-btn:hover {
background-color: rgba(0, 0, 0, 0.8);
}
/* สไตล์รูปภาพใน popup */
.popup-image {
max-width: 100%;
max-height: 90vh;
display: block;
}