.file-render { top: 0; left: 0; bottom: 0; right: 0; overflow: hidden; position: absolute; z-index: 1; html[data-mode='dark'] & { border: 1px solid rgba($lbry-gray-1, 0.3); } } .file-render__viewer, .document-viewer { background-color: $lbry-white; html[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; } } .document-viewer { overflow: auto; .markdown-preview { height: 100%; overflow: auto; padding: var(--spacing-vertical-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-vertical-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-vertical-medium); } .CodeMirror-line { padding-left: var(--spacing-vertical-medium); } .CodeMirror-linenumber { color: $lbry-gray-5; } }