fix indentation to use tabs
Этот коммит содержится в:
@@ -69,7 +69,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
|
|||||||
usedLanguage = 'xml';
|
usedLanguage = 'xml';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (usedLanguage && (usedLanguage === 'tex' || usedLanguage === 'tex')) {
|
if (usedLanguage && (usedLanguage === 'tex' || usedLanguage === 'latex')) {
|
||||||
try {
|
try {
|
||||||
var html = katex.renderToString(TextFormatting.sanitizeHtml(code), {throwOnError: false, displayMode: true});
|
var html = katex.renderToString(TextFormatting.sanitizeHtml(code), {throwOnError: false, displayMode: true});
|
||||||
return '<div class="post-body--code tex">' + html + '</div>';
|
return '<div class="post-body--code tex">' + html + '</div>';
|
||||||
|
|||||||
@@ -496,9 +496,9 @@ body.ios {
|
|||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
@include opacity(.3);
|
@include opacity(.3);
|
||||||
}
|
}
|
||||||
&.tex .katex-display {
|
&.tex .katex-display {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
}
|
}
|
||||||
@@ -615,79 +615,79 @@ body.ios {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.attachment {
|
.attachment {
|
||||||
.attachment__content {
|
.attachment__content {
|
||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
padding: 2px 5px;
|
padding: 2px 5px;
|
||||||
margin: 0 0 5px 0;
|
margin: 0 0 5px 0;
|
||||||
}
|
}
|
||||||
.attachment__thumb-pretext {
|
.attachment__thumb-pretext {
|
||||||
border: 0 none;
|
border: 0 none;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
.attachment__container {
|
.attachment__container {
|
||||||
border-left-width: 4px;
|
border-left-width: 4px;
|
||||||
border-left-style: solid;
|
border-left-style: solid;
|
||||||
padding: 2px 0 2px 10px;
|
padding: 2px 0 2px 10px;
|
||||||
&.attachment__container--good {
|
&.attachment__container--good {
|
||||||
border-left-color: #00C100;
|
border-left-color: #00C100;
|
||||||
}
|
}
|
||||||
&.attachment__container--warning {
|
&.attachment__container--warning {
|
||||||
border-left-color: #DEDE01;
|
border-left-color: #DEDE01;
|
||||||
}
|
}
|
||||||
&.attachment__container--danger {
|
&.attachment__container--danger {
|
||||||
border-left-color: #E40303;
|
border-left-color: #E40303;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.attachment__body {
|
.attachment__body {
|
||||||
float: left;
|
float: left;
|
||||||
width: 80%;
|
width: 80%;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
&.attachment__body--no_thumb {
|
&.attachment__body--no_thumb {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.attachment__text p:last-of-type {
|
.attachment__text p:last-of-type {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
.attachment__thumb-pretext {
|
.attachment__thumb-pretext {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
.attachment__title {
|
.attachment__title {
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
a {
|
a {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.attachment__author-icon {
|
.attachment__author-icon {
|
||||||
@include border-radius(50px);
|
@include border-radius(50px);
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 14px;
|
height: 14px;
|
||||||
}
|
}
|
||||||
.attachment__image {
|
.attachment__image {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
}
|
}
|
||||||
.attachment__thumb-container {
|
.attachment__thumb-container {
|
||||||
width: 20%;
|
width: 20%;
|
||||||
float: right;
|
float: right;
|
||||||
img {
|
img {
|
||||||
max-height: 75px;
|
max-height: 75px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.attachment___fields {
|
.attachment___fields {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
.attachment___field-caption {
|
.attachment___field-caption {
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
.attachment___field p {
|
.attachment___field p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Ссылка в новой задаче
Block a user