|
| 1 | +/*! |
| 2 | + * Vditor - A markdown editor written in TypeScript. |
| 3 | + * |
| 4 | + * MIT License |
| 5 | + * |
| 6 | + * Copyright (c) 2018-present B3log 开源, b3log.org |
| 7 | + * |
| 8 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 9 | + * of this software and associated documentation files (the "Software"), to deal |
| 10 | + * in the Software without restriction, including without limitation the rights |
| 11 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 12 | + * copies of the Software, and to permit persons to whom the Software is |
| 13 | + * furnished to do so, subject to the following conditions: |
| 14 | + * |
| 15 | + * The above copyright notice and this permission notice shall be included in all |
| 16 | + * copies or substantial portions of the Software. |
| 17 | + * |
| 18 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 19 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 20 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 21 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 22 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 23 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 24 | + * SOFTWARE. |
| 25 | + * |
| 26 | + */ |
| 27 | + |
| 28 | +.vditor-reset { |
| 29 | + color: rgba(0, 0, 0, .85); |
| 30 | + font-size: 14px; |
| 31 | + line-height: 2; |
| 32 | +} |
| 33 | + |
| 34 | +.vditor-reset img { |
| 35 | + max-width: calc(100% - 32px); |
| 36 | +} |
| 37 | + |
| 38 | +.vditor-reset p > img { |
| 39 | + margin: 34px 0; |
| 40 | + box-shadow: 0 8px 20px rgba(143, 168, 191, 0.35); |
| 41 | +} |
| 42 | + |
| 43 | +.vditor-reset h1 { |
| 44 | + margin-bottom: 20px; |
| 45 | + color: rgba(0, 0, 0, .85); |
| 46 | + font-weight: 500; |
| 47 | + font-size: 30px; |
| 48 | + font-family: Avenir, -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji, sans-serif; |
| 49 | + line-height: 38px |
| 50 | +} |
| 51 | + |
| 52 | +.vditor-reset h2 { |
| 53 | + font-size: 24px; |
| 54 | + line-height: 32px; |
| 55 | +} |
| 56 | + |
| 57 | +.vditor-reset h2, |
| 58 | +.vditor-reset h3, |
| 59 | +.vditor-reset h4, |
| 60 | +.vditor-reset h5, |
| 61 | +.vditor-reset h6 { |
| 62 | + clear: both; |
| 63 | + margin: 1.6em 0 .6em; |
| 64 | + color: rgba(0, 0, 0, .85); |
| 65 | + font-weight: 500; |
| 66 | + font-family: Avenir, -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji, sans-serif |
| 67 | +} |
| 68 | + |
| 69 | +.vditor-reset h3 { |
| 70 | + font-size: 18px; |
| 71 | +} |
| 72 | + |
| 73 | +.vditor-reset h4 { |
| 74 | + font-size: 16px; |
| 75 | +} |
| 76 | + |
| 77 | +.vditor-reset h5 { |
| 78 | + font-size: 14px; |
| 79 | +} |
| 80 | + |
| 81 | +.vditor-reset h6 { |
| 82 | + font-size: 12px; |
| 83 | +} |
| 84 | + |
| 85 | +.vditor-reset hr { |
| 86 | + clear: both; |
| 87 | + height: 1px; |
| 88 | + margin: 56px 0; |
| 89 | + background: #f0f0f0; |
| 90 | + border: 0; |
| 91 | +} |
| 92 | + |
| 93 | +.vditor-reset p, |
| 94 | +.vditor-reset pre { |
| 95 | + margin: 1em 0; |
| 96 | +} |
| 97 | + |
| 98 | +.vditor-reset ul > li { |
| 99 | + margin-left: 20px; |
| 100 | + padding-left: 4px; |
| 101 | + list-style-type: circle; |
| 102 | +} |
| 103 | + |
| 104 | +.vditor-reset ol > li { |
| 105 | + margin-left: 20px; |
| 106 | + padding-left: 4px; |
| 107 | + list-style-type: decimal; |
| 108 | +} |
| 109 | + |
| 110 | +.vditor-reset ul > li > p, |
| 111 | +.vditor-reset ol > li > p { |
| 112 | + margin: 0.2em 0; |
| 113 | +} |
| 114 | + |
| 115 | +.vditor-reset code { |
| 116 | + margin: 0 1px; |
| 117 | + padding: .2em .4em; |
| 118 | + font-size: .9em; |
| 119 | + border-radius: 3px; |
| 120 | + border: 1px solid #f0f0f0; |
| 121 | + font-family: sfmono-regular, Consolas, liberation mono, Menlo, Courier, monospace; |
| 122 | +} |
| 123 | + |
| 124 | +.vditor-reset code:not(.hljs):not(.highlight-chroma) { |
| 125 | + background: #f2f4f5; |
| 126 | + color: rgba(0, 0, 0, .65); |
| 127 | +} |
| 128 | + |
| 129 | +.vditor-reset pre { |
| 130 | + font-family: sfmono-regular, Consolas, liberation mono, Menlo, Courier, monospace; |
| 131 | + border-radius: 2px; |
| 132 | +} |
| 133 | + |
| 134 | +.vditor-reset .language-abc svg, |
| 135 | +.vditor-reset .language-abc path { |
| 136 | + fill: currentColor; |
| 137 | + color: rgba(0, 0, 0, .85); |
| 138 | +} |
| 139 | + |
| 140 | +.vditor-reset .language-graphviz polygon { |
| 141 | + fill: transparent; |
| 142 | +} |
| 143 | + |
| 144 | +.vditor-reset strong, |
| 145 | +.vditor-reset b { |
| 146 | + font-weight: 500; |
| 147 | +} |
| 148 | + |
| 149 | +.vditor-reset > table { |
| 150 | + width: 100%; |
| 151 | + margin: 8px 0 16px; |
| 152 | + direction: ltr; |
| 153 | + empty-cells: show; |
| 154 | + border: 1px solid #f0f0f0; |
| 155 | + border-collapse: collapse; |
| 156 | + border-spacing: 0 |
| 157 | +} |
| 158 | + |
| 159 | +.vditor-reset > table th { |
| 160 | + color: #5c6b77; |
| 161 | + font-weight: 500; |
| 162 | + white-space: nowrap; |
| 163 | + background: rgba(0, 0, 0, .02) |
| 164 | +} |
| 165 | + |
| 166 | +.vditor-reset > table th, .vditor-reset > table td { |
| 167 | + padding: 16px 24px; |
| 168 | + text-align: left; |
| 169 | + border: 1px solid #f0f0f0 |
| 170 | +} |
| 171 | + |
| 172 | +.vditor-reset blockquote { |
| 173 | + margin: 1em 0; |
| 174 | + padding-left: .8em; |
| 175 | + color: rgba(0, 0, 0, .45); |
| 176 | + font-size: 90%; |
| 177 | + border-left: 4px solid #f0f0f0 |
| 178 | +} |
| 179 | + |
| 180 | +.vditor-reset blockquote p { |
| 181 | + margin: 0; |
| 182 | +} |
| 183 | + |
| 184 | +.vditor-reset .vditor-anchor { |
| 185 | + margin-left: 8px; |
| 186 | + opacity: 0; |
| 187 | + transition: opacity 0.3s; |
| 188 | +} |
| 189 | + |
| 190 | +.vditor-reset h1:hover .vditor-anchor, |
| 191 | +.vditor-reset h2:hover .vditor-anchor, |
| 192 | +.vditor-reset h3:hover .vditor-anchor, |
| 193 | +.vditor-reset h4:hover .vditor-anchor, |
| 194 | +.vditor-reset h5:hover .vditor-anchor, |
| 195 | +.vditor-reset h6:hover .vditor-anchor { |
| 196 | + display: inline-block; |
| 197 | + opacity: 1; |
| 198 | +} |
| 199 | + |
| 200 | +.vditor-reset > br, |
| 201 | +.vditor-reset > p > br { |
| 202 | + clear: both; |
| 203 | +} |
| 204 | + |
| 205 | +.vditor-reset a, .vditor-ir__link { |
| 206 | + color: #1890ff; |
| 207 | + text-decoration: none; |
| 208 | + outline: none; |
| 209 | + cursor: pointer; |
| 210 | +} |
0 commit comments