layout.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. html, body {
  2. min-width: 1024px;
  3. height: 100vh;
  4. /* iOS only */
  5. @supports (-webkit-touch-callout: none) {
  6. height: -webkit-fill-available;
  7. }
  8. }
  9. #app {
  10. display: flex;
  11. flex-direction: column;
  12. flex-wrap: nowrap;
  13. }
  14. /* 상단 */
  15. #header {
  16. position: relative;
  17. display: flex;
  18. flex-wrap: nowrap;
  19. flex-direction: row;
  20. align-items: center;
  21. height: 60px;
  22. min-height: 60px;
  23. background: #012a4f;
  24. border-bottom: 1px solid #444;
  25. article {
  26. // 로고
  27. &:nth-of-type(1) {
  28. flex-grow: 1;
  29. text-align: left;
  30. a {
  31. font-size: 30px;
  32. font-family: 'Open-Sans-Extrabold';
  33. color: #e8e8e8;
  34. &:hover,
  35. &:focus,
  36. &:active {
  37. color: #fff;
  38. text-decoration: none;
  39. }
  40. }
  41. }
  42. // 검색
  43. &:nth-of-type(2) {
  44. flex-grow: 0.5;
  45. height: 70%;
  46. form {
  47. position: relative;
  48. display: block;
  49. height: 100%;
  50. &::after {
  51. display: block;
  52. clear: both;
  53. content: "";
  54. }
  55. input {
  56. float: left;
  57. width: 90%;
  58. height: inherit;
  59. border-width: 1px 0 1px 1px;
  60. border-top-left-radius: 4px;
  61. border-top-right-radius: 0;
  62. border-bottom-right-radius: 0;
  63. border-bottom-left-radius: 4px;
  64. border-color: #444;
  65. padding-left: 8px;
  66. font-weight: normal;
  67. -webkit-appearance: textfield; /* Safari and Chrome */
  68. -moz-appearance: textfield; /* Firefox */
  69. appearance: textfield; /* 화살표 없애기 공통 */
  70. // X 버튼 삭제
  71. &::-ms-clear,
  72. &::-ms-reveal{
  73. display: none;
  74. width: 0;
  75. height: 0;
  76. }
  77. &::-webkit-search-decoration,
  78. &::-webkit-search-cancel-button,
  79. &::-webkit-search-results-button,
  80. &::-webkit-search-results-decoration{
  81. display:none;
  82. }
  83. &:hover,
  84. &:focus,
  85. &:active {
  86. outline: none;
  87. }
  88. }
  89. button {
  90. float: left;
  91. width: 10%;
  92. max-width: 35px;
  93. height: inherit;
  94. border-top-left-radius: 0;
  95. border-top-right-radius: 4px;
  96. border-bottom-right-radius: 4px;
  97. border-bottom-left-radius: 0;
  98. border-width: 1px 1px 1px 0;
  99. border-color: #444;
  100. padding: 0;
  101. cursor: pointer;
  102. background: #fff;
  103. &:hover,
  104. &:focus,
  105. &:active {
  106. background: #eee;
  107. }
  108. }
  109. }
  110. }
  111. // 로그인, 회원가입, 내 정보
  112. &:nth-of-type(3) {
  113. flex-grow: 1;
  114. & ul {
  115. flex-wrap: nowrap;
  116. justify-content: end;
  117. align-items: center;
  118. & li {
  119. color: rgba(255, 255, 255, 0.7);
  120. a {
  121. height: initial;
  122. }
  123. span {
  124. vertical-align: middle;
  125. }
  126. // dropdown
  127. .dropdown {
  128. background: transparent;;
  129. .dropdown-menu {
  130. background: #f1f1f1;
  131. .dropdown-item {
  132. color: #0f0f0f;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }
  139. }
  140. }
  141. // 메뉴
  142. #aside {
  143. background: #151723;
  144. border-bottom: 1px solid #333;
  145. #nav {
  146. display: flex;
  147. flex-wrap: nowrap;
  148. flex-direction: row;
  149. justify-content: flex-start;
  150. gap: 10px;
  151. > a.nav-link {
  152. padding: 10px 0;
  153. color: #bbbbbb;
  154. &:hover,
  155. &:focus {
  156. font-weight: bold;
  157. color: #bbbbbb;
  158. }
  159. }
  160. ul {
  161. margin-bottom: auto;
  162. li {
  163. &.active {
  164. a {
  165. font-weight: bold;
  166. color: #bbbbbb;
  167. }
  168. }
  169. a {
  170. line-height: 24px;
  171. color: #bbbbbb;
  172. &:hover,
  173. &:focus {
  174. font-weight: bold;
  175. color: #bbbbbb;
  176. }
  177. }
  178. }
  179. }
  180. }
  181. }
  182. /* 메인 */
  183. #main {
  184. position: relative;
  185. background: #0d0d0d;
  186. padding: 20px 10px 50px 10px;
  187. }
  188. footer {
  189. background: #000;
  190. text-align: center;
  191. border-top: 1px solid #3d3d3d;
  192. // 쿠팡 광고
  193. .ad-coupang {
  194. padding: 15px 16px 0 16px;
  195. height: auto;
  196. margin-top: auto;
  197. line-height: 0;
  198. small {
  199. padding-top: 20px;
  200. font-size: 12px;
  201. color: #bbbbbb;
  202. line-height: 15px;
  203. margin-top: 10px;
  204. display: block;
  205. }
  206. }
  207. // 하단
  208. address {
  209. color: #7c7c7c;
  210. padding: 8px 16px 0 16px;
  211. font-size: 13px;
  212. }
  213. }
  214. // 페이지네이션
  215. .pagination {
  216. justify-content: center;
  217. padding: 0;
  218. margin: 0;
  219. ul {
  220. margin: 0;
  221. padding: 0;
  222. li {
  223. a {
  224. &:hover,
  225. &:focus,
  226. &:active {
  227. text-decoration: none;
  228. }
  229. }
  230. }
  231. }
  232. }