site.css 4.0 KB

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