first commit 2
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
/* Trend01 Header Style - Minimal & Clean */
|
||||
|
||||
#site-header {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
background-color: #fff;
|
||||
border-bottom: 1px solid #eee;
|
||||
z-index: 1000;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.header-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 100%;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
/* 로고 */
|
||||
.header-logo img {
|
||||
height: 30px; /* 로고 이미지 높이 */
|
||||
width: auto;
|
||||
}
|
||||
|
||||
/* 메인 메뉴 (GNB) */
|
||||
.header-gnb ul {
|
||||
display: flex;
|
||||
gap: 40px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.header-gnb a {
|
||||
text-decoration: none;
|
||||
color: #333;
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
position: relative;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
.header-gnb a::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 0;
|
||||
height: 2px;
|
||||
background-color: #111;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.header-gnb a:hover::after {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* 유틸리티 메뉴 */
|
||||
.header-utils ul {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.header-utils a {
|
||||
text-decoration: none;
|
||||
color: #555;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* 모바일 메뉴 (기본 숨김) */
|
||||
.mobile-menu-trigger,
|
||||
.mobile-menu-panel {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* --- 반응형: 모바일 --- */
|
||||
@media (max-width: 1024px) {
|
||||
.header-gnb,
|
||||
.header-utils {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mobile-menu-trigger {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
width: 30px;
|
||||
height: 25px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.mobile-menu-trigger span {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background-color: #333;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.mobile-menu-panel {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: -100%; /* 오른쪽 바깥에 숨김 */
|
||||
width: 80%;
|
||||
max-width: 300px;
|
||||
height: 100%;
|
||||
background-color: #fff;
|
||||
box-shadow: -5px 0 15px rgba(0,0,0,0.1);
|
||||
transition: right 0.4s ease;
|
||||
padding: 20px;
|
||||
z-index: 1100;
|
||||
}
|
||||
|
||||
.mobile-menu-panel.active {
|
||||
right: 0; /* 활성화 시 오른쪽에서 나타남 */
|
||||
}
|
||||
|
||||
.mobile-menu-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
.mobile-menu-close {
|
||||
font-size: 2rem;
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.mobile-gnb ul,
|
||||
.mobile-utils ul {
|
||||
flex-direction: column;
|
||||
gap: 25px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.mobile-gnb {
|
||||
border-bottom: 1px solid #eee;
|
||||
padding-bottom: 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.mobile-gnb a {
|
||||
font-size: 1.2rem;
|
||||
color: #333;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.mobile-utils a {
|
||||
font-size: 1rem;
|
||||
color: #555;
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user