lbry-desktop/src/ui/scss/component/_file-render.scss

100 lines
1.6 KiB
SCSS
Raw Normal View History

2018-06-15 02:19:21 +02:00
.file-render {
top: 0;
left: 0;
bottom: 0;
2018-10-17 19:14:24 +02:00
right: 0;
2018-06-15 02:19:21 +02:00
overflow: hidden;
2018-10-17 19:14:24 +02:00
position: absolute;
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
border: 1px solid rgba($lbry-gray-1, 0.3);
}
}
.file-render__viewer,
.document-viewer {
background-color: $lbry-white;
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
background-color: transparent;
}
2018-07-27 02:24:00 +02:00
}
.file-render__viewer {
width: 100%;
height: 100%;
2018-10-17 19:14:24 +02:00
2018-07-27 02:24:00 +02:00
iframe,
2019-02-22 06:01:59 +01:00
webview,
.video-js {
2018-06-15 02:19:21 +02:00
width: 100%;
height: 100%;
2018-07-27 02:24:00 +02:00
}
2019-02-22 06:01:59 +01:00
// Removing the play button because we have autoplay turned on
// These are classes added by video.js
2019-02-28 23:51:33 +01:00
.video-js .vjs-big-play-button {
display: none;
}
2018-07-27 02:24:00 +02:00
}
2019-03-20 05:41:51 +01:00
.file-render--pdf {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5em;
}
2018-07-27 02:24:00 +02:00
.document-viewer {
2018-07-27 04:06:39 +02:00
overflow: auto;
2018-10-17 19:14:24 +02:00
.markdown-preview {
height: 100%;
overflow: auto;
padding: var(--spacing-vertical-large);
2018-10-17 19:14:24 +02:00
}
2018-07-27 02:24:00 +02:00
}
2018-07-28 03:42:35 +02:00
.code-viewer,
.document-viewer__content {
width: 100%;
height: 100%;
2018-10-17 19:14:24 +02:00
overflow: auto;
2018-07-28 03:42:35 +02:00
}
2018-10-17 19:14:24 +02:00
// Code-viewer
2018-07-28 03:42:35 +02:00
.code-viewer .CodeMirror {
2018-07-27 02:24:00 +02:00
width: 100%;
2018-07-27 04:06:39 +02:00
height: 100%;
2018-07-27 02:24:00 +02:00
min-height: 100px;
2018-10-17 19:14:24 +02:00
.cm-invalidchar {
display: none;
2018-07-27 02:24:00 +02:00
}
2018-07-28 03:42:35 +02:00
.CodeMirror .CodeMirror-lines {
2018-10-17 19:14:24 +02:00
// is there really a .CodeMirror inside a .CodeMirror?
padding: var(--spacing-vertical-small) 0;
2018-07-28 03:42:35 +02:00
}
2018-10-17 19:14:24 +02:00
.CodeMirror-code {
@include font-mono;
letter-spacing: 0.1rem;
2018-07-27 02:24:00 +02:00
}
.CodeMirror-gutters {
2018-10-17 19:14:24 +02:00
background-color: $lbry-gray-1;
border-right: 1px solid $lbry-gray-2;
padding-right: var(--spacing-vertical-medium);
2018-07-27 02:24:00 +02:00
}
2018-10-17 19:14:24 +02:00
.CodeMirror-line {
padding-left: var(--spacing-vertical-medium);
2018-10-17 19:14:24 +02:00
}
.CodeMirror-linenumber {
color: $lbry-gray-5;
2018-07-27 02:24:00 +02:00
}
}