| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- /**
- 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: 50px;
- cursor: pointer;
- }
- input {
- border: 1px solid #bbb;
- padding: 6px 5px;
- width: 30%;
- border-radius: 5px;
- flex-grow: 2;
- width: 73%;
- }
- button {
- border: 1px solid #bbb;
- padding: 6px 10px;
- border-radius: 5px;
- margin-left: 5px;
- flex-grow: 1;
- width: 22%;
- &: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%;
- 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;
- }
- }
|