// Copyright (C) 2021  Shanhu Tech Inc.
//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU Affero General Public License as published by the
// Free Software Foundation, either version 3 of the License, or (at your
// option) any later version.
//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License
// for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.

@import './mono.less';

div.article {
    font-size: 16px;
    line-height: 1.5em;

    h1, h2, h3, h4, h5, h6 {
        font-weight: normal;
        line-height: 1.5em;
    }

    h1 { font-size: 28px; margin-top: 40px; margin-bottom: 30px; }
    h2 { font-size: 24px; margin-top: 24px; margin-bottom: 12px; }
    h3 { font-size: 20px; margin-top: 14px; margin-bottom: 5px; }
    h4 { font-size: 18px; margin-top: 7px; margin-bottom: 5px; }
    h5 { font-size: 17px; margin-top: 5px; margin-bottom: 3px; }
    h6 { font-size: 16px; margin-top: 5px; margin-bottom: 3px; }

    p {
        margin-top: 7px;
        margin-bottom: 12px;
    }

    hr {
        margin-top: 20px;
        margin-bottom: 20px;
        width: 80%;
        border: 0;
        border-bottom: 1px dashed #ddd;
    }

    h1 { text-align: center; }

    h1.left { text-align: left; }

    strong {
        font-weight: normal;
        color: #966900;
    }

    em { color: #181; }

    pre, code { .mono14(); }

    code {
        border-radius: 3px;
        border: 1px solid #ccc;
        background: #f7f7f7;
        padding: 2px 5px 2px 5px;
        white-space: nowrap;
    }

    pre {
        background: #f7f7f7;
        border-radius: 3px;
        border: 1px solid #ccc;
        padding: 3px 8px 3px 8px;
        line-height: 20px;
        overflow: auto;

        code {
            border: none;
            padding: 0px;
            white-space: inherit;
        }
    }

    blockquote { color: #888; }

    ul, ol { padding-left: 30px; }

    table {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
