.api-section {
    position: relative;

    pre {
        white-space: pre-wrap;
    }

    table.api-table {
        min-width: 680px;

        thead th {
            color: white;
            font-size: 16px;
            background-color: $blue;
            border-radius: 4px 4px 0 0;
            text-transform: none;
            padding: 8px 24px;
        }
        
        tbody {
            pre {
                white-space: normal;
                margin: 4px;
                padding: 4px 16px;
            }

            td, th {
                padding: 0;
            }

            th {
                max-width: 150px;
            }
        }

    }
}

.api-type-label {
    border-radius: 4px;
    padding: 4px 16px;
    background-color: $accentblue;
    display: inline;
    margin: 0 16px;

    @each $name, $symbol in $api-symbols {
        &.#{$name} {
            background: map-get($symbol, background);
        }
    }

    @media screen and (max-width: 600px) {
        display: block;
        margin: 8px 0;
    }

    label {
        font-size: 14px;
        color: white;
        font-weight: 500;
        text-transform: uppercase;
    }

}