site.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. /**
  2. 2024.12.28 작성
  3. 작성자: 김진오
  4. */
  5. html, body {
  6. height: 100vh;
  7. > div {
  8. height: inherit;
  9. }
  10. }
  11. header {
  12. text-align: center;
  13. padding: 10px 20px 10px 10px;
  14. border-bottom: 1px solid #ddd;
  15. form {
  16. margin: 0 auto;
  17. border: none;
  18. img {
  19. display: none;
  20. width: 15%;
  21. flex-basis: auto;
  22. flex-shrink: 2;
  23. flex-grow: 0;
  24. padding: 0 10px 0 0;
  25. max-width: 50px;
  26. cursor: pointer;
  27. }
  28. input {
  29. border: 1px solid #bbb;
  30. padding: 6px 5px;
  31. width: 30%;
  32. border-radius: 5px;
  33. flex-grow: 2;
  34. width: 73%;
  35. }
  36. button {
  37. border: 1px solid #bbb;
  38. padding: 6px 10px;
  39. border-radius: 5px;
  40. margin-left: 5px;
  41. flex-grow: 1;
  42. width: 22%;
  43. &:hover {
  44. color: #000;
  45. background-color: #f0f0f0;
  46. }
  47. }
  48. }
  49. }
  50. aside {
  51. position: relative;
  52. min-width: 150px;
  53. max-width: 240px;
  54. background-color: #2f2f2f;
  55. border-right: 1px solid #535353;
  56. overflow: hidden;
  57. transition: transform .2s;
  58. z-index: 3;
  59. > section {
  60. position: relative;
  61. height: 10%;
  62. padding: 15px 7px;
  63. min-height: 107px;
  64. background-color: #1583b7;
  65. }
  66. hr {
  67. border-color: #555555;
  68. }
  69. > nav {
  70. overflow-y: auto;
  71. height: calc(100vh - 10%);
  72. padding: 10px 30px 90px 30px;
  73. hr {
  74. margin: 10px 0;
  75. }
  76. ul {
  77. padding-left: 7%;
  78. list-style: none;
  79. li {
  80. color: #d3d3d3;
  81. > strong {
  82. font-size: 17px;
  83. font-weight: 600;
  84. }
  85. a {
  86. &:hover {
  87. color: #fff;
  88. text-decoration: underline
  89. }
  90. }
  91. }
  92. &:first-child {
  93. li {
  94. &:nth-of-type(2) {
  95. color: #FFD700;
  96. }
  97. &:nth-of-type(3) {
  98. color: #6cfda1;
  99. }
  100. }
  101. }
  102. }
  103. details {
  104. summary {
  105. cursor: pointer;
  106. color: #d3d3d3;
  107. font-size: 1.063rem;
  108. font-weight: 600;
  109. margin-bottom: 2px;
  110. }
  111. &:nth-of-type(1) {
  112. summary {
  113. color: #9e37f9;
  114. }
  115. }
  116. &:nth-of-type(2) {
  117. summary {
  118. color: #f18949;
  119. }
  120. }
  121. }
  122. }
  123. }
  124. main {
  125. height: inherit;
  126. overflow-y: auto;
  127. > div {
  128. height: inherit;
  129. > div {
  130. padding: 10px 20px;
  131. }
  132. }
  133. }
  134. footer {
  135. padding: 10px;
  136. border-top: 1px solid #ddd;
  137. span {
  138. font-size: 0.75rem;
  139. }
  140. small {
  141. font-size: 0.75rem;
  142. color: #0a781d;
  143. }
  144. }
  145. #home {
  146. iframe {
  147. width: 100%;
  148. border: 1px solid #ddd;
  149. }
  150. }
  151. #event {
  152. img {
  153. &:hover {
  154. transform: scale(99%);
  155. outline: 1px solid red;
  156. border-radius: 3px;
  157. }
  158. }
  159. }
  160. #products {
  161. a {
  162. .img-box {
  163. position: relative;
  164. max-height: 20vh;
  165. overflow: hidden;
  166. }
  167. img {
  168. transition: transform .2s;
  169. width: 100%;
  170. }
  171. &:hover {
  172. img {
  173. transform: scale(99%);
  174. }
  175. .img-box {
  176. outline: 1px solid red;
  177. border-radius: 3px;
  178. }
  179. figcaption {
  180. text-decoration: underline;
  181. }
  182. span {
  183. text-decoration: none;
  184. }
  185. }
  186. }
  187. figure {
  188. figcaption {
  189. font-size: 0.875rem;
  190. padding-top: 6px;
  191. }
  192. p {
  193. padding: 5px 0 0 0;
  194. color: #cb1400;
  195. font-weight: bold;
  196. }
  197. > img {
  198. &:hover {
  199. transform: scale(99%);
  200. outline: 1px solid red;
  201. border-radius: 3px;
  202. }
  203. }
  204. span {
  205. font-size: 0.75rem;
  206. font-weight: 600;
  207. padding: 3px 7px;
  208. border-radius: 5px;
  209. &:nth-of-type(1) {
  210. color: #f1f1f1;
  211. background-color: rgb(68 156 190);
  212. }
  213. &:nth-of-type(2) {
  214. color: #2f2f2f;
  215. background-color: rgb(251 191 36 / var(--tw-text-opacity, 1));
  216. }
  217. }
  218. }
  219. }
  220. .overlay {
  221. position: fixed;
  222. top: 0;
  223. left: 0;
  224. width: 100%;
  225. height: 100%;
  226. background-color: rgba(0, 0, 0, 0.5);
  227. z-index: 2;
  228. display: none;
  229. > img {
  230. top: 10px;
  231. right: 20px;
  232. position: absolute;
  233. width: 10%;
  234. cursor: pointer;
  235. }
  236. }
  237. .overlay.show {
  238. display: block;
  239. }
  240. /* 768px 미만일 때: 왼쪽으로 숨김 */
  241. @media screen and (max-width: 767px) {
  242. aside {
  243. position: absolute;
  244. transform: translateX(-100%);
  245. }
  246. header {
  247. form {
  248. img {
  249. display: block;
  250. }
  251. }
  252. }
  253. }
  254. /* 768px 이상일 때: 다시 보임 */
  255. @media screen and (min-width: 768px) {
  256. aside {
  257. position: relative;
  258. transform: translateX(0) !important;
  259. }
  260. }