layout.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. html, body {
  2. min-width: 1024px;
  3. height: 100vh;
  4. overflow-y: clip;
  5. /* iOS only */
  6. @supports (-webkit-touch-callout: none) {
  7. height: -webkit-fill-available;
  8. }
  9. }
  10. #app {
  11. width: inherit;
  12. height: inherit;
  13. }
  14. /* 상단 */
  15. #header {
  16. position: relative;
  17. display: flex;
  18. flex-wrap: nowrap;
  19. flex-direction: row;
  20. align-items: center;
  21. min-height: 60px;
  22. background: #001620;
  23. border-bottom: 1px solid #444;
  24. & article {
  25. height: inherit;
  26. ul,
  27. ul li {
  28. position: relative;
  29. height: inherit;
  30. align-items: center;
  31. }
  32. a {
  33. display: block;
  34. text-decoration: none;
  35. color: #d6d6d6;
  36. height: inherit;
  37. &:hover,
  38. &:focus,
  39. &:active {
  40. color: #fff;
  41. text-decoration: underline;
  42. }
  43. }
  44. // 로고
  45. &:nth-of-type(1) {
  46. display: flex;
  47. flex: 0 0 25%;
  48. a {
  49. font-size: 30px;
  50. font-family: 'Open-Sans-Extrabold';
  51. color: #e8e8e8;
  52. &:hover,
  53. &:focus,
  54. &:active {
  55. color: #fff;
  56. text-decoration: none;
  57. }
  58. }
  59. }
  60. // 메뉴
  61. &:nth-of-type(2) {
  62. display: flex;
  63. flex: 1 0 calc(50% - 20px);
  64. justify-content: center;
  65. height: inherit;
  66. ul {
  67. li {
  68. line-height: 44px;
  69. a.active:after {
  70. background-color: #ffdf1b;
  71. width: inherit;
  72. height: 1px;
  73. position: absolute;
  74. left: 0;
  75. bottom: 0;
  76. content: " ";
  77. margin: 0 var(--bs-nav-link-padding-x);
  78. right: 0;
  79. }
  80. }
  81. }
  82. }
  83. // 로그인, 회원가입, 내 정보
  84. &:nth-of-type(3) {
  85. display: flex;
  86. flex: 0 0 25%;
  87. justify-content: end;
  88. & ul {
  89. flex-wrap: nowrap;
  90. justify-content: end;
  91. align-items: center;
  92. & li {
  93. color: rgba(255, 255, 255, 0.7);
  94. a {
  95. height: initial;
  96. }
  97. span {
  98. vertical-align: middle;
  99. }
  100. // dropdown
  101. .dropdown {
  102. .dropdown-menu {
  103. .dropdown-item {
  104. color: #0f0f0f;
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }
  111. }
  112. }
  113. #main {
  114. display: flex;
  115. flex-direction: row;
  116. flex-wrap: nowrap;
  117. align-items: stretch;
  118. width: inherit;
  119. height: inherit;
  120. background: #000;
  121. // 왼쪽
  122. > nav {
  123. flex: 1 0 230px;
  124. max-width: 230px;
  125. background: #0f0f0f;
  126. border-right: 1px solid #2c2c2c;
  127. padding-top: 6px;
  128. overflow-y: auto;
  129. z-index: 1;
  130. height: calc(100vh - 60px);
  131. display: flex;
  132. flex-direction: column;
  133. flex-wrap: nowrap;
  134. .ad-coupang {
  135. padding: 15px 16px 15px 16px;
  136. height: auto;
  137. margin-top: auto;
  138. line-height: 0;
  139. small {
  140. font-size: 11px;
  141. color: #bbbbbb;
  142. line-height: 15px;
  143. margin-top: 10px;
  144. display: block;
  145. }
  146. }
  147. table {
  148. width: 100%;
  149. caption {
  150. caption-side: top;
  151. padding: 0 16px;
  152. }
  153. tr {
  154. th {
  155. text-align: left;
  156. padding: 3px 16px;
  157. font-weight: inherit;
  158. }
  159. td {
  160. text-align: right;
  161. padding: 3px 16px;
  162. }
  163. }
  164. }
  165. address {
  166. color: #8d8d8d;
  167. padding: 8px 16px 0 16px;
  168. text-align: center;
  169. font-size: 13px;
  170. }
  171. }
  172. // 우측
  173. > aside {
  174. height: inherit;
  175. flex: 2 0 calc(100% - 230px);
  176. max-width: calc(100% - 230px);
  177. > article {
  178. position: relative;
  179. height: calc(100vh - 120px);
  180. padding: 20px 10px;
  181. overflow-y: auto;
  182. }
  183. > footer {
  184. height: 60px;
  185. border-top: 1px solid #2c2c2c;
  186. background: #070707;
  187. padding: 0 10px;
  188. > div {
  189. height: 100%;
  190. margin: 0;
  191. ul {
  192. padding: 0;
  193. margin: 0;
  194. list-style: none;
  195. li {
  196. display: inline-block;
  197. vertical-align: middle;
  198. }
  199. }
  200. }
  201. a {
  202. img {
  203. width: 100%;
  204. max-width: 120px;
  205. }
  206. }
  207. }
  208. }
  209. }
  210. .pagination {
  211. justify-content: center;
  212. padding: 0;
  213. margin: 0;
  214. ul {
  215. margin: 0;
  216. padding: 0;
  217. li {
  218. a {
  219. &:hover,
  220. &:focus,
  221. &:active {
  222. text-decoration: none;
  223. }
  224. }
  225. }
  226. }
  227. }