/*!
Theme Name: Codemagic documentation
Author: Nevercode Ltd
Description: Codemagic documentation template for WordPress
Version: 0.0.1
*/

// Import core
@import './variables';
@import './reset';
@import './search';
@import './header';
@import './footer';
@import './animations';
@import '../fonts/fonts';

// Import views
@import './article';
@import './homepage';

// Import partials
@import './modules/accordion';
@import './modules/links-group';
@import './modules/tabbed-pane';
@import './modules/clipboard';

html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: $font-family-default;
    color: $black;
    font-size: 14px;
}
.inner {
    width: calc(100% - 100px);
    max-width: 1400px;
    box-sizing: border-box;
    margin: auto;

    @media (max-width: 480px) {
        width: calc(100% - 50px);
    }
}
.page {
    padding-top: 76px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: $black-l;
}

.icon {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    font-weight: 400;
    display: inline-block;
    width: 14px;
    height: 14px;
    background-color: transparent;
    vertical-align: middle;
    -webkit-mask-size: contain;
    mask-size: contain;
    background-position: center center;
}

.editable-field {
    color: $blue-edit;
    position: relative;
    border: 1px dotted $blue-edit;
    padding: 3px 33px 5px 5px;
    border-radius: 5px;
    cursor: pointer;

    &::before {
        content: "";
        background-color: $blue-edit;
        position: absolute;
        right: 25px;
        height: 15px;
        width: 1px;
        top: 50%;
        transform: translate(50%, -50%);
    }
    &::after {
        content: '';
        @include icon(getAssetUrl('media/icons/edit-code.svg'));
        content: "";
        background-color: white;
        margin-right: 7px;
        width: 12px;
        height: 12px;
        position: absolute;
        top: 50%;
        right: 5px;
        transform: translate(50%, -50%);
    }
}
.highlight {
    input {
        width: 50%;
        padding: 5px;
        border: 2px solid $blue-edit;
        border-radius: 5px;
    }
}