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

88 lines
1.4 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: $lbry-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: $lbry-white;
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-08-03 20:34:08 +02:00
padding: $spacing-vertical $spacing-width;
2018-07-27 02:24:00 +02:00
}
2018-07-28 03:42:35 +02:00
.code-viewer,
.document-viewer__content {
overflow: auto;
width: 100%;
height: 100%;
}
2018-07-27 04:06:39 +02:00
/* Code-viewer */
2018-07-28 03:42:35 +02:00
.code-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;
2018-07-28 22:17:06 +02:00
/* Block native text selection */
user-select: none;
2018-07-27 02:24:00 +02:00
.CodeMirror-code {
2018-07-28 03:42:35 +02:00
font-size: 1em;
2018-08-01 23:50:36 +02:00
font-weight: 350;
2018-07-28 03:42:35 +02:00
line-height: 1.5em;
2018-08-01 23:50:36 +02:00
font-family: Menlo, Consolas, 'DejaVu Sans Mono', inconsolata, monospace;
2018-07-28 03:42:35 +02:00
letter-spacing: 0.3px;
word-spacing: 1px;
2018-07-27 02:24:00 +02:00
}
.CodeMirror-linenumber {
color: $lbry-gray-5;
2018-07-27 02:24:00 +02:00
}
2018-07-28 03:42:35 +02:00
.CodeMirror .CodeMirror-lines {
padding: 4px 0;
}
2018-07-27 02:24:00 +02:00
.CodeMirror-line {
padding-left: 16px;
}
.CodeMirror-gutters {
border-right: 1px solid $lbry-gray-2;
background: $lbry-gray-1;
2018-07-28 03:42:35 +02:00
padding-right: 8px;
2018-07-27 02:24:00 +02:00
}
.cm-invalidchar {
display: none;
}
}