first commit 2
This commit is contained in:
@@ -0,0 +1,117 @@
|
||||
/* pns_visual_borad_fix module style */
|
||||
/* 💡 [수정] 독립적인 스타일 적용을 위해 고유 클래스 사용 */
|
||||
|
||||
.pns-fix-board {
|
||||
width: 100%;
|
||||
max-width: 100%; /* 부모 영역에 맞춤 */
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/*.pns-fix-list {*/
|
||||
/* display: flex;*/
|
||||
/* flex-wrap: wrap;*/
|
||||
/* gap: 10px; !* 아이템 간 간격 *!*/
|
||||
/* width: 100%;*/
|
||||
/*}*/
|
||||
.pns-fix-list{
|
||||
display: grid !important;
|
||||
grid-template-columns: repeat(2, 1fr) !important;
|
||||
gap: 10px !important;
|
||||
width: 100% !important;
|
||||
box-sizing: border-box !important;
|
||||
}
|
||||
|
||||
.pns-fix-item {
|
||||
/* 4개를 한 줄에 배치 (간격 고려) */
|
||||
width: calc(25% - 7.5px);
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
border-radius: 8px; /* 모서리 둥글게 (선택) */
|
||||
background: #f0f0f0;
|
||||
}
|
||||
|
||||
/* 이미지 비율 유지 및 꽉 채우기 */
|
||||
.pns-fix-img-wrap {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
padding-bottom: calc(75% - 20px); /* 4:3 비율 예시 (원하는 비율로 조정 가능) */
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.pns-fix-img-wrap img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover; /* 이미지를 영역에 꽉 채움 */
|
||||
transition: transform 0.5s ease;
|
||||
}
|
||||
|
||||
/* 호버 효과 */
|
||||
.pns-fix-img-wrap:hover img {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.pns-fix-no-data {
|
||||
width: 100%;
|
||||
padding: 50px 0;
|
||||
text-align: center;
|
||||
/*background: #eee;*/
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
/* --- 라이트박스 스타일 (독립적) --- */
|
||||
.pns-fix-lightbox {
|
||||
display: none;
|
||||
position: fixed;
|
||||
z-index: 99999; /* 매우 높게 설정 */
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0, 0, 0, 0.9);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.pns-fix-lightbox-content {
|
||||
max-width: 90%;
|
||||
max-height: 80vh;
|
||||
object-fit: contain;
|
||||
box-shadow: 0 0 20px rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
.pns-fix-close {
|
||||
position: absolute;
|
||||
top: 30px;
|
||||
right: 40px;
|
||||
color: #fff;
|
||||
font-size: 50px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.pns-fix-link-btn {
|
||||
margin-top: 20px;
|
||||
padding: 10px 25px;
|
||||
background-color: #009fe3;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
/* --- 반응형 처리 --- */
|
||||
|
||||
/* 태블릿: 2개씩 배치 */
|
||||
|
||||
|
||||
/* 모바일: 1개씩 배치 */
|
||||
|
||||
Reference in New Issue
Block a user