2020-04-21 14:40:19 +00:00
|
|
|
@import (reference) "./tools.less";
|
|
|
|
|
2018-07-14 13:15:23 +00:00
|
|
|
.markdown_main() {
|
2020-07-03 16:56:11 +00:00
|
|
|
@nice-grey: #f3f3f3;
|
|
|
|
@accent-grey: rgba(0, 0, 0, 0.2);
|
|
|
|
hr {
|
|
|
|
border-top: 1px solid @accent-grey;
|
|
|
|
}
|
2018-07-14 13:15:23 +00:00
|
|
|
blockquote {
|
2020-07-03 16:56:11 +00:00
|
|
|
background: @nice-grey;
|
|
|
|
background: rgba(144, 144, 144, 0.2);
|
2018-07-14 13:15:23 +00:00
|
|
|
padding: 10px;
|
2020-07-03 16:56:11 +00:00
|
|
|
border-left: 2px solid @accent-grey;
|
2018-07-14 13:15:23 +00:00
|
|
|
padding-right: 0;
|
|
|
|
p { margin: 0; }
|
|
|
|
blockquote { margin: 0; }
|
2020-07-03 16:56:11 +00:00
|
|
|
& > *:not(:last-child) {
|
|
|
|
margin-bottom: 10px !important;
|
|
|
|
}
|
2018-07-14 13:15:23 +00:00
|
|
|
}
|
|
|
|
// todo ul, ol
|
2019-02-18 16:25:27 +00:00
|
|
|
// TOC
|
|
|
|
div.cp-md-toc {
|
2020-07-03 16:56:11 +00:00
|
|
|
background: @nice-grey;
|
2019-02-18 16:25:27 +00:00
|
|
|
padding: 20px;
|
2020-07-03 16:56:11 +00:00
|
|
|
* {
|
|
|
|
margin: 5px;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
2019-02-19 10:06:25 +00:00
|
|
|
max-width: 100%;
|
|
|
|
min-width: 200px;
|
|
|
|
white-space: nowrap;
|
|
|
|
|
2019-02-18 16:25:27 +00:00
|
|
|
& > p {
|
|
|
|
&.cp-md-toc-1 {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
&.cp-md-toc-2 {
|
|
|
|
margin-left: 25px;
|
|
|
|
}
|
|
|
|
&.cp-md-toc-3 {
|
|
|
|
margin-left: 50px;
|
|
|
|
}
|
|
|
|
&.cp-md-toc-4 {
|
|
|
|
margin-left: 75px;
|
|
|
|
}
|
|
|
|
&.cp-md-toc-5 {
|
|
|
|
margin-left: 100px;
|
|
|
|
}
|
|
|
|
&.cp-md-toc-6 {
|
|
|
|
margin-left: 125px;
|
|
|
|
}
|
|
|
|
margin: 0;
|
2019-02-19 10:06:25 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2019-02-18 16:25:27 +00:00
|
|
|
}
|
|
|
|
}
|
2019-08-27 09:14:23 +00:00
|
|
|
|
|
|
|
div.plain-text-reader {
|
|
|
|
background: #f3f3f3;
|
|
|
|
padding: 10px;
|
|
|
|
color: black;
|
|
|
|
text-align: left;
|
|
|
|
}
|
2018-07-14 13:15:23 +00:00
|
|
|
}
|
|
|
|
|
2020-12-03 14:22:39 +00:00
|
|
|
.mediatag_cryptpad() {
|
2020-03-04 16:48:20 +00:00
|
|
|
media-tag {
|
2020-12-03 14:36:29 +00:00
|
|
|
&:empty {
|
|
|
|
display: none !important;
|
|
|
|
}
|
2020-04-20 18:41:37 +00:00
|
|
|
cursor: pointer;
|
2020-03-04 16:48:20 +00:00
|
|
|
* {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
iframe[src$=".pdf"] {
|
|
|
|
width: 100%;
|
|
|
|
height: 80vh;
|
|
|
|
max-height: 90vh;
|
|
|
|
}
|
2020-12-03 09:33:43 +00:00
|
|
|
button.mediatag-download-btn {
|
|
|
|
flex-flow: column;
|
|
|
|
& > span {
|
|
|
|
display: flex;
|
|
|
|
line-height: 1.5;
|
|
|
|
align-items: center;
|
|
|
|
&.mediatag-download-name b {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-11-24 15:38:31 +00:00
|
|
|
button.btn-default {
|
|
|
|
display: inline-flex;
|
2020-12-03 09:33:43 +00:00
|
|
|
max-width: 250px;
|
|
|
|
min-height: 38px;
|
|
|
|
justify-content: center;
|
2020-11-24 15:38:31 +00:00
|
|
|
.fa {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
b {
|
|
|
|
margin-left: 5px;
|
2020-12-08 09:35:29 +00:00
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-11-24 15:38:31 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-04 16:48:20 +00:00
|
|
|
}
|
|
|
|
media-tag:empty {
|
|
|
|
width: 100px;
|
|
|
|
height: 100px;
|
|
|
|
display: inline-block;
|
|
|
|
border: 1px solid #BBB;
|
|
|
|
}
|
2020-12-03 14:22:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.markdown_cryptpad() {
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
font-weight: bold;
|
|
|
|
padding-bottom: 0.3em;
|
|
|
|
border-bottom: 1px solid #eee;
|
|
|
|
}
|
|
|
|
li {
|
|
|
|
min-height: 22px;
|
|
|
|
}
|
|
|
|
.todo-list-item {
|
|
|
|
list-style: none;
|
|
|
|
position: relative;
|
|
|
|
.fa {
|
|
|
|
position: absolute;
|
|
|
|
margin-left: -17px;
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.mediatag_cryptpad();
|
2020-03-04 16:48:20 +00:00
|
|
|
|
2020-07-02 13:04:54 +00:00
|
|
|
pre.markmap {
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
svg {
|
|
|
|
height: 400px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pre[data-plugin] {
|
2020-04-06 09:42:47 +00:00
|
|
|
svg {
|
|
|
|
max-width: 100%;
|
2020-04-20 18:41:37 +00:00
|
|
|
cursor: pointer;
|
2020-04-21 14:40:19 +00:00
|
|
|
.tools_unselectable();
|
2020-04-06 09:42:47 +00:00
|
|
|
}
|
|
|
|
}
|
2020-03-04 16:48:20 +00:00
|
|
|
}
|
|
|
|
|
2017-09-04 13:09:54 +00:00
|
|
|
.markdown_preformatted-code (@color: #333) {
|
|
|
|
pre > code {
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
border: 1px solid @color;
|
|
|
|
width: 90%;
|
|
|
|
margin: auto;
|
|
|
|
padding-left: .25vw;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.markdown_gfm-table (@color: black) {
|
|
|
|
table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
tr {
|
|
|
|
th {
|
2018-10-29 11:15:53 +00:00
|
|
|
border: 1px solid @color;
|
2017-09-04 13:09:54 +00:00
|
|
|
padding: 15px;
|
|
|
|
}
|
2018-10-29 11:15:53 +00:00
|
|
|
td {
|
|
|
|
border: 1px solid @color;
|
|
|
|
}
|
2017-09-04 13:09:54 +00:00
|
|
|
}
|
|
|
|
}
|
2018-07-18 12:31:01 +00:00
|
|
|
}
|
|
|
|
|