view.scss 9.3 KB

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