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

89 lines
1.3 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);
}
.document-viewer .markdown-preview {
padding: 32px 16px;
}
.document-viewer .CodeMirror {
height: 100%;
width: 100%;
min-height: 100px;
padding: 0;
margin: 0;
.CodeMirror-code {
font-size: calc(var(--font-size-subtext-multiple) * 1em);
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;
}
}
.document-viewer__content {
overflow: auto;
width: 100%;
height: 100%;
.markdown-preview {
padding: 32px 16px;
height: 100%;
overflow: auto;
}
2018-07-05 07:32:08 +02:00
2018-07-27 02:24:00 +02:00
textarea {
/*
resize: none;
background: transparent;
color: var(--card-text-color);
border: 0;
outline: none;
font-family: monospace;
*/
display: none;
2018-06-15 02:19:21 +02:00
}
}