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

80 lines
1.1 KiB
SCSS
Raw Normal View History

2018-06-15 02:19:21 +02:00
.file-render {
width: 100%;
height: 100%;
margin: auto;
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1;
overflow: hidden;
2018-07-27 02:24:00 +02:00
}
.file-render__viewer {
margin: 0;
width: 100%;
height: 100%;
background-color: black;
2018-06-15 02:19:21 +02:00
2018-07-27 02:24:00 +02:00
iframe,
webview {
2018-06-15 02:19:21 +02:00
width: 100%;
height: 100%;
2018-07-27 02:24:00 +02:00
}
}
.document-viewer {
overflow: auto;
background-color: var(--card-bg);
2018-07-27 04:06:39 +02:00
font-size: calc(var(--font-size-subtext-multiple) * 1em);
2018-07-27 02:24:00 +02:00
}
.document-viewer .markdown-preview {
2018-07-27 04:06:39 +02:00
height: 100%;
overflow: auto;
2018-07-27 02:24:00 +02:00
padding: 32px 16px;
}
2018-07-27 04:06:39 +02:00
/* Code-viewer */
2018-07-27 02:24:00 +02:00
.document-viewer .CodeMirror {
2018-07-27 04:06:39 +02:00
margin: 0;
padding: 0;
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;
.CodeMirror-code {
font-family: monospace;
}
.CodeMirror-linenumber {
color: var(--card-text-color);
}
.CodeMirror-line {
padding-left: 16px;
}
.CodeMirror-gutters {
border-right: 1px solid var(--color-divider);
background: var(--color-bg-alt);
}
.cm-invalidchar {
display: none;
}
}
2018-07-27 04:06:39 +02:00
/* Markdown-viewer */
2018-07-27 02:24:00 +02:00
.document-viewer__content {
overflow: auto;
width: 100%;
height: 100%;
textarea {
display: none;
2018-06-15 02:19:21 +02:00
}
}