/* 게시판 보기 */ #boardView { box-sizing: border-box; padding: calc(var(--bs-gutter-x) * 0.5); .head { h5 { font-weight: bold; margin-bottom: 0; } } .body { margin: 20px 0; table { border: 1px solid #333; margin-bottom: 6px; > &:not(:first-child) { border-top: none; } tr { th, td { text-align: initial; vertical-align: middle; } } // 게시글 상단 thead { tr { th { background: none; border-bottom: 1px solid #333; h4 { padding: 5px 10px; margin: 0; } } td { strong { font-size: 16px; } small { vertical-align: baseline; margin-left: 10px; padding-left: 10px; border-left: 1px solid #2c3946; } // 조회, 댓글, 좋아요, 싫어요, IP, QR, 인쇄, 주소 & ul { display: inline-block; list-style: none; margin: 0; padding: 0; > li { display: inline-block; &::after { display: inline-block; content: ""; width: 1px; height: 11px; background: #2c3946; vertical-align: -2px; margin: 0; } span { padding: 0 10px; var { font-style: inherit; } } &:first-child span { padding-left: 0; } &:last-child span { padding-right: 0; } &:last-child::after { display: none; width: 0; } } } // SNS 공유 & ol { min-width: auto; margin-left: 20px; border-radius: 0; border-color: #cfcfcf #999 #666 #999; border-width: 1px 1px 1px 0; border-style: solid; 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%); -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); -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%); > li { line-height: initial; padding: 0.4rem 1.2rem; cursor: pointer; &:hover, &:focus, &:active { background: #eaeaea; color: #000; } i { margin-right: 3px; } } } } // 두번째 행 &:nth-of-type(2) { th { padding-left: 18px; } td { padding-right: 18px; padding-bottom: 0; &:last-child { text-align: right; } } } // 세번째 행 &:nth-of-type(3) { th { padding-left: 18px; } td { padding-right: 18px; padding-top: 0; &:last-child { text-align: right; } } } &:last-child { border-bottom: 1px solid #333; } } } // 게시글 내용 tbody { tr { td { & ol { list-style: none; margin: 0; padding: 2px 10px; > li { margin-bottom: 6px; i { vertical-align: -2px; } &:last-child { margin-bottom: 0; } } } blockquote { min-height: 300px; padding: 2px 10px; margin: 0; img { max-width: 100%; } pre[class*="language-"], code[class*="language-"] { overflow: auto; white-space: break-spaces; word-break: break-word; } } } } } // 추천/비추천, 태그 tfoot { tr { td { text-align: center; button { margin: 0 2px 0 2px; } } &:last-child td { text-align: left; padding: 10px 18px 18px 18px; } } } } } // 댓글 영역 .foot { box-sizing: content-box; table { border: 1px solid #333; margin-bottom: 0; tr { th, td { text-align: initial; vertical-align: middle; } } thead { tr { th { h5 { font-size: 16px; font-weight: normal; margin-bottom: 0; padding: 6px 12px; } background: transparent; border-bottom: 1px solid #333; } } } tbody { tr { td { border-top: 0; } } } } } }