@@ -86,13 +86,13 @@ body.overflow {
8686 padding-left : 1rem !important ;
8787}
8888
89- form .martor-preview {
89+ div .martor-preview {
9090 padding : 1rem ;
9191 overflow : auto;
9292 background : # fdfdfd ;
9393}
9494
95- form .martor-preview-stale {
95+ div .martor-preview-stale {
9696 background : repeating-linear-gradient (-45deg , # fff, # fff 10px , # f8f8f8 10px , # f8f8f8 20px ) !important ;
9797}
9898
@@ -125,11 +125,11 @@ form .martor-preview-stale {
125125}
126126
127127/* live preview */
128- form .enable-living .martor-preview {
128+ div .enable-living .martor-preview {
129129 display : block!important ;
130130 opacity : unset;
131131}
132- form .enable-living .tab-martor-menu a .nav-link {
132+ div .enable-living .tab-martor-menu a .nav-link {
133133 display : none!important ;
134134}
135135
@@ -176,128 +176,128 @@ form .enable-living .tab-martor-menu a.nav-link {
176176
177177/* Preview */
178178.marked-emoji ,
179- form .martor-preview .marked-emoji {max-width : 20px }
180- form .martor-preview {font-size : 14px ;line-height : 1.6 ;}
181- form .martor-preview > * : first-child {margin-top : 0 !important }
182- form .martor-preview > * : last-child {margin-bottom : 20px !important }
183- form .martor-preview a .absent {color : # c00 }
184- form .martor-preview a .anchor {display : block;padding-left : 30px ;margin-left : -30px ;cursor : pointer;position : absolute;top : 0 ;left : 0 ;bottom : 0 }
185- form .martor-preview h1 ,
186- form .martor-preview h2 ,
187- form .martor-preview h3 ,
188- form .martor-preview h4 ,
189- form .martor-preview h5 ,
190- form .martor-preview h6 {margin : 20px 0 10px ;padding : 0 ;font-weight : bold !important ;-webkit-font-smoothing : antialiased;cursor : text;position : relative;background : none;}
179+ div .martor-preview .marked-emoji {max-width : 20px }
180+ div .martor-preview {font-size : 14px ;line-height : 1.6 ;}
181+ div .martor-preview > * : first-child {margin-top : 0 !important }
182+ div .martor-preview > * : last-child {margin-bottom : 20px !important }
183+ div .martor-preview a .absent {color : # c00 }
184+ div .martor-preview a .anchor {display : block;padding-left : 30px ;margin-left : -30px ;cursor : pointer;position : absolute;top : 0 ;left : 0 ;bottom : 0 }
185+ div .martor-preview h1 ,
186+ div .martor-preview h2 ,
187+ div .martor-preview h3 ,
188+ div .martor-preview h4 ,
189+ div .martor-preview h5 ,
190+ div .martor-preview h6 {margin : 20px 0 10px ;padding : 0 ;font-weight : bold !important ;-webkit-font-smoothing : antialiased;cursor : text;position : relative;background : none;}
191191
192- form .martor-preview h1 : hover a .anchor ,
193- form .martor-preview h2 : hover a .anchor ,
194- form .martor-preview h3 : hover a .anchor ,
195- form .martor-preview h4 : hover a .anchor ,
196- form .martor-preview h5 : hover a .anchor ,
197- form .martor-preview h6 : hover a .anchor {text-decoration : none;line-height : 1 ;padding-left : 0 ;margin-left : -22px ;top : 15% }
192+ div .martor-preview h1 : hover a .anchor ,
193+ div .martor-preview h2 : hover a .anchor ,
194+ div .martor-preview h3 : hover a .anchor ,
195+ div .martor-preview h4 : hover a .anchor ,
196+ div .martor-preview h5 : hover a .anchor ,
197+ div .martor-preview h6 : hover a .anchor {text-decoration : none;line-height : 1 ;padding-left : 0 ;margin-left : -22px ;top : 15% }
198198
199- form .martor-preview h1 tt ,
200- form .martor-preview h1 code ,
201- form .martor-preview h2 tt ,
202- form .martor-preview h2 code ,
203- form .martor-preview h3 tt ,
204- form .martor-preview h3 code ,
205- form .martor-preview h4 tt ,
206- form .martor-preview h4 code ,
207- form .martor-preview h5 tt ,
208- form .martor-preview h5 code ,
209- form .martor-preview h6 tt ,
210- form .martor-preview h6 code {font-size : inherit}
199+ div .martor-preview h1 tt ,
200+ div .martor-preview h1 code ,
201+ div .martor-preview h2 tt ,
202+ div .martor-preview h2 code ,
203+ div .martor-preview h3 tt ,
204+ div .martor-preview h3 code ,
205+ div .martor-preview h4 tt ,
206+ div .martor-preview h4 code ,
207+ div .martor-preview h5 tt ,
208+ div .martor-preview h5 code ,
209+ div .martor-preview h6 tt ,
210+ div .martor-preview h6 code {font-size : inherit}
211211
212- form .martor-preview h1 {font-size : 28px !important ;color : # 000 !important }
213- form .martor-preview h2 {font-size : 24px !important ;color : # 000 !important }
214- form .martor-preview h3 {font-size : 18px !important ;}
215- form .martor-preview h4 {font-size : 16px !important ;}
216- form .martor-preview h5 {font-size : 14px !important ;text-transform : none !important }
217- form .martor-preview h6 {color : # 777 ;font-size : 14px }
218- form .martor-preview p ,
219- form .martor-preview blockquote ,
220- form .martor-preview ul ,
221- form .martor-preview ol ,
222- form .martor-preview dl ,
223- form .martor-preview table ,
224- form .martor-preview pre {margin : 15px 0 }
225- form .martor-preview hr {
212+ div .martor-preview h1 {font-size : 28px !important ;color : # 000 !important }
213+ div .martor-preview h2 {font-size : 24px !important ;color : # 000 !important }
214+ div .martor-preview h3 {font-size : 18px !important ;}
215+ div .martor-preview h4 {font-size : 16px !important ;}
216+ div .martor-preview h5 {font-size : 14px !important ;text-transform : none !important }
217+ div .martor-preview h6 {color : # 777 ;font-size : 14px }
218+ div .martor-preview p ,
219+ div .martor-preview blockquote ,
220+ div .martor-preview ul ,
221+ div .martor-preview ol ,
222+ div .martor-preview dl ,
223+ div .martor-preview table ,
224+ div .martor-preview pre {margin : 15px 0 }
225+ div .martor-preview hr {
226226 background : transparent url (data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAYAAACtBE5DAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OENDRjNBN0E2NTZBMTFFMEI3QjRBODM4NzJDMjlGNDgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OENDRjNBN0I2NTZBMTFFMEI3QjRBODM4NzJDMjlGNDgiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Q0NGM0E3ODY1NkExMUUwQjdCNEE4Mzg3MkMyOUY0OCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Q0NGM0E3OTY1NkExMUUwQjdCNEE4Mzg3MkMyOUY0OCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqqezsUAAAAfSURBVHjaYmRABcYwBiM2QSA4y4hNEKYDQxAEAAIMAHNGAzhkPOlYAAAAAElFTkSuQmCC) repeat-x 0 0 ;
227227 border : 0 none;
228228 color : # ccc ;
229229 height : 4px ;
230230 padding : 0
231231}
232- form .martor-preview > h2 : first-child ,
233- form .martor-preview > h1 : first-child ,
234- form .martor-preview > h1 : first-child + h2 ,
235- form .martor-preview > h3 : first-child ,
236- form .martor-preview > h4 : first-child ,
237- form .martor-preview > h5 : first-child ,
238- form .martor-preview > h6 : first-child {margin-top : 0 ;padding-top : 0 }
239- form .martor-preview a : first-child h1 ,
240- form .martor-preview a : first-child h2 ,
241- form .martor-preview a : first-child h3 ,
242- form .martor-preview a : first-child h4 ,
243- form .martor-preview a : first-child h5 ,
244- form .martor-preview a : first-child h6 {margin-top : 0 ;padding-top : 0 }
245- form .martor-preview h1 + p ,
246- form .martor-preview h2 + p ,
247- form .martor-preview h3 + p ,
248- form .martor-preview h4 + p ,
249- form .martor-preview h5 + p ,
250- form .martor-preview h6 + p {margin-top : 0 }
251- form .martor-preview li p .first {display : inline-block}
252- form .martor-preview ul li {list-style : disc;}
253- form .martor-preview ul ,
254- form .martor-preview ol {padding-left : 30px }
255- form .martor-preview ul .no-list ,
256- form .martor-preview ol .no-list {list-style-type : none;padding : 0 }
257- form .martor-preview ul li > : first-child ,
258- form .martor-preview ul li ul : first-of-type ,
259- form .martor-preview ol li > : first-child ,
260- form .martor-preview ol li ul : first-of-type {margin-top : 0px }
261- form .martor-preview ul ul ,
262- form .martor-preview ul ol ,
263- form .martor-preview ol ol ,
264- form .martor-preview ol ul {margin-bottom : 0 }
265- form .martor-preview dl {padding : 0 }
266- form .martor-preview dl dt {font-size : 14px ;font-weight : bold;font-style : italic;padding : 0 ;margin : 15px 0 5px }
267- form .martor-preview dl dt : first-child {padding : 0 }
268- form .martor-preview dl dt > : first-child {margin-top : 0px }
269- form .martor-preview dl dt > : last-child {margin-bottom : 0px }
270- form .martor-preview dl dd {margin : 0 0 15px ;padding : 0 15px }
271- form .martor-preview dl dd > : first-child {margin-top : 0px }
272- form .martor-preview dl dd > : last-child {margin-bottom : 0px }
273- form .martor-preview blockquote {border-left : 4px solid # DDD ;padding : 5px 15px ;color : # 777 ;background-color : # fff }
274- form .martor-preview blockquote > : first-child {margin-top : 0px }
275- form .martor-preview blockquote > : last-child {margin-bottom : 0px }
276- form .martor-preview table th {font-weight : bold}
277- form .martor-preview table th ,
278- form .martor-preview table td {border : 1px solid # ccc ;padding : 6px 13px }
279- form .martor-preview table tr {border-top : 1px solid # ccc ;background-color : # fff }
280- form .martor-preview table tr : nth-child (2n){background-color : # f8f8f8 }
281- form .martor-preview img {max-width : 100% ;-moz-box-sizing : border-box;box-sizing : border-box}
282- form .martor-preview span .frame {display : block;overflow : hidden}
283- form .martor-preview span .frame > span {border : 1px solid # ddd ;display : block;float : left;overflow : hidden;margin : 13px 0 0 ;padding : 7px ;width : auto}
284- form .martor-preview span .frame span img {display : block;float : left}
285- form .martor-preview span .frame span span {clear : both;color : # 333 ;display : block;padding : 5px 0 0 }
286- form .martor-preview span .align-center {display : block;overflow : hidden;clear : both}
287- form .martor-preview span .align-center > span {display : block;overflow : hidden;margin : 13px auto 0 ;text-align : center}
288- form .martor-preview span .align-center span img {margin : 0 auto;text-align : center}
289- form .martor-preview span .align-right {display : block;overflow : hidden;clear : both}
290- form .martor-preview span .align-right > span {display : block;overflow : hidden;margin : 13px 0 0 ;text-align : right}
291- form .martor-preview span .align-right span img {margin : 0 ;text-align : right}
292- form .martor-preview span .float-left {display : block;margin-right : 13px ;overflow : hidden;float : left}
293- form .martor-preview span .float-left span {margin : 13px 0 0 }
294- form .martor-preview span .float-right {display : block;margin-left : 13px ;overflow : hidden;float : right}
295- form .martor-preview span .float-right > span {display : block;overflow : hidden;margin : 13px auto 0 ;text-align : right}
296- form .martor-preview code ,
297- form .martor-preview tt {margin : 0 2px ;padding : 0px 5px ;border : 1px solid # eaeaea ;background-color : # f8f8f8 ;border-radius : 3px }
298- form .martor-preview code {white-space : nowrap}
299- form .martor-preview pre > code {margin : 0 ;padding : 0 ;white-space : pre;border : none;background : transparent}
300- form .martor-preview .highlight pre ,
301- form .martor-preview pre {border : 1px solid # f0f0f0 ;padding : 16px ;overflow : auto;font-size : 85% ;line-height : 1.45 ;background-color : # f6f8fa ;border-radius : 3px }
302- form .martor-preview pre code ,
303- form .martor-preview pre tt {margin : 0 ;padding : 0 ;background-color : transparent;border : none}
232+ div .martor-preview > h2 : first-child ,
233+ div .martor-preview > h1 : first-child ,
234+ div .martor-preview > h1 : first-child + h2 ,
235+ div .martor-preview > h3 : first-child ,
236+ div .martor-preview > h4 : first-child ,
237+ div .martor-preview > h5 : first-child ,
238+ div .martor-preview > h6 : first-child {margin-top : 0 ;padding-top : 0 }
239+ div .martor-preview a : first-child h1 ,
240+ div .martor-preview a : first-child h2 ,
241+ div .martor-preview a : first-child h3 ,
242+ div .martor-preview a : first-child h4 ,
243+ div .martor-preview a : first-child h5 ,
244+ div .martor-preview a : first-child h6 {margin-top : 0 ;padding-top : 0 }
245+ div .martor-preview h1 + p ,
246+ div .martor-preview h2 + p ,
247+ div .martor-preview h3 + p ,
248+ div .martor-preview h4 + p ,
249+ div .martor-preview h5 + p ,
250+ div .martor-preview h6 + p {margin-top : 0 }
251+ div .martor-preview li p .first {display : inline-block}
252+ div .martor-preview ul li {list-style : disc;}
253+ div .martor-preview ul ,
254+ div .martor-preview ol {padding-left : 30px }
255+ div .martor-preview ul .no-list ,
256+ div .martor-preview ol .no-list {list-style-type : none;padding : 0 }
257+ div .martor-preview ul li > : first-child ,
258+ div .martor-preview ul li ul : first-of-type ,
259+ div .martor-preview ol li > : first-child ,
260+ div .martor-preview ol li ul : first-of-type {margin-top : 0px }
261+ div .martor-preview ul ul ,
262+ div .martor-preview ul ol ,
263+ div .martor-preview ol ol ,
264+ div .martor-preview ol ul {margin-bottom : 0 }
265+ div .martor-preview dl {padding : 0 }
266+ div .martor-preview dl dt {font-size : 14px ;font-weight : bold;font-style : italic;padding : 0 ;margin : 15px 0 5px }
267+ div .martor-preview dl dt : first-child {padding : 0 }
268+ div .martor-preview dl dt > : first-child {margin-top : 0px }
269+ div .martor-preview dl dt > : last-child {margin-bottom : 0px }
270+ div .martor-preview dl dd {margin : 0 0 15px ;padding : 0 15px }
271+ div .martor-preview dl dd > : first-child {margin-top : 0px }
272+ div .martor-preview dl dd > : last-child {margin-bottom : 0px }
273+ div .martor-preview blockquote {border-left : 4px solid # DDD ;padding : 5px 15px ;color : # 777 ;background-color : # fff }
274+ div .martor-preview blockquote > : first-child {margin-top : 0px }
275+ div .martor-preview blockquote > : last-child {margin-bottom : 0px }
276+ div .martor-preview table th {font-weight : bold}
277+ div .martor-preview table th ,
278+ div .martor-preview table td {border : 1px solid # ccc ;padding : 6px 13px }
279+ div .martor-preview table tr {border-top : 1px solid # ccc ;background-color : # fff }
280+ div .martor-preview table tr : nth-child (2n){background-color : # f8f8f8 }
281+ div . martor-preview img , div .martor-preview p img {max-width : 100% ;-moz-box-sizing : border-box;box-sizing : border-box}
282+ div .martor-preview span .frame {display : block;overflow : hidden}
283+ div .martor-preview span .frame > span {border : 1px solid # ddd ;display : block;float : left;overflow : hidden;margin : 13px 0 0 ;padding : 7px ;width : auto}
284+ div .martor-preview span .frame span img {display : block;float : left}
285+ div .martor-preview span .frame span span {clear : both;color : # 333 ;display : block;padding : 5px 0 0 }
286+ div .martor-preview span .align-center {display : block;overflow : hidden;clear : both}
287+ div .martor-preview span .align-center > span {display : block;overflow : hidden;margin : 13px auto 0 ;text-align : center}
288+ div .martor-preview span .align-center span img {margin : 0 auto;text-align : center}
289+ div .martor-preview span .align-right {display : block;overflow : hidden;clear : both}
290+ div .martor-preview span .align-right > span {display : block;overflow : hidden;margin : 13px 0 0 ;text-align : right}
291+ div .martor-preview span .align-right span img {margin : 0 ;text-align : right}
292+ div .martor-preview span .float-left {display : block;margin-right : 13px ;overflow : hidden;float : left}
293+ div .martor-preview span .float-left span {margin : 13px 0 0 }
294+ div .martor-preview span .float-right {display : block;margin-left : 13px ;overflow : hidden;float : right}
295+ div .martor-preview span .float-right > span {display : block;overflow : hidden;margin : 13px auto 0 ;text-align : right}
296+ div .martor-preview code ,
297+ div .martor-preview tt {margin : 0 2px ;padding : 0px 5px ;border : 1px solid # eaeaea ;background-color : # f8f8f8 ;border-radius : 3px }
298+ div .martor-preview code {white-space : nowrap}
299+ div .martor-preview pre > code {margin : 0 ;padding : 0 ;white-space : pre;border : none;background : transparent}
300+ div .martor-preview .highlight pre ,
301+ div .martor-preview pre {border : 1px solid # f0f0f0 ;padding : 16px ;overflow : auto;font-size : 85% ;line-height : 1.45 ;background-color : # f6f8fa ;border-radius : 3px }
302+ div .martor-preview pre code ,
303+ div .martor-preview pre tt {margin : 0 ;padding : 0 ;background-color : transparent;border : none}
0 commit comments