Files
dnssash/theme/rd.laser/skin/newwin/modal/style.css
T
2026-06-11 18:47:38 +09:00

173 lines
4.9 KiB
CSS

/* 모달 팝업 스킨 스타일 */
.rb-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7); /* 배경을 조금 더 어둡게 */
z-index: 9999;
padding: 20px;
overflow-y: auto; /* 팝업이 많을 경우 스크롤 */
}
/* 💡 [핵심 추가] 팝업 카드들을 정렬하는 그리드 컨테이너 */
.rb-modal-grid-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: flex-start; /* 카드를 위쪽으로 정렬 */
gap: 10px; /* 카드 사이의 간격 */
width: 100%;
min-height: 100%;
padding: 20px 0; /* 상하 여백 */
}
/* 💡 [핵심 수정] 개별 팝업 카드 스타일 */
.rb-modal-card {
/* 이 컨테이너는 JavaScript에서 fadeOut을 위해 사용됩니다. */
}
.rb-modal-content {
background-color: #fff;
border-radius: 12px;
box-shadow: 0 5px 20px rgba(0,0,0,0.2);
max-height: 90vh;
overflow: hidden;
position: relative;
display: flex;
flex-direction: column;
/* 💡 [수정] width는 PHP에서 인라인 스타일로 적용됩니다. */
}
.rb-modal-close {
position: absolute;
top: 10px;
right: 15px;
background: none;
border: none;
font-size: 28px;
font-weight: bold;
color: #888;
cursor: pointer;
line-height: 1;
padding: 0;
z-index: 10;
}
.rb-modal-close:hover {
color: #333;
}
.rb-modal-body {
padding: 20px;
overflow-y: auto; /* 내용이 길면 스크롤 */
line-height: 1.6;
}
.rb-modal-footer {
padding: 10px 15px;
background: #f8f9fa;
border-top: 1px solid #dee2e6;
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0; /* 푸터 높이가 줄어들지 않도록 함 */
}
.rb-modal-footer button {
padding: 8px 12px;
border: 0;
cursor: pointer;
border-radius: 5px;
font-size: 13px;
font-family: 'Noto Sans KR', sans-serif;
transition: background-color 0.2s;
}
.rb-modal-footer .rb-modal-reject {
background-color: #6c757d;
color: #fff;
}
.rb-modal-footer .rb-modal-reject:hover {
background-color: #5a6268;
}
.rb-modal-footer .rb-modal-close {
position: static;
font-size: 13px;
font-weight: normal;
background-color: #555;
color: #fff;
}
.rb-modal-footer .rb-modal-close:hover {
background-color: #333;
}
/* -------------------------------------------------- */
/* 💡 모달 팝업 내부 콘텐츠 스타일 (기존과 동일) */
/* -------------------------------------------------- */
.rb-modal-body-inner {
font-size: 15px;
color: #333;
line-height: 1.7;
word-break: break-word;
}
.rb-modal-body-inner p { margin-bottom: 1em; }
.rb-modal-body-inner p:first-child { margin-top: 0; }
.rb-modal-body-inner p:last-child { margin-bottom: 0; }
.rb-modal-body-inner img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; }
.rb-modal-body-inner h1,
.rb-modal-body-inner h2,
.rb-modal-body-inner h3 { font-family: 'Noto Sans KR', sans-serif; font-weight: 700; color: var(--primary-color, #2c3e50); margin-bottom: 15px; line-height: 1.4; }
.rb-modal-body-inner h1 { font-size: 24px; }
.rb-modal-body-inner h2 { font-size: 20px; }
.rb-modal-body-inner h3 { font-size: 18px; }
.rb-modal-body-inner a { color: var(--accent-color, #d35400); text-decoration: underline; }
.rb-modal-body-inner a:hover { color: #333; }
/* -------------------------------------------------- */
/* 💡 [최종 수정] 모달 스크롤바 완전 숨김 처리 */
/* -------------------------------------------------- */
/* 1. 기본 상태: 스크롤바를 완전히 투명하게 만듭니다. */
.rb-modal-overlay,
.rb-modal-body {
/* Firefox: 스크롤바 색상을 양쪽 모두 투명하게 설정 */
scrollbar-color: transparent transparent;
scrollbar-width: thin;
transition: scrollbar-color 0.3s ease; /* 부드러운 효과를 위해 추가 */
}
.rb-modal-overlay::-webkit-scrollbar,
.rb-modal-body::-webkit-scrollbar {
width: 10px;
}
.rb-modal-overlay::-webkit-scrollbar-track,
.rb-modal-body::-webkit-scrollbar-track {
background: transparent;
}
.rb-modal-overlay::-webkit-scrollbar-thumb,
.rb-modal-body::-webkit-scrollbar-thumb {
/* Webkit: 스크롤바 막대를 투명하게 */
background-color: transparent;
border-radius: 10px;
border: 3px solid transparent;
background-clip: padding-box;
transition: background-color 0.3s ease;
}
/* 2. :hover 상태: 마우스를 올리면 스크롤바가 나타납니다. */
.rb-modal-overlay:hover,
.rb-modal-body:hover {
/* Firefox: 스크롤바 색상을 보이게 변경 */
scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}
.rb-modal-overlay:hover::-webkit-scrollbar-thumb,
.rb-modal-body:hover::-webkit-scrollbar-thumb {
/* Webkit: 스크롤바 막대 색상을 보이게 변경 */
background-color: rgba(0, 0, 0, 0.4);
}