@use "../variables";

.thy-typography {
    h1,
    h2 {
        font-size: variables.$font-size-lg;
        margin: 46px 0 variables.$rem-20px;
    }
    h1:first-child {
        margin-top: 0;
    }
    h3 {
        font-size: 14px;
        margin-bottom: 1rem;
    }
    pre {
        font-size: 14px;
        color: variables.$gray-700;
        background: variables.$gray-80;
        padding: 20px;
        border-radius: 2px;
    }
    p {
        color: variables.$gray-700;
    }
    blockquote {
        border-left: 2px solid variables.$gray-300;
        color: variables.$gray-600;
        font-size: 14px;
        margin-bottom: 5px;
        margin-top: 5px;
        padding-left: 10px;
    }
    &.thy-styles-markdown {
        em {
            font-size: variables.$font-size-base;
            font-style: normal;
            color: variables.$gray-500;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            th,
            td {
                border: 1px solid variables.$gray-300;
                padding: 8px;
            }
            thead {
                th {
                    background: variables.$gray-80;
                }
            }
        }
    }

    &.thy-styles-rich {
        .ql-code-block-container {
            background: variables.$gray-80;
            color: variables.$gray-700;
            padding: 20px;
            border-radius: 2px;
        }

        ol {
            color: variables.$gray-700;
            font-size: 14px;
            padding-left: 0;
            li {
                list-style-position: inside;
                &[data-list='bullet'] {
                    list-style-type: disc;
                }
            }
        }
        table {
            width: 100%;
            border-collapse: collapse;
            td {
                border: 1px solid variables.$gray-300;
                padding: 8px;
            }
            tbody {
                tr {
                    &:first-child {
                        background: variables.$gray-80;
                    }
                }
            }
        }

        img {
            max-width: 100%;
        }
    }
}
