96 lines
1.9 KiB
CSS
96 lines
1.9 KiB
CSS
@tailwind components;
|
|
|
|
@layer components {
|
|
/* 상단 메뉴 호버 시 하단 라인 - 기본 테마 */
|
|
.header-nav-link {
|
|
position: relative;
|
|
}
|
|
|
|
/* .header-nav-link::before {
|
|
content: "";
|
|
position: absolute;
|
|
bottom: -4px;
|
|
left: 0;
|
|
width: 0;
|
|
height: 2px;
|
|
background-color: #063a74;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.header-nav-link:hover::before {
|
|
width: 100%;
|
|
} */
|
|
|
|
/* 네비게이션 아이템 사이 구분선 */
|
|
.header-nav-link::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: -0.75rem;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 1px !important;
|
|
height: 1.5rem !important;
|
|
background-color: var(--border);
|
|
}
|
|
|
|
.header-nav-link:first-child::after {
|
|
display: none;
|
|
}
|
|
|
|
[data-theme="blue"] {
|
|
header {
|
|
background: #00afe5;
|
|
border: none;
|
|
}
|
|
header h1 span {
|
|
color: #fff;
|
|
}
|
|
[data-trigger="dropdown"] {
|
|
background: transparent !important;
|
|
color: #fff;
|
|
}
|
|
header button[role="button"].primary {
|
|
background-color: #008e8d !important;
|
|
color: #fff !important;
|
|
}
|
|
nav a,
|
|
.header-nav-link {
|
|
color: #fff !important;
|
|
}
|
|
.header-nav-link:hover {
|
|
color: #fff !important;
|
|
}
|
|
.header-nav-link::before {
|
|
background-color: #fff;
|
|
}
|
|
}
|
|
|
|
[data-theme="green"] {
|
|
header {
|
|
background: #008e8d;
|
|
border: none;
|
|
}
|
|
header h1 span {
|
|
color: #fff;
|
|
}
|
|
[data-trigger="dropdown"] {
|
|
background: transparent !important;
|
|
color: #fff;
|
|
}
|
|
header button[role="button"].primary {
|
|
background-color: #008e8d !important;
|
|
color: #fff !important;
|
|
}
|
|
nav a,
|
|
.header-nav-link {
|
|
color: #fff !important;
|
|
}
|
|
.header-nav-link:hover {
|
|
color: #fff !important;
|
|
}
|
|
.header-nav-link::before {
|
|
background-color: #fff;
|
|
}
|
|
}
|
|
}
|