2021-01-05 03:06:53 +00:00
|
|
|
/*---------------------------------------------------------------------------------------------
|
|
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--container-paddding: 20px;
|
|
|
|
--input-padding-vertical: 2px;
|
|
|
|
--input-padding-horizontal: 4px;
|
|
|
|
--input-margin-vertical: 4px;
|
|
|
|
--input-margin-horizontal: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
html, body {
|
|
|
|
height: 100%;
|
|
|
|
min-height: 100%;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows: auto 1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
input:not([type='checkbox']),
|
|
|
|
textarea {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
border: none;
|
2022-01-14 17:48:16 +00:00
|
|
|
margin-right: 0.3em;
|
2021-01-05 03:06:53 +00:00
|
|
|
font-family: var(--vscode-font-family);
|
|
|
|
padding: var(--input-padding-vertical) var(--input-padding-horizontal);
|
|
|
|
color: var(--vscode-input-foreground);
|
|
|
|
outline-color: var(--vscode-input-border);
|
|
|
|
background-color: var(--vscode-input-background);
|
|
|
|
}
|
|
|
|
|
|
|
|
input::placeholder,
|
|
|
|
textarea::placeholder {
|
|
|
|
color: var(--vscode-input-placeholderForeground);
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
border: none;
|
2022-01-14 17:48:16 +00:00
|
|
|
padding: 3px;
|
2021-01-05 03:06:53 +00:00
|
|
|
text-align: center;
|
|
|
|
outline: 1px solid transparent;
|
2021-01-15 01:05:34 +00:00
|
|
|
color: var(--vscode-icon-foreground);
|
2021-01-07 01:51:41 +00:00
|
|
|
background: none;
|
2022-01-14 17:48:16 +00:00
|
|
|
border-radius: 5px;
|
2021-01-05 03:06:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
button:hover:not(:disabled) {
|
|
|
|
cursor: pointer;
|
2022-01-14 17:48:16 +00:00
|
|
|
color: var(--vscode-toolbar-hoverForeground);
|
|
|
|
background: var(--vscode-toolbar-hoverBackground);
|
2021-01-05 03:06:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
button:disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2022-01-14 17:48:16 +00:00
|
|
|
input:focus,
|
2021-01-05 03:06:53 +00:00
|
|
|
button:focus {
|
|
|
|
outline-color: var(--vscode-focusBorder);
|
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
display: flex;
|
|
|
|
margin: 0.4em 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.url-input {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.controls {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.controls button {
|
|
|
|
display: flex;
|
|
|
|
margin-right: 0.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.content {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
iframe {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: none;
|
2021-02-08 21:58:58 +00:00
|
|
|
background: white; /* Browsers default to a white background */
|
2021-01-05 03:06:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.iframe-focused-alert {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 1em;
|
|
|
|
background: var(--vscode-editorWidget-background);
|
|
|
|
color: var(--vscode-editorWidget-foreground);
|
|
|
|
padding: 0.2em 0.2em;
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
|
|
font-size: 8px;
|
|
|
|
font-family: monospace;
|
|
|
|
user-select: none;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2021-01-06 05:58:59 +00:00
|
|
|
.iframe-focused.enable-focus-lock-indicator .iframe-focused-alert {
|
2021-01-05 03:06:53 +00:00
|
|
|
display: block;
|
|
|
|
}
|