UNPKG

react-markdown-editor-lite

Version:
207 lines (202 loc) 3.8 kB
@import '../variable.less'; @{prefix} { padding-bottom: 1px; position: relative; border: 1px solid #e0e0e0; background: #fff; box-sizing: border-box; display: flex; flex-direction: column; &.full { width: 100%; height: 100% !important; position: fixed; left: 0px; top: 0px; z-index: 1000; } .editor-container { flex: 1; display: flex; width: 100%; min-height: 0; position: relative; > .section { flex-grow: 1; flex-shrink: 1; flex-basis: 1px; border-right: 1px solid #e0e0e0; &.in-visible { display: none; } > .section-container { padding: 15px; padding-top: 10px; } &:last-child { border-radius: none; } } .sec-md { min-height: 0; min-width: 0; .input { display: block; box-sizing: border-box; width: 100%; height: 100%; overflow-y: scroll; border: none; resize: none; outline: none; min-height: 0; // background: rgb(248, 248, 248); background: #fff; color: #333; font-size: 14px; line-height: 1.7; } } .sec-html { min-height: 0; min-width: 0; .html-wrap { height: 100%; box-sizing: border-box; overflow: auto; } } } } // 自定义htmL样式 .custom-html-style { color: #333; h1 { font-size: 32px; padding: 0px; border: none; font-weight: 700; margin: 32px 0; line-height: 1.2; } h2 { font-size: 24px; padding: 0px 0; border: none; font-weight: 700; margin: 24px 0; line-height: 1.7; } h3 { font-size: 18px; margin: 18px 0; padding: 0px 0; line-height: 1.7; border: none; } p { font-size: 14px; line-height: 1.7; margin: 8px 0; } a { color: #0052d9 } a:hover { text-decoration: none } strong { font-weight: 700 } ol, ul { font-size: 14px; line-height: 28px; padding-left: 36px } li { margin-bottom: 8px; line-height: 1.7; } hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; } pre { display: block; background-color: #f5f5f5; padding: 20px; font-size: 14px; line-height: 28px; border-radius: 0; overflow-x: auto; word-break: break-word; } code { background-color: #f5f5f5; border-radius: 0; padding: 3px 0; margin: 0; font-size: 14px; overflow-x: auto; word-break: normal; } code:after, code:before { letter-spacing: 0 } blockquote { position: relative; margin: 16px 0; padding: 5px 8px 5px 30px; background: none repeat scroll 0 0 rgba(102, 128, 153, .05); border: none; color: #333; border-left: 10px solid #D6DBDF; } img, video { max-width: 100%; // max-height: 668px; } table { font-size: 14px; line-height: 1.7; max-width: 100%; overflow: auto; border: 1px solid #f6f6f6; border-collapse: collapse; border-spacing: 0; box-sizing: border-box; } table td, table th { word-break: break-all; word-wrap: break-word; white-space: normal } table tr { border: 1px solid #efefef } table tr:nth-child(2n) { background-color: transparent } // table td, table th { // min-width: 80px; // max-width: 430px // } table th { text-align: center; font-weight: 700; border: 1px solid #efefef; padding: 10px 6px; background-color: #f5f7fa; word-break: break-word; } table td { border: 1px solid #efefef; text-align: left; padding: 10px 15px; word-break: break-word; min-width: 60px; } }