style markdown extensions with a less mixin

pull/1/head
ansuz 4 years ago
parent f4451efeac
commit d287bc9111

@ -112,6 +112,50 @@
}
}
.markdown_extensions() {
pre.mermaid {
&[mermaid-source^="gantt"] svg {
g.tick {
text {
fill: @cp_markdown-block-fg;
}
line {
stroke: fade(@cp_markdown-block-fg, 50%);
}
}
text {
&.titleText {
fill: @cp_markdown-block-fg;
}
&.taskTextOutside0, &.taskTextOutside1, &.taskTextOutside2, &.taskTextOutside3 {
fill: @cp_markdown-block-fg !important;
&.doneCritText1 {
fill: @cp_markdown-block-fg !important;
}
}
}
}
&[mermaid-source^="pie"] {
g.legend text, text.pieTitleText {
fill: @cp_markdown-block-fg;
}
}
}
pre.markmap {
border: 1px solid @cp_markdown-border;
svg {
color: @cp_markdown-block-fg;
height: 400px;
}
}
pre.mathjax {
padding: 5px;
color: @cryptpad_text_col;
background-color: @cp_markdown-block-bg;
}
}
.markdown_cryptpad() {
word-wrap: break-word;
@ -135,12 +179,6 @@
.mediatag_cryptpad();
pre.markmap {
border: 1px solid @cp_markdown-border;
svg {
height: 400px;
}
}
pre[data-plugin] {
svg {
max-width: 100%;
@ -149,35 +187,7 @@
}
}
pre.mermaid[mermaid-source^="pie"] {
g.legend text, text.pieTitleText {
fill: @cp_markdown-block-fg;
}
}
pre.mermaid[mermaid-source^="gantt"] {
text.titleText {
fill: @cp_markdown-block-fg;
}
g.tick {
text {
fill: @cp_markdown-block-fg;
}
line {
stroke: fade(@cp_markdown-block-fg, 50%);
}
}
}
pre.markmap svg {
color: @cp_markdown-block-fg;
}
pre.mathjax {
padding: 5px;
color: @cryptpad_text_col;
background-color: @cp_markdown-block-bg;
}
.markdown_extensions();
}
.markdown_preformatted-code () {

@ -234,27 +234,10 @@
padding: 5px;
}
}
.markdown_extensions();
pre.mermaid {
overflow: unset;
margin-bottom: 0;
&[mermaid-source^="pie"] {
g.legend text, text.pieTitleText {
fill: @cp_markdown-block-fg;
}
}
&[mermaid-source^="gantt"] {
text.titleText {
fill: @cp_markdown-block-fg;
}
g.tick {
text {
fill: @cp_markdown-block-fg;
}
line {
stroke: fade(@cp_markdown-block-fg, 50%);
}
}
}
}
pre.markmap {
margin-bottom: 0;
@ -267,10 +250,6 @@
color: @cp_markdown-block-fg;
}
}
pre.mathjax {
padding: 5px;
color: @cryptpad_text_col;
}
.cp-spinner {
border-color: @cryptpad_color_brand;
border-top-color: transparent;

Loading…
Cancel
Save