2017-04-13 17:59:37 +01:00
|
|
|
/**
|
|
|
|
* Input/Output area styles
|
|
|
|
*
|
|
|
|
* @author n1474335 [n1474335@gmail.com]
|
|
|
|
* @copyright Crown Copyright 2017
|
|
|
|
* @license Apache-2.0
|
|
|
|
*/
|
|
|
|
|
2019-03-22 15:10:19 +00:00
|
|
|
#input-text,
|
2017-04-24 23:59:35 +01:00
|
|
|
#output-text,
|
|
|
|
#output-html {
|
2017-04-13 17:59:37 +01:00
|
|
|
position: relative;
|
2016-11-28 10:42:58 +00:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2017-04-13 17:59:37 +01:00
|
|
|
margin: 0;
|
2016-11-28 10:42:58 +00:00
|
|
|
padding: 3px;
|
|
|
|
-moz-padding-start: 3px;
|
|
|
|
-moz-padding-end: 3px;
|
2017-04-13 17:59:37 +01:00
|
|
|
border: none;
|
2016-11-28 10:42:58 +00:00
|
|
|
border-width: 0px;
|
|
|
|
resize: none;
|
|
|
|
background-color: transparent;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2019-03-29 13:29:24 +00:00
|
|
|
#output-wrapper{
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#output-wrapper .textarea-wrapper {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
|
|
pointer-events: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-11-28 10:42:58 +00:00
|
|
|
#output-html {
|
|
|
|
display: none;
|
|
|
|
overflow-y: auto;
|
|
|
|
-moz-padding-start: 1px; /* Fixes bug in Firefox */
|
|
|
|
}
|
|
|
|
|
2019-04-02 16:58:36 +01:00
|
|
|
#input-tabs-wrapper #input-tabs,
|
|
|
|
#output-tabs-wrapper #output-tabs {
|
2019-03-21 12:31:01 +00:00
|
|
|
list-style: none;
|
|
|
|
background-color: var(--title-background-colour);
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
border-bottom: 1px solid var(--primary-border-colour);
|
2019-04-04 10:57:01 +01:00
|
|
|
border-left: 1px solid var(--primary-border-colour);
|
2019-03-21 12:31:01 +00:00
|
|
|
height: var(--tab-height);
|
2019-04-04 10:57:01 +01:00
|
|
|
clear: none;
|
2019-03-21 12:31:01 +00:00
|
|
|
}
|
|
|
|
|
2019-04-02 16:58:36 +01:00
|
|
|
#input-tabs li,
|
|
|
|
#output-tabs li {
|
2019-03-21 12:31:01 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
width: 100%;
|
|
|
|
min-width: 120px;
|
|
|
|
float: left;
|
|
|
|
padding: 0px;
|
|
|
|
text-align: center;
|
|
|
|
border-right: 1px solid var(--primary-border-colour);
|
|
|
|
height: var(--tab-height);
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2019-04-02 16:58:36 +01:00
|
|
|
#input-tabs li:hover,
|
|
|
|
#output-tabs li:hover {
|
2019-03-21 12:31:01 +00:00
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--primary-background-colour);
|
|
|
|
}
|
|
|
|
|
2019-03-27 09:39:38 +00:00
|
|
|
.active-input-tab,
|
|
|
|
.active-output-tab {
|
2019-03-21 12:31:01 +00:00
|
|
|
font-weight: bold;
|
2019-03-22 15:10:19 +00:00
|
|
|
background-color: var(--primary-background-colour);
|
2019-03-21 12:31:01 +00:00
|
|
|
}
|
|
|
|
|
2019-06-03 15:37:14 +01:00
|
|
|
.input-tab-content+.btn-close-tab {
|
|
|
|
display: block;
|
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-tab-content+.btn-close-tab i {
|
|
|
|
font-size: 0.8em;
|
|
|
|
}
|
|
|
|
|
2019-04-03 12:00:47 +01:00
|
|
|
.input-tab-buttons,
|
|
|
|
.output-tab-buttons {
|
2019-04-04 10:57:01 +01:00
|
|
|
width: 25px;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0;
|
|
|
|
height: var(--tab-height);
|
|
|
|
line-height: var(--tab-height);
|
|
|
|
font-weight: bold;
|
|
|
|
background-color: var(--title-background-colour);
|
|
|
|
border-bottom: 1px solid var(--primary-border-colour);
|
|
|
|
}
|
|
|
|
|
|
|
|
.input-tab-buttons:hover,
|
|
|
|
.output-tab-buttons:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--primary-background-colour);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#btn-next-input-tab,
|
2019-04-25 16:33:02 +01:00
|
|
|
#btn-input-tab-dropdown,
|
2019-04-04 10:57:01 +01:00
|
|
|
#btn-next-output-tab,
|
2019-05-15 09:37:07 +01:00
|
|
|
#btn-output-tab-dropdown {
|
2019-04-04 10:57:01 +01:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
#btn-previous-input-tab,
|
|
|
|
#btn-previous-output-tab {
|
|
|
|
float: left;
|
2019-04-02 16:58:36 +01:00
|
|
|
}
|
|
|
|
|
2019-06-03 15:12:59 +01:00
|
|
|
#btn-close-all-tabs {
|
|
|
|
color: var(--breakpoint-font-colour) !important;
|
|
|
|
}
|
|
|
|
|
2019-03-27 09:39:38 +00:00
|
|
|
.input-tab-content,
|
|
|
|
.output-tab-content {
|
2019-03-21 12:31:01 +00:00
|
|
|
width: 100%;
|
2019-03-22 15:10:19 +00:00
|
|
|
max-width: 100%;
|
2019-03-21 12:31:01 +00:00
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
height: var(--tab-height);
|
|
|
|
vertical-align: middle;
|
2019-03-22 15:10:19 +00:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-03-21 12:31:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-close-tab {
|
|
|
|
height: var(--tab-height);
|
|
|
|
vertical-align: middle;
|
|
|
|
width: fit-content;
|
|
|
|
}
|
|
|
|
|
2019-07-03 16:05:20 +01:00
|
|
|
.tabs-left > li:first-child {
|
|
|
|
box-shadow: 15px 0px 15px -15px var(--primary-border-colour) inset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tabs-right > li:last-child {
|
|
|
|
box-shadow: -15px 0px 15px -15px var(--primary-border-colour) inset;
|
|
|
|
}
|
|
|
|
|
2019-07-03 13:52:56 +01:00
|
|
|
#input-wrapper,
|
|
|
|
#output-wrapper,
|
|
|
|
#input-wrapper > * ,
|
2019-07-03 14:24:05 +01:00
|
|
|
#output-wrapper > .textarea-wrapper > div,
|
|
|
|
#output-wrapper > .textarea-wrapper > textarea {
|
2019-07-03 13:52:56 +01:00
|
|
|
height: calc(100% - var(--title-height));
|
|
|
|
}
|
|
|
|
|
|
|
|
#input-wrapper.show-tabs,
|
|
|
|
#input-wrapper.show-tabs > *,
|
|
|
|
#output-wrapper.show-tabs,
|
2019-07-03 14:24:05 +01:00
|
|
|
#output-wrapper.show-tabs > .textarea-wrapper > div,
|
|
|
|
#output-wrapper.show-tabs > .textarea-wrapper > textarea {
|
2019-07-03 13:52:56 +01:00
|
|
|
height: calc(100% - var(--tab-height) - var(--title-height));
|
|
|
|
}
|
|
|
|
|
2019-07-03 14:24:05 +01:00
|
|
|
#output-wrapper > .textarea-wrapper > #output-html {
|
2019-07-03 13:52:56 +01:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2019-07-03 14:24:05 +01:00
|
|
|
#show-file-overlay {
|
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
2019-03-29 13:29:24 +00:00
|
|
|
.input-wrapper.textarea-wrapper {
|
2017-04-13 17:59:37 +01:00
|
|
|
width: 100%;
|
2019-03-21 12:31:01 +00:00
|
|
|
box-sizing: border-box;
|
2017-04-13 17:59:37 +01:00
|
|
|
overflow: hidden;
|
2019-03-21 12:31:01 +00:00
|
|
|
pointer-events: auto;
|
2016-11-28 10:42:58 +00:00
|
|
|
}
|
|
|
|
|
2017-04-13 17:59:37 +01:00
|
|
|
.textarea-wrapper textarea,
|
2017-12-18 20:39:55 +00:00
|
|
|
.textarea-wrapper>div {
|
2017-04-24 23:59:35 +01:00
|
|
|
font-family: var(--fixed-width-font-family);
|
|
|
|
font-size: var(--fixed-width-font-size);
|
|
|
|
color: var(--fixed-width-font-colour);
|
2016-11-28 10:42:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#input-highlighter,
|
|
|
|
#output-highlighter {
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
2019-03-22 15:19:03 +00:00
|
|
|
bottom: 0;
|
2016-11-28 10:42:58 +00:00
|
|
|
width: 100%;
|
|
|
|
padding: 3px;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
letter-spacing: normal;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
color: #fff;
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
2019-03-21 12:31:01 +00:00
|
|
|
pointer-events: none;
|
2016-11-28 10:42:58 +00:00
|
|
|
}
|
|
|
|
|
2017-07-28 14:43:44 +01:00
|
|
|
#output-loader {
|
|
|
|
position: absolute;
|
2019-04-02 16:58:36 +01:00
|
|
|
bottom: 0;
|
2017-07-28 14:43:44 +01:00
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
margin: 0;
|
|
|
|
background-color: var(--primary-background-colour);
|
|
|
|
visibility: hidden;
|
2017-09-20 00:48:37 +01:00
|
|
|
opacity: 0;
|
2019-01-15 19:03:17 +00:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
transition: all 0.5s ease;
|
|
|
|
}
|
|
|
|
|
2019-01-16 12:29:34 +00:00
|
|
|
#output-loader-animation {
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2019-01-15 19:03:17 +00:00
|
|
|
width: 60%;
|
|
|
|
height: 60%;
|
|
|
|
top: 10%;
|
2019-01-16 12:29:34 +00:00
|
|
|
transition: all 0.5s ease;
|
2019-01-15 19:03:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#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;
|
2017-07-28 14:43:44 +01:00
|
|
|
|
|
|
|
transition: all 0.5s ease;
|
|
|
|
}
|
|
|
|
|
2019-03-22 15:10:19 +00:00
|
|
|
#input-file,
|
2017-12-26 00:44:40 +00:00
|
|
|
#output-file {
|
2017-12-18 20:39:55 +00:00
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
2019-03-21 12:31:01 +00:00
|
|
|
bottom: 0;
|
2017-12-18 20:39:55 +00:00
|
|
|
width: 100%;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2018-02-09 16:26:39 +00:00
|
|
|
.file-overlay {
|
|
|
|
position: absolute;
|
|
|
|
opacity: 0.8;
|
|
|
|
background-color: var(--title-background-colour);
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2017-12-27 01:52:41 +00:00
|
|
|
#show-file-overlay {
|
|
|
|
position: absolute;
|
|
|
|
right: 15px;
|
2019-05-08 10:10:14 +01:00
|
|
|
top: calc(var(--title-height) + 10px);
|
2017-12-27 01:52:41 +00:00
|
|
|
cursor: pointer;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2016-11-28 10:42:58 +00:00
|
|
|
.io-info {
|
|
|
|
margin-right: 20px;
|
2018-06-09 10:43:36 +01:00
|
|
|
margin-top: 1px;
|
2016-11-28 10:42:58 +00:00
|
|
|
float: right;
|
|
|
|
height: 30px;
|
|
|
|
text-align: right;
|
2018-06-09 10:43:36 +01:00
|
|
|
line-height: 12px;
|
2017-04-24 23:59:35 +01:00
|
|
|
font-family: var(--fixed-width-font-family);
|
2017-04-13 17:59:37 +01:00
|
|
|
font-weight: normal;
|
|
|
|
font-size: 8pt;
|
2017-12-27 23:05:32 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2016-11-28 10:42:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#input-info {
|
|
|
|
line-height: 15px;
|
|
|
|
}
|
|
|
|
|
2017-04-13 17:59:37 +01:00
|
|
|
.dropping-file {
|
2017-04-24 23:59:35 +01:00
|
|
|
border: 5px dashed var(--drop-file-border-colour) !important;
|
2016-11-28 10:42:58 +00:00
|
|
|
}
|
2017-07-28 15:43:23 +01:00
|
|
|
|
|
|
|
#stale-indicator {
|
2018-07-27 15:18:08 +00:00
|
|
|
opacity: 1;
|
|
|
|
visibility: visibile;
|
|
|
|
transition: margin 0s, opacity 0.3s;
|
2017-07-28 15:43:23 +01:00
|
|
|
margin-left: 5px;
|
2017-07-30 12:51:21 +01:00
|
|
|
cursor: help;
|
2017-07-28 15:43:23 +01:00
|
|
|
}
|
2017-08-25 01:24:12 +01:00
|
|
|
|
2018-06-19 00:55:08 +01:00
|
|
|
#stale-indicator i {
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
2018-07-26 17:47:14 +00:00
|
|
|
#magic {
|
2018-07-27 15:18:08 +00:00
|
|
|
opacity: 1;
|
|
|
|
visibility: visibile;
|
|
|
|
transition: margin 0s 0.3s, opacity 0.3s 0.3s, visibility 0.3s 0.3s;
|
2018-07-26 17:47:14 +00:00
|
|
|
margin-left: 5px;
|
2018-07-27 13:37:38 +00:00
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
|
|
|
|
2018-07-27 15:18:08 +00:00
|
|
|
#magic.hidden,
|
|
|
|
#stale-indicator.hidden {
|
|
|
|
visibility: hidden;
|
|
|
|
transition: opacity 0.3s, margin 0.3s 0.3s, visibility 0.3s;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#magic.hidden {
|
|
|
|
margin-left: -32px;
|
|
|
|
}
|
|
|
|
|
2018-07-27 13:37:38 +00:00
|
|
|
#magic svg path {
|
|
|
|
fill: var(--primary-font-colour);
|
2018-07-26 17:47:14 +00:00
|
|
|
}
|
2019-04-25 16:33:02 +01:00
|
|
|
|
2019-05-15 09:37:07 +01:00
|
|
|
#input-find-options,
|
|
|
|
#output-find-options {
|
2019-05-30 13:28:45 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: wrap;
|
2019-05-10 13:48:03 +01:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-06-03 11:15:10 +01:00
|
|
|
#input-tab-body .form-group.input-group,
|
|
|
|
#output-tab-body .form-group.input-group {
|
2019-05-30 14:08:02 +01:00
|
|
|
width: 70%;
|
|
|
|
float: left;
|
|
|
|
margin-bottom: 2rem;
|
2019-05-30 13:28:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2019-05-30 14:08:02 +01:00
|
|
|
#input-num-results-container,
|
2019-05-30 13:28:45 +01:00
|
|
|
#output-num-results-container {
|
|
|
|
width: 20%;
|
|
|
|
float: right;
|
|
|
|
margin: 0;
|
|
|
|
margin-left: 10%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#input-find-options-checkboxes,
|
|
|
|
#output-find-options-checkboxes {
|
|
|
|
list-style: none;
|
2019-05-30 14:08:02 +01:00
|
|
|
padding: 0;
|
|
|
|
margin: auto;
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
text-align: center;
|
|
|
|
width: fit-content;
|
2019-05-30 13:28:45 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#input-find-options-checkboxes li,
|
|
|
|
#output-find-options-checkboxes li {
|
2019-05-10 13:48:03 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
float: left;
|
|
|
|
padding: 10px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2019-05-15 09:37:07 +01:00
|
|
|
#input-search-results,
|
|
|
|
#output-search-results {
|
2019-04-25 16:33:02 +01:00
|
|
|
list-style: none;
|
2019-05-10 13:48:03 +01:00
|
|
|
width: 75%;
|
|
|
|
min-width: 200px;
|
2019-04-25 16:33:02 +01:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
2019-05-15 09:37:07 +01:00
|
|
|
#input-search-results li,
|
|
|
|
#output-search-results li {
|
2019-04-25 16:33:02 +01:00
|
|
|
padding-left: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
2019-05-10 13:48:03 +01:00
|
|
|
color: var(--op-list-operation-font-colour);
|
|
|
|
background-color: var(--op-list-operation-bg-colour);
|
|
|
|
border-bottom: 2px solid var(--op-list-operation-border-colour);
|
2019-05-15 09:37:07 +01:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
2019-05-10 13:48:03 +01:00
|
|
|
}
|
|
|
|
|
2019-05-15 09:37:07 +01:00
|
|
|
#input-search-results li:first-of-type,
|
|
|
|
#output-search-results li:first-of-type {
|
2019-05-10 13:48:03 +01:00
|
|
|
border-top: 2px solid var(--op-list-operation-border-colour);
|
2019-04-25 16:33:02 +01:00
|
|
|
}
|
|
|
|
|
2019-05-15 09:37:07 +01:00
|
|
|
#input-search-results li:hover,
|
|
|
|
#output-search-results li:hover {
|
2019-04-25 16:33:02 +01:00
|
|
|
cursor: pointer;
|
2019-05-10 13:48:03 +01:00
|
|
|
filter: brightness(98%);
|
2019-04-25 16:33:02 +01:00
|
|
|
}
|