body, html {
display: flex;
flex-grow: 1;
width: 100%;
font-family: sans-serif;
margin: 0;
padding: 0;
}
button {
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #e0e0e0;
}
.container {
display: flex;
min-height: 100vh;
flex-grow: 1;
}
.input-panel, .output-panel {
display: flex;
flex-grow: 1;
flex-direction: column;
flex: 1;
padding: 20px;
box-sizing: border-box;
overflow: auto;
}
.output-panel {
border-left: 1px solid #ccc;
display: flex;
flex-direction: column;
}
.input-panel {
max-width: 600px;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
}
.output-panel {
border-left: none;
border-top: 1px solid #ccc;
}
}
.tab-selector {
display: flex;
flex-grow: 0;
margin-bottom: 10px;
}
.tab-selector select {
display: flex;
flex-grow: 1;
font-size: 14px;
font-weight: bold;
padding: 10px;
}
.tab-content {
display: flex;
flex-grow: 1;
flex-direction: column;
padding: 10px;
border: 1px solid #ddd;
margin-bottom: 10px;
overflow: scroll;
}
.tab-content.hidden {
display: none;
}
.controls {
display: flex;
flex-grow: 0;
flex-direction: column;
}
.controls-row {
display: flex;
flex-direction: row;
}
.controls-cell {
display: flex;
flex-direction: column;
flex-grow: 1;
}
.controls label {
display: block;
margin-top: 10px;
}
.controls input[type="text"],
.controls input[type="number"],
.controls input[type="file"] {
width: calc(100% - 10px);
padding: 5px;
margin-bottom: 10px;
box-sizing: border-box;
}
.file-inputs {
margin-top: 10px;
margin-bottom: 10px;
display: flex;
flex-grow: 1;
flex-direction: row;
justify-content: space-between;
}
.file-inputs button {
margin-right: 10px;
}
.editor-container {
border: 1px solid #ccc;
display: flex;
flex-grow: 1;
overflow: scroll;
max-height: 80vh;
}
.line-numbers {
background-color: #f0f0f0;
text-align: right;
white-space: nowrap;
user-select: none;
font-family: monospace;
font-weight: bold;
max-width: 20px;
text-wrap: auto;
padding-right: 5px;
padding-left: 5px;
font-size: 12px;
line-height: 1.2;
}
.editor {
flex: 1;
outline: none;
white-space: pre;
overflow-wrap: break-word;
tab-size: 4;
margin: 0;
font-size: 12px;
line-height: 1.2;
font-weight: bold;
}
.editor#html-editor pre {
box-sizing: border-box;
font-family: monospace;
font-size: 14px;
margin-top: 0px;
margin-bottom: 0px;
overflow-wrap: normal;
padding: var(--base-size-16);
overflow: auto;
line-height: 1.45;
color: rgb(31, 35, 40);
border-radius: 6px;
word-break: normal;
}
.pdf-viewer-wrapper {
display: flex;
flex-direction: row;
flex-grow: 1;
}
.pdf-viewer-c1 {
display: flex;
flex-direction: column;
flex-grow: 1;
}
.pdf-viewer-controls {
margin-bottom: 10px;
display: flex;
align-items: center;
}
.pdf-viewer-controls button,
.pdf-viewer-controls input {
margin-right: 10px;
}
.pdf-viewer {
border: 1px solid #ccc;
padding: 10px;
display: block;
min-height: 100%;
max-height: 80vh;
background-color: #333;
overflow-x: hidden;
overflow-y: scroll;
max-height: 80vh;
}
.pdf-viewer svg,
#minimap-view svg {
width: 100%;
height: auto;
background-color: #fff;
display: block;
margin-bottom: 5%;
}
.sidebar {
min-width: 150px;
max-width: 150px;
border-left: 1px solid #ccc;
padding: 10px;
box-sizing: border-box;
overflow-y: auto;
display: flex;
flex-direction: column;
}
#pdf-viewer-error {
margin-top: 0px;
margin-bottom: 0px;
font-family: monospace;
font-size: 12px;
background: darkred;
font-weight: bold;
color: white;
border: none;
outline: none;
}
#pdf-viewer-error p {
padding: 10px;
}
.sidebar-modes button {
display: block;
width: 100%;
padding: 5px;
margin-bottom: 5px;
text-align: left;
background-color: #eee;
border: none;
cursor: pointer;
}
.sidebar-modes button.active {
background-color: #ddd;
}
.sidebar-content {
padding: 10px;
border: 1px solid #ddd;
overflow-y: scroll;
display: block;
}
.sidebar-content.hidden {
display: none;
}
#minimap-view {
background: #333;
min-height: 100%;
max-height: 85vh;
}
.resources-container {
margin: 10px 0;
border-radius: 4px;
background-color: #f9f9f9;
}
.resources-scroll-container {
display: flex;
flex-direction: column;
gap: 10px;
max-height: 200px;
overflow-y: auto;
}
.resources-section h4 {
margin: 0 0 8px 0;
font-size: 14px;
color: #555;
}
.resources-grid {
display: flex;
flex-wrap: nowrap;
gap: 10px;
overflow-x: auto;
padding-bottom: 5px;
}
.resource-item {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 70px;
border: 1px solid #ddd;
border-radius: 4px;
padding: 5px;
background-color: white;
flex-shrink: 0;
}
.resource-preview {
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
border-radius: 2px;
background-color: #eee;
}
.resource-preview img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}
.resource-name {
margin-top: 5px;
font-size: 12px;
text-align: center;
width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.resource-delete {
position: absolute;
top: -8px;
right: -8px;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #ff4d4d;
color: white;
border: none;
font-size: 14px;
line-height: 1;
cursor: pointer;
z-index: 2;
display: flex;
align-items: center;
justify-content: center;
padding: 0;
}
.resource-delete:hover {
background-color: #ff0000;
}
.font-preview {
font-family: sans-serif;
font-size: 24px;
font-weight: bold;
color: #333;
}
.config-buttons-container {
display: flex;
gap: 10px;
margin-bottom: 10px;
}
.examples-dropdown-container {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.bookmarks-list, .layers-list {
list-style: none;
padding: 0;
margin: 0;
}
.bookmark-item, .layer-item {
padding: 5px 0;
border-bottom: 1px solid #eee;
}
.bookmark-item a {
text-decoration: none;
color: #333;
display: block;
padding: 3px 5px;
border-radius: 3px;
}
.bookmark-item a:hover {
background-color: #f0f0f0;
color: #007bff;
}
.layer-item {
display: flex;
align-items: center;
padding: 3px 0;
}
.layer-item input[type="checkbox"] {
margin-right: 8px;
}
.empty-message {
font-style: italic;
color: #666;
padding: 10px 0;
}
.sidebar-content h3 {
margin-top: 0;
margin-bottom: 10px;
font-size: 14px;
color: #555;
}