@diplodoc/transform
Version:
A simple transformer of text in YFM (Yandex Flavored Markdown) to HTML
88 lines (87 loc) • 1.63 kB
CSS
/* src/scss/print.scss */
@media print {
.yfm .yfm-clipboard > pre > code {
white-space: pre-wrap;
}
}
@media print {
.yfm .yfm-page__delimeter {
display: none;
}
.yfm h1[data-original-article],
.yfm h2[data-original-article] {
page-break-before: always;
}
}
@media print {
.yfm .yfm-cut-title {
padding-left: 0;
}
.yfm .yfm-cut-title:before {
display: none;
}
.yfm .yfm-cut-content {
height: auto;
display: block;
padding: 5px 0 15px 30px;
}
}
@media print {
.yfm .yfm-note {
page-break-inside: avoid;
}
}
.yfm .yfm-table-container {
position: relative;
}
.yfm .yfm-table-container > table {
overflow: visible;
overflow: initial;
position: absolute;
top: 0;
left: 0;
max-width: none;
max-width: initial;
transform-origin: top left;
}
.yfm .yfm-table-container > table thead {
display: table-row-group;
}
.yfm .yfm-table-container > table th,
.yfm .yfm-table-container > table td {
page-break-inside: avoid;
white-space: pre-wrap;
text-overflow: initial;
}
@media print {
.yfm .yfm-tab-list {
display: none;
}
.yfm .yfm-tab-panel {
visibility: visible;
height: auto;
display: block;
}
.yfm .yfm-tab-panel:before {
content: attr(data-title);
margin-bottom: -1px;
margin-right: 20px;
border-bottom: 2px solid transparent;
line-height: 33px;
font-weight: 700;
outline: 0;
cursor: pointer;
}
}
@media print {
.yfm .yfm-term_title {
color: currentColor;
border-bottom: none;
}
}
@media print {
.yfm iframe {
display: none;
}
}
/*# sourceMappingURL=print.css.map */