site.css 4.0 KB

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