view.scss 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. /* 게시판 보기 */
  2. #boardView
  3. {
  4. box-sizing: border-box;
  5. padding: calc(var(--bs-gutter-x) * 0.5);
  6. .head {
  7. h5 {
  8. font-weight: bold;
  9. margin-bottom: 0;
  10. color: #f1f1f1;
  11. }
  12. }
  13. .body {
  14. margin: 20px 0;
  15. table {
  16. border: 1px solid #222c36;
  17. margin-bottom: 6px;
  18. > &:not(:first-child) {
  19. border-top: none;
  20. }
  21. tr {
  22. th, td {
  23. text-align: left;
  24. vertical-align: middle;
  25. word-break: break-all;
  26. }
  27. }
  28. // 게시글 상단
  29. thead {
  30. tr {
  31. th {
  32. background: #090a0b;
  33. border-bottom: 1px solid #222c36;
  34. h5 {
  35. margin-bottom: 0;
  36. padding: 5px 0;
  37. }
  38. }
  39. td {
  40. img {
  41. width: 100%;
  42. max-width: 82px;
  43. }
  44. strong {
  45. font-size: 0.813rem;
  46. color: #56889a;
  47. }
  48. small {
  49. font-size: 0.688rem;
  50. vertical-align: baseline;
  51. margin-left: 10px;
  52. padding-left: 10px;
  53. border-left: 1px solid #2c3946;
  54. }
  55. p {
  56. font-size: 0.75rem;
  57. margin-bottom: 0;
  58. }
  59. // 조회, 댓글, 좋아요, 싫어요, IP, QR, 인쇄, 주소
  60. & ul {
  61. display: inline-block;
  62. list-style: none;
  63. margin: 0;
  64. padding: 0;
  65. > li {
  66. display: inline-block;
  67. &::after {
  68. display: inline-block;
  69. content: "";
  70. width: 1px;
  71. height: 11px;
  72. background: #2c3946;
  73. vertical-align: inherit;
  74. margin: 0;
  75. }
  76. span {
  77. font-size: 0.75rem;
  78. padding: 0 10px;
  79. var {
  80. font-style: inherit;
  81. }
  82. i {
  83. margin-right: 5px;
  84. }
  85. }
  86. &:first-child span {
  87. padding-left: 0;
  88. }
  89. &:last-child span {
  90. padding-right: 0;
  91. }
  92. &:last-child::after {
  93. display: none;
  94. width: 0;
  95. }
  96. }
  97. }
  98. // SNS 공유
  99. & ol {
  100. min-width: auto;
  101. margin-left: 20px;
  102. border-radius: 0;
  103. border-color: #cfcfcf #999 #666 #999;
  104. border-width: 1px 1px 1px 0;
  105. border-style: solid;
  106. box-shadow: 2px 0 2px rgb(0 0 0 / 10%), 0 4px 4px rgb(0 0 0 / 20%), -2px 2px 2px rgb(0 0 0 / 10%);
  107. -moz-box-shadow: 2px 0 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.2), -2px 2px 2px rgba(0, 0, 0, 0.1);
  108. -webkit-box-shadow: 2px 0 2px rgb(0 0 0 / 10%), 0 4px 4px rgb(0 0 0 / 20%), -2px 2px 2px rgb(0 0 0 / 10%);
  109. > li {
  110. line-height: initial;
  111. padding: 0.4rem 1.2rem;
  112. cursor: pointer;
  113. &:hover,
  114. &:focus,
  115. &:active {
  116. background: #eaeaea;
  117. color: #000;
  118. }
  119. i {
  120. margin-right: 3px;
  121. }
  122. }
  123. }
  124. }
  125. &:last-child {
  126. border-bottom: 1px solid #222c36;
  127. }
  128. }
  129. }
  130. // 게시글 내용
  131. tbody {
  132. tr {
  133. td {
  134. // Links, Files
  135. & ol {
  136. margin: 0;
  137. padding: 2px 10px;
  138. list-style: none;
  139. > li {
  140. margin-bottom: 6px;
  141. i {
  142. vertical-align: -2px;
  143. }
  144. &:last-child {
  145. margin-bottom: 0;
  146. }
  147. }
  148. }
  149. // 내용
  150. blockquote {
  151. min-height: 50px;
  152. padding: 5px;
  153. margin: 0;
  154. img {
  155. object-fit: cover;
  156. max-width: 100%;
  157. height: auto;
  158. }
  159. iframe {
  160. width: 100%;
  161. @supports (-webkit-touch-callout: none) {
  162. width: -webkit-fill-available;
  163. }
  164. }
  165. pre[class*="language-"],
  166. code[class*="language-"] {
  167. overflow: auto;
  168. white-space: break-spaces;
  169. word-break: break-word;
  170. }
  171. }
  172. }
  173. }
  174. }
  175. // 추천/비추천, 태그
  176. tfoot {
  177. tr {
  178. td {
  179. text-align: center;
  180. button {
  181. margin: 0 2px 0 2px;
  182. }
  183. }
  184. &:last-child td {
  185. text-align: left;
  186. padding: 10px 18px 18px 18px;
  187. }
  188. }
  189. }
  190. }
  191. nav {
  192. .dropdown-menu {
  193. min-width: auto;
  194. border-radius: 0;
  195. border-color: #cfcfcf #999 #666 #999;
  196. border-width: 1px 1px 1px 0;
  197. border-style: solid;
  198. box-shadow: 2px 0 2px rgb(0 0 0 / 10%), 0 4px 4px rgb(0 0 0 / 20%), -2px 2px 2px rgb(0 0 0 / 10%);
  199. -moz-box-shadow: 2px 0 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.2), -2px 2px 2px rgba(0, 0, 0, 0.1);
  200. -webkit-box-shadow: 2px 0 2px rgb(0 0 0 / 10%), 0 4px 4px rgb(0 0 0 / 20%), -2px 2px 2px rgb(0 0 0 / 10%);
  201. .dropdown-item {
  202. line-height: initial;
  203. padding: 0.4rem 1.2rem;
  204. cursor: pointer;
  205. &:hover,
  206. &:focus,
  207. &:active {
  208. background: #eaeaea;
  209. color: #000;
  210. }
  211. }
  212. }
  213. }
  214. }
  215. // 댓글 영역
  216. .foot {
  217. box-sizing: content-box;
  218. table {
  219. border: 1px solid #222c36;
  220. margin-bottom: 0;
  221. tr {
  222. th, td {
  223. text-align: initial;
  224. vertical-align: middle;
  225. word-break: break-all;
  226. }
  227. }
  228. thead {
  229. tr {
  230. th {
  231. background: transparent;
  232. border-bottom: 1px solid #222c36;
  233. h5 {
  234. font-size: 0.938rem;
  235. font-weight: normal;
  236. margin-bottom: 0;
  237. padding: 5px 0;
  238. }
  239. }
  240. }
  241. }
  242. tbody {
  243. tr {
  244. td {
  245. border-top: 0;
  246. }
  247. }
  248. }
  249. }
  250. }
  251. }