/** 2024.12.28 작성 작성자: 김진오 */ html, body { height: 100vh; > div { height: inherit; } } header { text-align: center; padding: 10px 20px 10px 10px; border-bottom: 1px solid #ddd; form { margin: 0 auto; border: none; img { display: none; width: 15%; flex-basis: auto; flex-shrink: 2; flex-grow: 0; padding: 0 10px 0 0; max-width: 40px; cursor: pointer; } input { border: 1px solid #bbb; padding: 6px 5px; width: 30%; border-radius: 5px; flex-grow: 1; } button { border: 1px solid #bbb; padding: 6px 10px; border-radius: 5px; margin-left: 5px; flex-grow: 0; width: auto; &:hover { color: #000; background-color: #f0f0f0; } } } } aside { position: relative; min-width: 150px; max-width: 240px; background-color: #2f2f2f; border-right: 1px solid #535353; overflow: hidden; transition: transform .2s; z-index: 3; > section { position: relative; height: 10%; max-height: 107px; padding: 15px 7px; min-height: 107px; background-color: #1583b7; } hr { border-color: #555555; } > nav { overflow-y: auto; height: calc(100vh - 10%); padding: 10px 30px 90px 30px; hr { margin: 10px 0; } ul { padding-left: 7%; list-style: none; li { color: #d3d3d3; > strong { font-size: 17px; font-weight: 600; } a { &:hover { color: #fff; text-decoration: underline } } } &:first-child { li { &:nth-of-type(2) { color: #FFD700; } &:nth-of-type(3) { color: #6cfda1; } } } } details { summary { cursor: pointer; color: #d3d3d3; font-size: 1.063rem; font-weight: 600; margin-bottom: 2px; } &:nth-of-type(1) { summary { color: #9e37f9; } } &:nth-of-type(2) { summary { color: #f18949; } } } } } main { height: inherit; overflow-y: auto; > div { height: inherit; > div { padding: 10px 20px; } } } footer { padding: 10px; border-top: 1px solid #ddd; span { font-size: 0.75rem; } small { font-size: 0.75rem; color: #0a781d; } } #home { iframe { width: 100%; border: 1px solid #ddd; } } #event { img { &:hover { transform: scale(99%); outline: 1px solid red; border-radius: 3px; } } } #products { a { .img-box { position: relative; max-height: 20vh; overflow: hidden; } img { transition: transform .2s; width: 100%; } &:hover { img { transform: scale(99%); } .img-box { outline: 1px solid red; border-radius: 3px; } figcaption { text-decoration: underline; } span { text-decoration: none; } } } figure { figcaption { font-size: 0.875rem; padding-top: 6px; } p { padding: 5px 0 0 0; color: #cb1400; font-weight: bold; } > img { &:hover { transform: scale(99%); outline: 1px solid red; border-radius: 3px; } } span { font-size: 0.75rem; font-weight: 600; padding: 3px 7px; border-radius: 5px; &:nth-of-type(1) { color: #f1f1f1; background-color: rgb(68 156 190); } &:nth-of-type(2) { color: #2f2f2f; background-color: rgb(251 191 36 / var(--tw-text-opacity, 1)); } } } } .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 2; display: none; > img { top: 10px; right: 20px; position: absolute; width: 10%; cursor: pointer; } } .overlay.show { display: block; } /* 768px 미만일 때: 왼쪽으로 숨김 */ @media screen and (max-width: 767px) { aside { position: absolute; transform: translateX(-100%); } header { form { img { display: block; } } } } /* 768px 이상일 때: 다시 보임 */ @media screen and (min-width: 768px) { aside { position: relative; transform: translateX(0) !important; } }