view.scss 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  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. }
  11. }
  12. .body {
  13. margin: 20px 0;
  14. table {
  15. border: 1px solid #333;
  16. margin-bottom: 6px;
  17. > &:not(:first-child) {
  18. border-top: none;
  19. }
  20. tr {
  21. th, td {
  22. text-align: initial;
  23. vertical-align: middle;
  24. }
  25. }
  26. // 게시글 상단
  27. thead {
  28. tr {
  29. th {
  30. background: none;
  31. border-bottom: 1px solid #333;
  32. h4 {
  33. padding: 5px 10px;
  34. margin: 0;
  35. }
  36. }
  37. td {
  38. strong {
  39. font-size: 16px;
  40. }
  41. small {
  42. vertical-align: baseline;
  43. margin-left: 10px;
  44. padding-left: 10px;
  45. border-left: 1px solid #2c3946;
  46. }
  47. // 조회, 댓글, 좋아요, 싫어요, IP, QR, 인쇄, 주소
  48. & ul {
  49. display: inline-block;
  50. list-style: none;
  51. margin: 0;
  52. padding: 0;
  53. > li {
  54. display: inline-block;
  55. &::after {
  56. display: inline-block;
  57. content: "";
  58. width: 1px;
  59. height: 11px;
  60. background: #2c3946;
  61. vertical-align: -2px;
  62. margin: 0;
  63. }
  64. span {
  65. padding: 0 10px;
  66. var {
  67. font-style: inherit;
  68. }
  69. }
  70. &:first-child span {
  71. padding-left: 0;
  72. }
  73. &:last-child span {
  74. padding-right: 0;
  75. }
  76. &:last-child::after {
  77. display: none;
  78. width: 0;
  79. }
  80. }
  81. }
  82. // SNS 공유
  83. & ol {
  84. min-width: auto;
  85. margin-left: 20px;
  86. border-radius: 0;
  87. border-color: #cfcfcf #999 #666 #999;
  88. border-width: 1px 1px 1px 0;
  89. border-style: solid;
  90. 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%);
  91. -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);
  92. -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%);
  93. > li {
  94. line-height: initial;
  95. padding: 0.4rem 1.2rem;
  96. cursor: pointer;
  97. &:hover,
  98. &:focus,
  99. &:active {
  100. background: #eaeaea;
  101. color: #000;
  102. }
  103. i {
  104. margin-right: 3px;
  105. }
  106. }
  107. }
  108. }
  109. // 두번째 행
  110. &:nth-of-type(2) {
  111. th {
  112. padding-left: 18px;
  113. }
  114. td {
  115. padding-right: 18px;
  116. padding-bottom: 0;
  117. &:last-child {
  118. text-align: right;
  119. }
  120. }
  121. }
  122. // 세번째 행
  123. &:nth-of-type(3) {
  124. th {
  125. padding-left: 18px;
  126. }
  127. td {
  128. padding-right: 18px;
  129. padding-top: 0;
  130. &:last-child {
  131. text-align: right;
  132. }
  133. }
  134. }
  135. &:last-child {
  136. border-bottom: 1px solid #333;
  137. }
  138. }
  139. }
  140. // 게시글 내용
  141. tbody {
  142. tr {
  143. td {
  144. & ol {
  145. list-style: none;
  146. margin: 0;
  147. padding: 2px 10px;
  148. > li {
  149. margin-bottom: 6px;
  150. i {
  151. vertical-align: -2px;
  152. }
  153. &:last-child {
  154. margin-bottom: 0;
  155. }
  156. }
  157. }
  158. blockquote {
  159. min-height: 300px;
  160. padding: 2px 10px;
  161. margin: 0;
  162. img {
  163. max-width: 100%;
  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. }
  192. // 댓글 영역
  193. .foot {
  194. box-sizing: content-box;
  195. table {
  196. border: 1px solid #333;
  197. margin-bottom: 0;
  198. tr {
  199. th, td {
  200. text-align: initial;
  201. vertical-align: middle;
  202. }
  203. }
  204. thead {
  205. tr {
  206. th {
  207. h5 {
  208. font-size: 16px;
  209. font-weight: normal;
  210. margin-bottom: 0;
  211. padding: 6px 12px;
  212. }
  213. background: transparent;
  214. border-bottom: 1px solid #333;
  215. }
  216. }
  217. }
  218. tbody {
  219. tr {
  220. td {
  221. border-top: 0;
  222. }
  223. }
  224. }
  225. }
  226. }
  227. }