site.scss 5.6 KB

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