@charset "utf-8"; /* 관리자 */ .admin-wrap { display: grid; grid-template-columns: 260px minmax(1020px, 1fr); grid-template-rows: 66px minmax(527px, auto); grid-template-areas: "header header " "nav main "; height: 100%; font-size: 1.7rem; /* min-height: 100vh; */ } .admin-wrap header { background-color: var(--gray-dark); grid-area: header; /* position: relative; z-index: 1; */ } .admin-wrap header * { color: var(--white); } .admin-wrap header .logo { font-size: 2.4rem; font-weight: bold; } .admin-wrap header nav .admin-main-menu li { font-size: 1.6rem; padding: .5rem 2rem; } .admin-wrap header nav .admin-main-menu li.main-active { background-color: #292929; border-radius: 5rem; } .admin-wrap .admin-sub-menu { /* position: fixed; width: 260px; padding-top: 96px; z-index: 0; */ height: 100%; background-color: var(--secondary); box-shadow: 5px 0 5px var(--light); grid-area: nav; } .side-menu { border-top: 0.5px solid var(--gray); height: calc(100% - 178px); overflow: auto; } .side-menu::-webkit-scrollbar { display: block; } .side-menu li.sub-active { background-color: var(--blue); } .side-menu li.sub-active a, .side-menu li.sub-active span { color: var(--white); } .side-menu li a, .side-menu li span { display: block; width: 100%; font-size: 1.6rem; position: relative; padding-left: 1.5rem; } .side-menu li a::after, .side-menu li span::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 5px; top: 50%; left: 0; transform: translateY(-50%); background-color: var(--gray-dark); } .side-menu li.sub-active a::after, .side-menu li.sub-active span::after { background-color: var(--white); } .admin-wrap .main-warp { grid-area: main; } .admin-wrap .main-warp>div.router-wrap { height: calc(100% - 44px); padding: 3rem; } /* 사용자 */ #skip { position: fixed; left: 0; top: 0; z-index: 300; } #skip>a { white-space: nowrap; display: inline-block; position: absolute; left: 0; top: -5rem; padding: .5rem 1rem; font-size: 1.4rem; color: #fff; background-color: #000; box-shadow: .4rem .4rem .3rem rgba(0, 0, 0, .02); } #skip>a:focus{ top: 0; } .user-wrap { width: 100%; height: 100%; display: flex; flex-direction: column; font-size: 1.7rem; } .user-wrap header { width: 100%; position: fixed; top: 0; left: 0; height: 88.5px; z-index: 100; } .logo img{ width: 92px; } .search-wrap { position: absolute; width: 100%; bottom: 0; left: 0; transform: translateY(100%); background-color: rgba(0, 0, 0, 0.8); z-index: 3; } .search-wrap input[type="text"] { border-radius: 50px; background-color: transparent; border: 1px solid var(--white) } .user-wrap header.fixed { background-color: rgba(0, 0, 0, 0.8); } .tnb-zone { position: absolute; right: 0; } .small-logo { font-size: 1.7rem; font-weight: 700; } .user-info a, .user-info p, .user-info button { color: var(--white); font-size: 1.5rem; } .user-info a:nth-of-type(1)::after, .user-info p:nth-of-type(2)::after { content: ''; position: absolute; width: 0.1rem; height: 12px; top: 50%; right: 0; transform: translateY(-50%); background-color: var(--white); } .main-menu>li>a, .main-menu>li>p { display: block; font-size: 2rem; text-align: center; color: var(--white); min-width: 13rem; } .main-menu>li.active>a, .main-menu>li.active>p { border-bottom: 2px solid var(--blue); color: var(--blue); font-weight: 700; } ul.sub-menu li a.sub-active{ color: var(--blue); font-weight: 700; } .main-menu>li:hover>a, .main-menu>li:hover>p { color: var(--blue); } .main-menu>li:hover~header, .main-menu>li:hover~header { background-color: var(--black); } .main-menu .sub-menu { width: 100%; height: 0; position: absolute; overflow: hidden; z-index: 2; opacity: 0; left: 0; bottom: 0; transform: translateY(100%); } .main-menu .sub-menu li>a, .main-menu .sub-menu li>p { display: block; width: 100%; padding: 1rem; font-size: 1.8rem; text-align: center; color: var(--white); } .main-menu .sub-menu.show { opacity: 1; transition: all 0.6s ease-in-out; overflow: visible; height: auto; } .main-menu .sub-sub-menu>li>a { display: block; width: 100%; font-size: 1.6rem; text-align: center; } /* 모바일메뉴 */ /* 기본 스타일 설정 */ .mobile-menu { position: fixed; top: 0; right: 0; width: 100%; height: 100%; background-color: black; color: white; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s ease-in-out; z-index: 1000; } .mobile-menu.show { transform: translateX(0); } .mobile-menu li { cursor: pointer; position: relative; } .mobile-menu li p, .mobile-menu li a { padding: 1rem; font-size: 2rem; } .mobile-menu li.active { background-color: var(--blue); } /* 하위 메뉴 스타일 수정 */ .mobile-menu .sub-menu { position: static; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; padding-left: 20px; background-color: #292929; } .mobile-menu .sub-menu.show { max-height: 500px; /* 적절한 최대 높이로 설정 */ } .mobile button { color: white; border: none; cursor: pointer; } .close-button button { color: white; border: none; padding: 10px; cursor: pointer; } /* .user-wrap nav ul.main-menu li{ position: relative; } .user-wrap ul.main-menu > li{ padding: 2rem 3.5rem; } .user-wrap ul.main-menu > li > a, .user-wrap ul.main-menu > li > p{ display: block; font-size: 1.8rem; font-family: "yungju"; } .user-wrap ul.main-menu > li > p.active { border-bottom: 3px solid var(--green); color: var(--green); } .user-wrap nav ul.sub-menu { overflow: hidden; position: absolute; width: 100%; background-color: #fff; z-index: 4; bottom: -2px; left: 0; transform: translateY(100%); transition: max-height 1.8s ease-in-out, opacity 0.5s ease-in-out; } .user-wrap nav ul.sub-menu li a { display: block; text-align: center; font-size: 1.6rem; padding: 5px 0; } */ .nav-bg { overflow: hidden; background-color: rgba(0, 0, 0, 0.8); /* border-bottom: 1px solid var(--sky-green); */ position: absolute; top: 88.5px; left: 0; width: 100%; z-index: 1; transition: height 0.6s ease-in-out; } /* 메인 */ .user-wrap .main-warp { flex: 1; } .page { width: 100%; height: 100vh; } /* footer */ footer { width: 100%; background-color: var(--black); } .ft-logo { width: 200px; }