hedgedoc/public/css/markdown.css

124 lines
2.5 KiB
CSS
Raw Normal View History

2015-05-04 03:53:29 -04:00
/* for markdown-body */
.markdown-body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
2015-05-04 03:53:29 -04:00
padding-top: 40px;
padding-bottom: 40px;
max-width: 758px;
overflow: visible !important;
2015-05-04 03:53:29 -04:00
}
/*fixed style for bootstrap comflict*/
.markdown-body pre {
border: inherit !important;
}
.markdown-body code {
color: inherit !important;
}
.markdown-body pre code .wrapper {
display: -webkit-inline-flex;
display: -moz-inline-flex;
display: -ms-inline-flex;
display: -o-inline-flex;
display: inline-flex;
}
.markdown-body pre code .gutter {
float: left;
overflow: hidden;
-webkit-user-select: none;
user-select: none;
}
.markdown-body pre code .gutter.linenumber {
2015-05-04 03:53:29 -04:00
text-align: right;
position: relative;
display: inline-block;
cursor: default;
z-index: 4;
padding: 0 8px 0 0;
min-width: 20px;
box-sizing: content-box;
color: #afafaf !important;
border-right: 3px solid #6ce26c !important;
}
.markdown-body pre code .gutter.linenumber > span:before {
content: attr(data-linenumber);
}
2015-05-04 03:53:29 -04:00
.markdown-body pre code .code {
float: left;
margin: 0 0 0 16px;
}
.markdown-body .gist .line-numbers {
border-left: none;
border-top: none;
border-bottom: none;
}
.markdown-body .gist .line-data {
border: none;
}
.markdown-body .gist table {
border-spacing: 0;
border-collapse: inherit !important;
}
.markdown-body code[data-gist-id] {
background: none;
padding: 0;
}
.markdown-body code[data-gist-id]:before {
content: ''
}
.markdown-body code[data-gist-id]:after {
content: ''
}
/*fixed style for rtl in pre and code*/
.markdown-body[dir='rtl'] pre {
direction: ltr;
}
.markdown-body[dir='rtl'] code {
direction: ltr;
unicode-bidi: embed;
}
.markdown-body .alert > p {
margin-bottom: 0;
}
.markdown-body pre.flow-chart,
.markdown-body pre.sequence-diagram,
.markdown-body pre.graphviz,
.markdown-body pre.mermaid {
text-align: center;
background-color: inherit;
border-radius: 0;
white-space: inherit;
}
.markdown-body pre.flow-chart > code,
.markdown-body pre.sequence-diagram > code,
.markdown-body pre.graphviz > code,
.markdown-body pre.mermaid > code {
text-align: left;
}
.markdown-body pre.flow-chart > svg,
.markdown-body pre.sequence-diagram > svg,
.markdown-body pre.graphviz > svg,
.markdown-body pre.mermaid > svg {
max-width: 100%;
height: 100%;
}