// SunEditor 콘텐츠 뷰 전용 스타일 .suneditor-content { // 기본 색상 상속 * { color: inherit; } // SunEditor 이미지 컨테이너 .se-component { margin: 0px 0; display: inline-block; &.se-image-container { &.__se__float-center{ text-align: center; margin:0 auto; figure{ margin:0 auto; } } &.__se__float-left { float: left; margin-right: 20px; } &.__se__float-right { float: right; margin-left: 20px; } &.__se__float-none { display: block; margin-left: auto; margin-right: auto; text-align: center; } } } // 폰트 태그 스타일 초기화 (다크 배경 대응) font { &[face] { font-family: inherit !important; } &[color="#000000"], &[color="rgb(0, 0, 0)"], &[color="black"] { color: rgba(252, 252, 253, 0.9) !important; } } // 이미지 img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; } // 문단 p { font-size: 16px; line-height: 1.8; margin-bottom: 16px; color: rgba(252, 252, 253, 0.9); } // div div { font-size: 16px; line-height: 1.8; color: rgba(252, 252, 253, 0.9); } // span span { font-size: inherit; line-height: inherit; &[style*="color: rgb(0, 0, 0)"], &[style*="color:#000000"], &[style*="color: black"] { color: rgba(252, 252, 253, 0.9) !important; } } // 제목 h1, h2, h3, h4, h5, h6 { margin-top: 32px; margin-bottom: 16px; font-weight: 600; color: rgba(252, 252, 253, 1); } h1 { font-size: 36px; } h2 { font-size: 32px; } h3 { font-size: 28px; } h4 { font-size: 24px; } h5 { font-size: 20px; } h6 { font-size: 18px; } // 링크 a { color: #fff; text-decoration: underline; &:hover { opacity: 0.8; } } // 리스트 ul, ol { margin-left: 20px; margin-bottom: 16px; padding-left: 20px; li { font-size: 16px; line-height: 1.8; margin-bottom: 8px; color: rgba(252, 252, 253, 0.9); } } // 인용문 blockquote { border-left: 4px solid rgba(252, 252, 253, 0.3); padding-left: 20px; margin: 20px 0; color: rgba(252, 252, 253, 0.7); } // 테이블 table { width: 100%; border-collapse: collapse; margin: 20px 0; th, td { border: 1px solid rgba(252, 252, 253, 0.3); padding: 12px; text-align: left; color: rgba(252, 252, 253, 0.9); } th { background-color: rgba(255, 255, 255, 0.1); font-weight: 600; } } // iframe (비디오) iframe { max-width: 100%; margin: 20px 0; display: block; } // 수평선 hr { border: none; border-top: 1px solid rgba(252, 252, 253, 0.3); margin: 24px 0; } // 코드 pre, code { background-color: rgba(255, 255, 255, 0.05); padding: 4px 8px; border-radius: 4px; font-family: monospace; color: rgba(252, 252, 253, 0.9); } pre { padding: 16px; overflow-x: auto; code { padding: 0; background: none; } } // clearfix for floated images &::after { content: ""; display: table; clear: both; } // 텍스트 정렬 .se-align-left, [style*="text-align: left"] { text-align: left; } .se-align-center, [style*="text-align: center"] { text-align: center; } .se-align-right, [style*="text-align: right"] { text-align: right; } // figure (SunEditor가 생성하는 경우) - user agent stylesheet 리셋 figure { figcaption { font-size: 14px; color: rgba(252, 252, 253, 0.7); text-align: center; margin-top: 8px; } } }