2024-05-14 08:45:41 +02:00
|
|
|
// Copyright 2024, Command Line Inc.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
.view-preview {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow: hidden;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-06-14 20:10:54 +02:00
|
|
|
margin: 5px;
|
2024-05-14 18:37:41 +02:00
|
|
|
|
|
|
|
&.view-preview-markdown {
|
|
|
|
align-items: start;
|
|
|
|
justify-content: start;
|
2024-05-17 03:01:52 +02:00
|
|
|
overflow: auto;
|
2024-05-14 18:37:41 +02:00
|
|
|
}
|
2024-05-16 09:29:58 +02:00
|
|
|
|
|
|
|
&.view-preview-text {
|
|
|
|
align-items: start;
|
|
|
|
justify-content: start;
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
pre {
|
|
|
|
font: var(--fixed-font);
|
|
|
|
}
|
|
|
|
}
|
2024-05-17 07:48:23 +02:00
|
|
|
|
|
|
|
&.view-preview-image,
|
|
|
|
&.view-preview-video,
|
|
|
|
&.view-preview-audio {
|
|
|
|
video,
|
|
|
|
audio,
|
|
|
|
img {
|
|
|
|
width: 100%;
|
2024-07-09 00:20:52 +02:00
|
|
|
height: 100%;
|
2024-05-17 07:48:23 +02:00
|
|
|
padding: 10px;
|
|
|
|
object-fit: contain;
|
|
|
|
}
|
|
|
|
}
|
2024-05-20 20:39:23 +02:00
|
|
|
&.view-preview-directory {
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: start;
|
|
|
|
}
|
2024-05-14 08:45:41 +02:00
|
|
|
}
|
2024-06-04 00:50:51 +02:00
|
|
|
|
|
|
|
.full-preview {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-06-04 03:22:26 +02:00
|
|
|
width: 100%;
|
2024-06-14 20:10:54 +02:00
|
|
|
overflow: hidden;
|
2024-06-04 00:50:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.view-nav {
|
|
|
|
display: flex;
|
2024-07-11 00:06:19 +02:00
|
|
|
flex-shrink: 0;
|
2024-06-04 03:22:26 +02:00
|
|
|
padding: 0.2rem 0 0.2rem 0;
|
2024-06-04 00:50:51 +02:00
|
|
|
|
|
|
|
.view-nav-item {
|
|
|
|
border-radius: 3px;
|
2024-06-04 03:22:26 +02:00
|
|
|
padding: 0.2rem 0;
|
|
|
|
|
|
|
|
&.clickable {
|
|
|
|
cursor: pointer;
|
2024-06-04 00:50:51 +02:00
|
|
|
|
2024-06-04 03:22:26 +02:00
|
|
|
&:hover {
|
|
|
|
background-color: var(--highlight-bg-color);
|
|
|
|
}
|
2024-06-04 00:50:51 +02:00
|
|
|
}
|
|
|
|
|
2024-06-04 03:22:26 +02:00
|
|
|
&.current-file {
|
|
|
|
background-color: transparent;
|
|
|
|
cursor: default;
|
|
|
|
font-weight: bold;
|
2024-06-04 00:50:51 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-07-11 00:06:19 +02:00
|
|
|
|
|
|
|
.full-preview-content {
|
|
|
|
flex-grow: 1;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|