CyberChef/src/web/stylesheets/components/io/_io.css

205 lines
3.8 KiB
CSS
Executable file

/**
* Input/Output area styles
*
* @author n1474335 [n1474335@gmail.com]
* @copyright Crown Copyright 2017
* @license Apache-2.0
*/
#input,
#output {
background-color: var(--primary-background-colour);
}
#input-text,
#output-text {
position: relative;
width: 100%;
height: 100%;
margin: 0;
background-color: transparent;
overflow: hidden;
user-select: auto;
}
/* To vertically align the title nicely in the center */
label[for="input-text"],
label[for="output-text"] {
line-height: revert;
}
#input .cm-scroller,
#output .cm-scroller {
overflow-y: auto;
}
#input .cm-scroller:hover,
#output .cm-scroller:hover {
cursor: initial;
}
#output-text.html-output .cm-content,
#output-text.html-output .cm-line,
#output-html {
display: block;
height: 100%;
user-select: auto;
}
#output-text.html-output .cm-line .cm-widgetBuffer,
#output-text.html-output .cm-line>br {
display: none;
}
.cm-editor {
height: 100%;
}
.cm-editor .cm-content {
font-family: var(--fixed-width-font-family);
font-size: var(--fixed-width-font-size);
color: var(--fixed-width-font-colour);
}
#input-wrapper,
#output-wrapper {
height: calc(100% - var(--title-height));
}
#input-wrapper.show-tabs,
#output-wrapper.show-tabs {
height: calc(100% - var(--tab-height) - var(--title-height));
}
#output-loader {
position: absolute;
bottom: var(--controls-height);
z-index: 100;
left: 0;
width: 100%;
height: 100%;
margin: 0;
background-color: var(--secondary-background-colour);
opacity: 0;
visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.5s ease;
}
@media only screen and (min-width: 1024px){
#output-loader {
bottom: 0;
}
}
#output-loader-animation {
display: block;
position: absolute;
width: 60%;
height: 60%;
top: 10%;
transition: all 0.5s ease;
}
#output-loader .loading-msg {
opacity: 1;
font-family: var(--primary-font-family);
line-height: var(--primary-line-height);
color: var(--primary-font-colour);
left: unset;
top: 30%;
position: relative;
transition: all 0.5s ease;
}
.io-info {
margin-right: 18px;
margin-top: 1px;
height: 30px;
text-align: right;
line-height: 12px;
font-family: var(--fixed-width-font-family);
font-weight: normal;
font-size: 8pt;
display: flex;
align-items: center;
}
.dropping-file {
border: 5px dashed var(--drop-file-border-colour) !important;
}
#input-find-options,
#output-find-options {
display: flex;
flex-direction: row;
flex-wrap: wrap;
width: 100%;
}
#input-tab-body .form-group.input-group,
#output-tab-body .form-group.input-group {
width: 70%;
float: left;
margin-bottom: 2rem;
}
.input-find-option .toggle-string {
width: 70%;
display: inline-block;
}
.input-find-option-append button {
border-top-right-radius: 4px;
background-color: var(--arg-background) !important;
margin: unset;
}
.input-find-option-append button:hover {
filter: brightness(97%);
}
.form-group.output-find-option {
width: 70%;
float: left;
}
#input-num-results-container,
#output-num-results-container {
width: 20%;
float: right;
margin: 0 0 0 10%;
}
#input-find-options-checkboxes,
#output-find-options-checkboxes {
list-style: none;
padding: 0;
margin: auto;
overflow-x: auto;
overflow-y: hidden;
text-align: center;
width: fit-content;
}
#input-find-options-checkboxes li,
#output-find-options-checkboxes li {
display: flex;
flex-direction: row;
float: left;
padding: 10px;
text-align: center;
}
#input .cm-panels,
#output .cm-panels {
border-color: var(--primary-border-colour);
}
/* maximise pane and lay on top of everything ( mobile UI )*/
.top-zindex {
z-index: 200;
}