/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

 .monaco-resource-viewer:focus {
    outline: none !important;
}

.monaco-resource-viewer {
    padding: 5px 0 0 10px;
    box-sizing: border-box;
    height: 100vh;
}

.monaco-resource-viewer.image {
    padding: 10px 10px 0 10px;
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
}

.monaco-resource-viewer.image.full-size {
    padding: 0;
}

.vscode-light .monaco-resource-viewer.image {
    background-image:
        linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230)),
        linear-gradient(45deg, rgb(230, 230, 230) 25%, transparent 25%, transparent 75%, rgb(230, 230, 230) 75%, rgb(230, 230, 230));
}

.vscode-dark .monaco-resource-viewer.image {
    background-image:
        linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20)),
        linear-gradient(45deg, rgb(20, 20, 20) 25%, transparent 25%, transparent 75%, rgb(20, 20, 20) 75%, rgb(20, 20, 20));
}

.monaco-resource-viewer img {
    max-width: 100%;
    max-height: calc(100% - 10px); /* somehow this prevents scrollbars from showing up */
}

.monaco-resource-viewer.oversized img {
    cursor: zoom-in;
}

.monaco-resource-viewer.full-size img {
    max-width: initial;
    max-height: initial;
    cursor: zoom-out;
}

.monaco-resource-viewer .open-external,
.monaco-resource-viewer .open-external:hover {
    cursor: pointer;
    text-decoration: underline;
}
