lbry-desktop/src/ui/scss/component/_file-render.scss
2019-07-02 00:04:13 -04:00

99 lines
1.6 KiB
SCSS

.file-render {
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 1;
overflow: hidden;
position: absolute;
[data-mode='dark'] & {
border: 1px solid rgba($lbry-gray-1, 0.3);
}
}
.file-render__viewer,
.document-viewer {
background-color: $lbry-white;
[data-mode='dark'] & {
background-color: transparent;
}
}
.file-render__viewer {
width: 100%;
height: 100%;
iframe,
webview,
.video-js {
width: 100%;
height: 100%;
}
// Removing the play button because we have autoplay turned on
// These are classes added by video.js
.video-js .vjs-big-play-button {
display: none;
}
}
.file-render--pdf {
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5em;
}
.document-viewer {
overflow: auto;
.markdown-preview {
height: 100%;
overflow: auto;
padding: var(--spacing-large);
}
}
.code-viewer,
.document-viewer__content {
width: 100%;
height: 100%;
overflow: auto;
}
// Code-viewer
.code-viewer .CodeMirror {
width: 100%;
height: 100%;
min-height: 100px;
.cm-invalidchar {
display: none;
}
.CodeMirror .CodeMirror-lines {
// is there really a .CodeMirror inside a .CodeMirror?
padding: var(--spacing-small) 0;
}
.CodeMirror-code {
@include font-mono;
letter-spacing: 0.1rem;
}
.CodeMirror-gutters {
background-color: $lbry-gray-1;
border-right: 1px solid $lbry-gray-2;
padding-right: var(--spacing-medium);
}
.CodeMirror-line {
padding-left: var(--spacing-medium);
}
.CodeMirror-linenumber {
color: $lbry-gray-5;
}
}