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;
|
|
|
|
}
|
|
|
|
|
|
|
|
#output-html {
|
|
|
|
display: none;
|
|
|
|
overflow-y: auto;
|
|
|
|
-moz-padding-start: 1px; /* Fixes bug in Firefox */
|
|
|
|
}
|
|
|
|
|
2019-03-21 12:31:01 +00:00
|
|
|
#input-tabs ul {
|
|
|
|
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);
|
|
|
|
height: var(--tab-height);
|
|
|
|
}
|
|
|
|
|
|
|
|
#input-tabs ul li {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
#input-tabs ul li:hover {
|
|
|
|
cursor: pointer;
|
|
|
|
background-color: var(--primary-background-colour);
|
|
|
|
}
|
|
|
|
|
|
|
|
.active-input-tab {
|
|
|
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.input-tab-content {
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2017-04-13 17:59:37 +01:00
|
|
|
.textarea-wrapper {
|
|
|
|
width: 100%;
|
2019-03-22 15:10:19 +00:00
|
|
|
height: calc(100% - var(--title-height));
|
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%;
|
2019-03-22 15:19:03 +00:00
|
|
|
height: calc(100% - var(--title-height));
|
2016-11-28 10:42:58 +00:00
|
|
|
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;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 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%;
|
2019-03-22 15:10:19 +00:00
|
|
|
height: calc(100% - var(--title-height));
|
2017-12-18 20:39:55 +00:00
|
|
|
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;
|
|
|
|
top: 15px;
|
|
|
|
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
|
|
|
}
|