/* node */

.cjnote-node * {
    font-family: "Microsoft Yahei";
    line-height: 1.3;
}

.cjnote-node h1,
.cjnote-node h2,
.cjnote-node h3,
.cjnote-node h4,
.cjnote-node h5,
.cjnote-node h6 {
    margin-top: 5px;
    margin-bottom: 5px;
    font-weight: bold;
}

.cjnote-node h1 {
    font-size: 1.85em;
}

.cjnote-node h2 {
    font-size: 1.7em;
}

.cjnote-node h3 {
    font-size: 1.56em;
}

.cjnote-node h4 {
    font-size: 1.43em;
}

.cjnote-node h5 {
    font-size: 1.3em;
}

.cjnote-node h6 {
    font-size: 1.2em;
}

.cjnote-node {
    margin-left: 2px;
}

.cjnote-node.root {
    margin-left: 0px;
}

.cjnote-node.title {
    padding-left: 2px;
    margin-bottom: 10px;
}

body.ui-mobile .cjnote-node.title {
    padding-left: 0px;
    margin-bottom: 2px;
}

.cjnote-node.title>.text-container {
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: var(--su-border-color-light);
}

body.color-scheme-dark .cjnote-node.title>.text-container {
    border-bottom-color: var(--su-border-color-dark);
}

.cjnote-node.p {
    min-height: 15px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 2px;
    margin-left: 0px;
}

.cjnote-node.list>.children-container>ul {
    padding-left: 20px;
    margin-top: 0px;
    margin-bottom: 2px;
}

/* 和bootstrap冲突 */
.cjnote-node.table {
    width: auto;
}

.cjnote-node.table>.children-container>table {
    border-collapse: collapse;
}

.cjnote-node.table>.children-container>table,
.cjnote-node.table>.children-container>table th,
.cjnote-node.table>.children-container>table td {
    border-style: solid;
    border-width: 1px;
    border-color: gray;
}

.cjnote-node.table>.children-container>table th,
.cjnote-node.table>.children-container>table td {
    padding-top: 2px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-left: 5px;
    text-align: left;
}

.cjnote-node.quotation {
    background-color: #f0f0f0;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 5px;
    overflow-x: auto;
}

body.color-scheme-dark .cjnote-node.quotation {
    background-color: #282828;
}

.cjnote-node.quotation .cjnote-node.p {
    font-size: small;
    white-space: nowrap;
}

.cjnote-node.img>.children-container>.img-horizontal {
    margin: auto;
    width: 70%;
}

.cjnote-node.img>.children-container>.img-vertical {
    margin: auto;
    width: 46.66%;
}

.cjnote-node.img>.children-container>div>img {
    display: block;
    margin: auto;
    max-width: 100%;
}

.cjnote-node.img>.children-container>div>.explanation {
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.8em;
}

/* dir */

.cjnote-dir * {
    font-family: "Microsoft Yahei";
    font-size: 15px;
    white-space: nowrap;
}

.cjnote-dir.title>.text-container {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 2px;
}

.cjnote-dir.title>.children-container {
    padding-left: 12px;
}