2017-11-23 06:47:58 +00:00
|
|
|
:root {
|
|
|
|
--header-narrow-min-height: 12em;
|
|
|
|
}
|
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
font: 12px arial,sans-serif;
|
|
|
|
}
|
2017-08-31 21:52:38 +00:00
|
|
|
|
|
|
|
#global-progress {
|
|
|
|
position: fixed;
|
|
|
|
height: 4px;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background-color: hsla(180, 66%, 36%, .25);
|
|
|
|
border-left: 0 solid darkcyan;
|
|
|
|
z-index: 2147483647;
|
|
|
|
opacity: 0;
|
|
|
|
transition: opacity 2s;
|
|
|
|
}
|
|
|
|
#global-progress[title] {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2017-11-23 06:47:58 +00:00
|
|
|
.hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
2017-12-03 23:40:22 +00:00
|
|
|
/************ checkbox & select************/
|
|
|
|
#options > div[class="option"] {
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
2017-12-13 03:09:51 +00:00
|
|
|
#options > div.option:nth-last-of-type(7) {
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#options > div.option:nth-last-of-type(7) + .usercss-only {
|
|
|
|
margin-top: -8px;
|
|
|
|
margin-bottom: 12px;
|
|
|
|
}
|
|
|
|
|
2017-12-03 23:40:22 +00:00
|
|
|
#basic-info-enabled {
|
|
|
|
margin-top: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
padding-left: 16px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
/************ header ************/
|
|
|
|
#header {
|
|
|
|
width: 280px;
|
|
|
|
height: 100vh;
|
|
|
|
overflow: auto;
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
padding: 15px;
|
|
|
|
border-right: 1px dashed #AAA;
|
|
|
|
-webkit-box-shadow: 0 0 3rem -1.2rem black;
|
2017-11-23 06:47:58 +00:00
|
|
|
box-shadow: 0 0 3rem -1.2rem black;
|
2017-07-12 18:52:44 +00:00
|
|
|
box-sizing: border-box;
|
2017-11-23 06:47:58 +00:00
|
|
|
z-index: 10;
|
2017-11-27 14:02:23 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
#header h1 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
#sections {
|
|
|
|
padding-left: 280px;
|
|
|
|
}
|
|
|
|
#sections h2 {
|
|
|
|
margin-top: 1rem;
|
|
|
|
margin-left: 1.7rem;
|
|
|
|
}
|
|
|
|
.aligned {
|
2017-12-04 16:14:04 +00:00
|
|
|
display: table-row;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-12-04 16:14:04 +00:00
|
|
|
.aligned > *:not(.svg-inline-wrapper) {
|
|
|
|
display: table-cell;
|
|
|
|
margin-top: 0.1rem;
|
|
|
|
min-height: 1.4rem;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-12-03 23:40:22 +00:00
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
/* basic info */
|
|
|
|
#basic-info {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
#name {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
#basic-info-name {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
#url {
|
|
|
|
margin-left: 0.25rem;
|
|
|
|
}
|
|
|
|
#url:not([href^="http"]) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.svg-icon {
|
|
|
|
cursor: pointer;
|
|
|
|
vertical-align: middle;
|
|
|
|
transition: fill .5s;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
2017-12-12 18:33:41 +00:00
|
|
|
}
|
|
|
|
.svg-inline-wrapper {
|
|
|
|
margin-left: .2rem;
|
|
|
|
display: inline-block;
|
2017-12-13 03:09:51 +00:00
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
#mozilla-format-heading .svg-inline-wrapper {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
#basic-info-enabled .svg-inline-wrapper {
|
|
|
|
margin-left: .1rem;
|
|
|
|
}
|
|
|
|
#colorpicker-settings.svg-inline-wrapper {
|
|
|
|
margin: -2px 0 0 .1rem;
|
|
|
|
}
|
|
|
|
.svg-inline-wrapper.applies-to-help {
|
|
|
|
margin: -2px 0 0 .25rem;
|
2017-12-12 18:33:41 +00:00
|
|
|
}
|
|
|
|
.aligned .svg-inline-wrapper {
|
2017-12-13 03:09:51 +00:00
|
|
|
margin: -2px 0 0 .3rem;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-12-13 03:09:51 +00:00
|
|
|
#sections-help {
|
|
|
|
margin-left: -1px;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-11-27 05:16:42 +00:00
|
|
|
.svg-icon.info {
|
2017-07-12 18:52:44 +00:00
|
|
|
width: 14px;
|
|
|
|
height: 16px;
|
|
|
|
}
|
|
|
|
.svg-icon:hover,
|
2017-08-17 19:08:48 +00:00
|
|
|
.svg-icon.info,
|
|
|
|
.svg-icon.settings {
|
2017-07-12 18:52:44 +00:00
|
|
|
fill: #666;
|
|
|
|
}
|
|
|
|
.svg-icon,
|
2017-08-17 19:08:48 +00:00
|
|
|
.svg-icon.info:hover,
|
|
|
|
.svg-icon.settings:hover {
|
2017-07-12 18:52:44 +00:00
|
|
|
fill: #000;
|
|
|
|
}
|
2017-12-06 22:19:51 +00:00
|
|
|
#options span .svg-icon {
|
|
|
|
margin-top: -3px; /* inline info and config icons */
|
|
|
|
}
|
2017-11-21 23:20:09 +00:00
|
|
|
input:invalid {
|
|
|
|
background-color: rgba(255, 0, 0, 0.1);
|
|
|
|
color: darkred;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
#enabled {
|
|
|
|
margin-left: 0;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
#enabled-label {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2017-11-23 05:10:35 +00:00
|
|
|
/* collapsibles */
|
|
|
|
#header summary {
|
2017-09-01 09:46:41 +00:00
|
|
|
align-items: center;
|
|
|
|
margin-left: -13px;
|
|
|
|
cursor: pointer;
|
2017-12-03 23:40:22 +00:00
|
|
|
margin-top: 8px;
|
|
|
|
margin-bottom: 8px;
|
2017-09-01 09:46:41 +00:00
|
|
|
}
|
2017-12-03 23:40:22 +00:00
|
|
|
|
2017-11-23 05:10:35 +00:00
|
|
|
#header summary h2 {
|
2017-09-01 09:46:41 +00:00
|
|
|
display: inline-block;
|
2017-11-29 16:05:47 +00:00
|
|
|
border-bottom: 1px dotted transparent;
|
2017-12-03 23:40:22 +00:00
|
|
|
margin-top: .1em;
|
|
|
|
margin-bottom: .1em;
|
2017-11-23 05:10:35 +00:00
|
|
|
}
|
2017-12-03 23:40:22 +00:00
|
|
|
|
|
|
|
#header summary:hover h2 {
|
2017-11-23 05:10:35 +00:00
|
|
|
border-color: #bbb;
|
|
|
|
}
|
2017-12-03 23:40:22 +00:00
|
|
|
|
2017-11-23 05:10:35 +00:00
|
|
|
#header summary svg {
|
|
|
|
margin-top: -3px;
|
2017-09-01 09:46:41 +00:00
|
|
|
}
|
2017-12-07 02:31:42 +00:00
|
|
|
|
|
|
|
#actions {
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
}
|
|
|
|
|
2017-11-23 06:47:58 +00:00
|
|
|
#options:not([open]) + #lint h2 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
#lint:not([open]) h2 {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2017-11-23 05:10:35 +00:00
|
|
|
/* options */
|
2017-07-12 18:52:44 +00:00
|
|
|
#options [type="number"] {
|
2017-10-31 09:51:27 +00:00
|
|
|
width: 3.5em;
|
|
|
|
text-align: left;
|
|
|
|
padding-left: .25em;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-12-03 23:40:22 +00:00
|
|
|
#options .option.aligned > label {
|
2017-12-04 16:14:04 +00:00
|
|
|
padding: .1rem .25rem 0 0;
|
|
|
|
vertical-align: middle;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-09-12 19:45:33 +00:00
|
|
|
.set-option-progress {
|
|
|
|
position: absolute;
|
|
|
|
background-color: currentColor;
|
|
|
|
content: "";
|
|
|
|
opacity: .15;
|
|
|
|
}
|
2017-10-11 14:23:39 +00:00
|
|
|
/* footer */
|
2017-12-07 02:31:42 +00:00
|
|
|
.usercss #footer {
|
|
|
|
display: block;
|
2017-10-11 14:23:39 +00:00
|
|
|
margin-top: 1em;
|
2017-11-23 06:47:58 +00:00
|
|
|
margin-bottom: .5em;
|
2017-10-11 14:23:39 +00:00
|
|
|
}
|
2017-12-01 03:17:24 +00:00
|
|
|
#lint:not([open]) + #footer {
|
|
|
|
margin-top: 4em;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
/************ content ***********/
|
|
|
|
#sections > div {
|
|
|
|
margin: 0.7rem;
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
#sections > div:not(:first-of-type) {
|
|
|
|
border-top: 2px solid black;
|
|
|
|
}
|
|
|
|
#sections > div:only-of-type .remove-section {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#sections > div > button:not(:first-of-type) {
|
|
|
|
margin-left: 0.2rem;
|
|
|
|
}
|
|
|
|
.dirty > label::before {
|
|
|
|
content: "*";
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
#sections {
|
|
|
|
counter-reset: codebox;
|
|
|
|
}
|
2017-09-01 09:23:49 +00:00
|
|
|
#sections > div > label {
|
|
|
|
animation: 2s highlight;
|
|
|
|
animation-play-state: paused;
|
|
|
|
animation-direction: reverse;
|
|
|
|
animation-fill-mode: both;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
#sections > div > label::after {
|
|
|
|
counter-increment: codebox;
|
|
|
|
content: counter(codebox);
|
|
|
|
margin-left: 0.25rem;
|
|
|
|
}
|
|
|
|
/* code */
|
|
|
|
.code {
|
|
|
|
height: 10rem;
|
|
|
|
width: 40rem;
|
|
|
|
}
|
2017-09-13 12:28:19 +00:00
|
|
|
.resize-grip-enabled .CodeMirror-scroll {
|
2017-08-09 13:55:07 +00:00
|
|
|
height: auto !important;;
|
|
|
|
position: absolute !important;
|
2017-07-12 18:52:44 +00:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 6px; /* resize-grip height */
|
|
|
|
}
|
2017-09-13 12:28:19 +00:00
|
|
|
.resize-grip-enabled .CodeMirror-vscrollbar {
|
2017-07-12 18:52:44 +00:00
|
|
|
margin-bottom: 7px; /* make space for resize-grip */
|
|
|
|
}
|
2017-09-13 12:28:19 +00:00
|
|
|
.resize-grip-enabled .CodeMirror-hscrollbar {
|
2017-07-12 18:52:44 +00:00
|
|
|
bottom: 7px; /* make space for resize-grip */
|
|
|
|
}
|
2017-09-13 12:28:19 +00:00
|
|
|
.resize-grip-enabled .CodeMirror-scrollbar-filler {
|
2017-07-12 18:52:44 +00:00
|
|
|
bottom: 7px; /* make space for resize-grip */
|
|
|
|
}
|
|
|
|
body[data-match-highlight="token"] .cm-matchhighlight-approved .cm-matchhighlight,
|
|
|
|
body[data-match-highlight="token"] .CodeMirror-selection-highlight-scrollbar {
|
|
|
|
animation: fadein-match-highlighter 1s cubic-bezier(.97,.01,.42,.98);
|
|
|
|
animation-fill-mode: both;
|
|
|
|
}
|
|
|
|
body[data-match-highlight="selection"] .cm-matchhighlight-approved .cm-matchhighlight,
|
|
|
|
body[data-match-highlight="selection"] .CodeMirror-selection-highlight-scrollbar {
|
|
|
|
background-color: rgba(1, 151, 193, 0.1);
|
|
|
|
}
|
|
|
|
@-webkit-keyframes highlight {
|
|
|
|
from {
|
|
|
|
background-color: #ff9;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
background-color: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes fadein {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@keyframes fadein-match-highlighter {
|
|
|
|
from { background-color: transparent; }
|
|
|
|
to { background-color: rgba(1, 151, 193, 0.1); }
|
|
|
|
}
|
|
|
|
.resize-grip {
|
|
|
|
position: absolute;
|
|
|
|
display: block;
|
|
|
|
height: 6px;
|
|
|
|
content: "";
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 9;
|
|
|
|
cursor: n-resize;
|
|
|
|
background-color: inherit;
|
|
|
|
border-top-width: 1px;
|
|
|
|
border-top-style: solid;
|
|
|
|
border-top-color: inherit;
|
|
|
|
}
|
|
|
|
.resize-grip:after {
|
|
|
|
content: "";
|
|
|
|
bottom: 2px;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: 0 8px;
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
border-top-width: 2px;
|
|
|
|
border-top-style: dotted;
|
|
|
|
border-top-color: inherit;
|
|
|
|
}
|
|
|
|
/* applies-to */
|
|
|
|
.applies-to {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.applies-to label {
|
|
|
|
flex: auto;
|
|
|
|
margin-top: 0.2rem;
|
|
|
|
}
|
|
|
|
.applies-to ul {
|
|
|
|
flex: auto;
|
|
|
|
flex-grow: 99;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.applies-to li {
|
|
|
|
display: flex;
|
|
|
|
list-style-type: none;
|
|
|
|
align-items: center;
|
|
|
|
margin-bottom: 0.35rem;
|
|
|
|
}
|
2017-12-03 23:40:22 +00:00
|
|
|
.applies-to li > *:not(button):not(.select-resizer) {
|
2017-07-12 18:52:44 +00:00
|
|
|
flex: auto;
|
|
|
|
min-height: 1.4rem;
|
|
|
|
margin-left: 0.35rem;
|
|
|
|
}
|
2017-12-05 18:32:28 +00:00
|
|
|
html:not(.usercss) .applies-to li .add-applies-to {
|
2017-07-12 18:52:44 +00:00
|
|
|
visibility: hidden;
|
|
|
|
text-align: left;
|
|
|
|
}
|
2017-12-05 18:32:28 +00:00
|
|
|
html:not(.usercss) .applies-to li:last-child .add-applies-to {
|
2017-07-12 18:52:44 +00:00
|
|
|
visibility: visible
|
|
|
|
}
|
|
|
|
.applies-to li .add-applies-to:first-child {
|
|
|
|
margin-left: 1rem;
|
|
|
|
}
|
|
|
|
.applies-to li .applies-value {
|
|
|
|
flex-grow: 99;
|
|
|
|
padding-left: 0.2rem;
|
|
|
|
}
|
|
|
|
.applies-to img {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
.test-regexp {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.has-regexp .test-regexp {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.regexp-report summary, .regexp-report div {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.regexp-report mark {
|
|
|
|
background-color: rgba(255, 255, 0, .5);
|
|
|
|
}
|
|
|
|
.regexp-report details {
|
|
|
|
margin-left: 1rem;
|
2017-11-16 23:17:21 +00:00
|
|
|
word-break: break-all;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
.regexp-report details:not(:last-child) {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
.regexp-report summary {
|
|
|
|
font-weight: bold;
|
|
|
|
margin-left: -1rem;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
cursor: default;
|
2017-10-02 20:18:19 +00:00
|
|
|
overflow-wrap: break-word;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
.regexp-report details[data-type="full"] {
|
|
|
|
color: darkgreen;
|
|
|
|
}
|
|
|
|
.regexp-report details[data-type="partial"] {
|
|
|
|
color: darkgray;
|
|
|
|
}
|
|
|
|
.regexp-report details[data-type="invalid"] {
|
|
|
|
color: maroon;
|
|
|
|
}
|
|
|
|
.regexp-report details details {
|
|
|
|
margin-left: 2rem;
|
|
|
|
margin-top: .5rem;
|
|
|
|
}
|
|
|
|
.regexp-report .svg-icon {
|
|
|
|
position: absolute;
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
|
|
|
.regexp-report details div:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
text-decoration-skip: ink;
|
|
|
|
}
|
|
|
|
.regexp-report details div img {
|
|
|
|
width: 16px;
|
|
|
|
max-height: 16px;
|
|
|
|
position: absolute;
|
|
|
|
margin-left: -20px;
|
|
|
|
margin-top: -1px;
|
|
|
|
}
|
2017-12-05 18:55:01 +00:00
|
|
|
.regexp-report-note {
|
|
|
|
color: #999;
|
|
|
|
position: absolute;
|
|
|
|
margin: 0 0.5rem 0 0;
|
|
|
|
hyphens: auto;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
/************ help popup ************/
|
|
|
|
#help-popup {
|
|
|
|
top: 3rem;
|
|
|
|
right: 3rem;
|
|
|
|
max-width: 50vw;
|
|
|
|
position: fixed;
|
|
|
|
display: none;
|
|
|
|
background-color: white;
|
|
|
|
box-shadow: 3px 3px 30px rgba(0, 0, 0, 0.5);
|
|
|
|
padding: 0.5rem;
|
|
|
|
z-index: 99;
|
|
|
|
}
|
2017-12-04 16:14:04 +00:00
|
|
|
#help-popup.big,
|
|
|
|
#help-popup.wide {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
#help-popup.big {
|
2017-10-12 23:50:41 +00:00
|
|
|
box-shadow: rgba(0, 0, 0, 0.45) 0px 0px 0px 100000px !important;
|
2017-11-28 17:04:28 +00:00
|
|
|
left: calc(280px - 3rem);
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
#help-popup.big .CodeMirror {
|
|
|
|
min-height: 2rem;
|
|
|
|
height: 70vh;
|
|
|
|
}
|
|
|
|
#help-popup .title {
|
|
|
|
font-weight: bold;
|
|
|
|
background-color: rgba(0,0,0,0.05);
|
|
|
|
margin: -0.5rem -0.5rem 0.5rem;
|
|
|
|
padding: .5rem 32px .5rem .5rem;
|
|
|
|
}
|
|
|
|
#help-popup .contents {
|
|
|
|
max-height: calc(100vh - 8rem);
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2017-08-17 19:08:48 +00:00
|
|
|
#help-popup .settings {
|
|
|
|
min-width: 500px;
|
|
|
|
min-height: 200px;
|
|
|
|
max-width: 48vw;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
#help-popup .dismiss {
|
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
|
|
|
top: .5em;
|
|
|
|
}
|
2017-08-25 20:49:20 +00:00
|
|
|
#help-popup .saved-message {
|
2017-08-17 19:08:48 +00:00
|
|
|
display: none;
|
2017-08-25 20:49:20 +00:00
|
|
|
color: #090;
|
2017-08-17 19:08:48 +00:00
|
|
|
margin-left: 10px;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2017-11-21 15:17:56 +00:00
|
|
|
#help-popup .saved-message.show {
|
2017-08-17 19:08:48 +00:00
|
|
|
display: inline-block;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
|
|
|
|
.keymap-list {
|
|
|
|
font-size: 85%;
|
|
|
|
line-height: 1.0;
|
|
|
|
border-spacing: 0;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
|
|
|
.keymap-list input {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.keymap-list tr:nth-child(odd) {
|
|
|
|
background-color: rgba(0, 0, 0, 0.07);
|
|
|
|
}
|
|
|
|
.keymap-list td:first-child {
|
|
|
|
white-space: nowrap;
|
|
|
|
font-family: monospace;
|
|
|
|
padding-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#help-popup button[name^="import"] {
|
|
|
|
line-height: 1.5rem;
|
|
|
|
padding: 0 0.5rem;
|
|
|
|
margin: 0.5rem 0 0 0.5rem;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: 0.5;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
#help-popup.ready button[name^="import"] {
|
|
|
|
pointer-events: all;
|
|
|
|
opacity: 1.0;
|
|
|
|
}
|
2017-08-13 02:28:44 +00:00
|
|
|
#help-popup .rules {
|
|
|
|
padding: 0 15px;
|
|
|
|
}
|
2017-08-26 15:03:28 +00:00
|
|
|
#help-popup button {
|
2017-08-17 19:47:45 +00:00
|
|
|
margin-right: 3px;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
|
|
|
|
/************ lint ************/
|
2017-11-27 14:02:23 +00:00
|
|
|
#lint {
|
2017-07-12 18:52:44 +00:00
|
|
|
overflow-y: auto;
|
2017-12-07 02:31:42 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
2017-11-29 16:24:40 +00:00
|
|
|
#lint > summary {
|
|
|
|
/* workaround for overflow:auto to show the toggle triangle */
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
#lint > div {
|
|
|
|
margin-top: 4em;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
#lint table {
|
|
|
|
font-size: 100%;
|
|
|
|
border-spacing: 0;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
line-height: 1.0;
|
|
|
|
}
|
|
|
|
#lint table:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
#lint caption {
|
|
|
|
text-align: left;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
#lint tbody {
|
|
|
|
font-size: 85%;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
#lint tr:hover {
|
|
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
#lint td[role="severity"] {
|
|
|
|
font-size: 0;
|
|
|
|
width: 16px;
|
|
|
|
}
|
|
|
|
#lint td[role="line"], #lint td[role="sep"] {
|
|
|
|
text-align: right;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
|
|
|
#lint td[role="col"] {
|
|
|
|
text-align: left;
|
|
|
|
padding-right: 0.25rem;
|
|
|
|
}
|
|
|
|
#lint td[role="message"] {
|
|
|
|
text-align: left;
|
2017-11-27 14:02:23 +00:00
|
|
|
white-space: nowrap;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-08-25 20:49:20 +00:00
|
|
|
#message-box.center.lint-config #message-box-contents {
|
|
|
|
text-align: left;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
|
|
|
|
/************ CSS beautifier ************/
|
|
|
|
.beautify-options {
|
|
|
|
white-space: nowrap;
|
2017-12-04 16:14:04 +00:00
|
|
|
}
|
|
|
|
.beautify-options div {
|
|
|
|
float: left;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
.beautify-options div[newline="true"] + div {
|
|
|
|
clear: left;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
.beautify-options div[newline="true"] + div span[indent] {
|
|
|
|
padding-left: 2rem;
|
|
|
|
}
|
2017-12-03 23:40:22 +00:00
|
|
|
.beautify-options > label {
|
2017-12-04 16:14:04 +00:00
|
|
|
top: 1em;
|
|
|
|
margin: 1ex 0;
|
2017-12-03 23:40:22 +00:00
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
.beautify-options:after {
|
|
|
|
clear: both;
|
|
|
|
display: block;
|
2017-12-04 16:14:04 +00:00
|
|
|
content: "";
|
2017-07-12 18:52:44 +00:00
|
|
|
height: 1rem;
|
|
|
|
}
|
|
|
|
.beautify-options span {
|
|
|
|
font-weight: bold;
|
2017-12-04 16:14:04 +00:00
|
|
|
font-family: monospace;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
.beautify-options select {
|
|
|
|
border: none;
|
2017-12-04 16:14:04 +00:00
|
|
|
background: linear-gradient(90deg, rgba(0, 0, 0, .05) 18px, rgba(0, 0, 0, .02) 24px);
|
|
|
|
font-family: monospace;
|
|
|
|
font-weight: bold;
|
|
|
|
padding-left: 4px;
|
|
|
|
margin-left: 4px;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
|
2017-09-11 16:09:25 +00:00
|
|
|
/************ single editor **************/
|
2017-11-23 06:47:58 +00:00
|
|
|
.usercss body {
|
|
|
|
display: flex;
|
|
|
|
height: 100vh;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-items: normal;
|
|
|
|
}
|
|
|
|
|
2017-11-26 13:04:03 +00:00
|
|
|
html:not(.usercss) .usercss-only,
|
|
|
|
.usercss #mozilla-format-container,
|
|
|
|
.usercss #sections > h2 {
|
|
|
|
display: none !important; /* hide during page init */
|
|
|
|
}
|
|
|
|
|
2017-12-12 18:33:41 +00:00
|
|
|
.usercss #name {
|
|
|
|
background-color: #eee;
|
|
|
|
color: #888;
|
|
|
|
}
|
|
|
|
|
2017-09-11 16:09:25 +00:00
|
|
|
#sections .single-editor {
|
|
|
|
margin: 0;
|
2017-11-23 06:47:58 +00:00
|
|
|
padding: 0;
|
|
|
|
display: flex;
|
2017-09-11 16:09:25 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.single-editor .CodeMirror {
|
2017-11-23 06:47:58 +00:00
|
|
|
width: 100%;
|
|
|
|
height: auto;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#footer a {
|
|
|
|
color: #333;
|
|
|
|
transition: color .5s;
|
|
|
|
text-decoration-skip: ink;
|
|
|
|
}
|
|
|
|
|
|
|
|
#footer a:hover {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
|
|
|
|
.usercss.firefox #sections,
|
|
|
|
.usercss.firefox .single-editor,
|
|
|
|
.usercss.firefox .CodeMirror {
|
2017-09-11 16:09:25 +00:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2017-09-13 08:58:03 +00:00
|
|
|
/************ line widget *************/
|
|
|
|
.CodeMirror-linewidget .applies-to {
|
|
|
|
margin: 1em 0;
|
|
|
|
padding: 1em;
|
|
|
|
padding-right: calc(1em + 20px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linewidget .applies-to li {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror-linewidget .applies-to li + li {
|
|
|
|
margin-top: 0.35rem;
|
|
|
|
}
|
|
|
|
|
2017-12-05 18:32:28 +00:00
|
|
|
.CodeMirror-linewidget .applies-to li[data-type="regexp"] .test-regexp {
|
|
|
|
display: inline;
|
2017-10-08 14:03:27 +00:00
|
|
|
}
|
|
|
|
|
2017-12-03 23:40:22 +00:00
|
|
|
.CodeMirror-linewidget li.applies-to-everything {
|
2017-09-13 08:58:03 +00:00
|
|
|
margin-top: 0.2rem;
|
|
|
|
}
|
|
|
|
|
2017-07-12 18:52:44 +00:00
|
|
|
/************ reponsive layouts ************/
|
2017-12-07 02:31:42 +00:00
|
|
|
@media(max-width: 850px) {
|
2017-07-12 18:52:44 +00:00
|
|
|
#header {
|
|
|
|
width: auto;
|
|
|
|
height: auto;
|
|
|
|
position: inherit;
|
|
|
|
border-right: none;
|
|
|
|
border-bottom: 1px dashed #AAA;
|
2017-11-23 06:47:58 +00:00
|
|
|
min-height: var(--header-narrow-min-height);
|
|
|
|
max-height: 50vh;
|
2017-12-07 02:31:42 +00:00
|
|
|
flex-wrap: wrap;
|
|
|
|
flex-direction: row;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
#header section:not(:last-child) {
|
2017-12-07 02:31:42 +00:00
|
|
|
margin-bottom: .5rem;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
#header input[type="checkbox"] {
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
2017-08-27 11:40:23 +00:00
|
|
|
#heading,
|
2017-07-12 18:52:44 +00:00
|
|
|
h2 {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#basic-info {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
2017-12-07 02:31:42 +00:00
|
|
|
flex: 1;
|
|
|
|
margin-right: 2em;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
#basic-info > * {
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
#basic-info > *:first-child {
|
|
|
|
flex-grow: 99;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
#basic-info > *:not(:last-child) {
|
|
|
|
margin-right: 0.8rem;
|
|
|
|
}
|
|
|
|
#basic-info #name {
|
|
|
|
width: auto;
|
|
|
|
flex-grow: 99;
|
|
|
|
}
|
|
|
|
#actions {
|
2017-12-07 02:31:42 +00:00
|
|
|
margin-top: 0;
|
|
|
|
white-space: nowrap;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
#actions > * {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
#options {
|
2017-12-07 02:31:42 +00:00
|
|
|
-webkit-column-count: 3;
|
|
|
|
-moz-column-count: 3;
|
|
|
|
column-count: 3;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
#options:not([open]),
|
|
|
|
#lint:not([open]) {
|
|
|
|
column-count: 1;
|
|
|
|
overflow: initial;
|
|
|
|
}
|
|
|
|
#options:not([open]) + #lint:not([open]) {
|
|
|
|
margin-top: -1em;
|
|
|
|
}
|
|
|
|
#lint {
|
|
|
|
overflow: initial;
|
|
|
|
}
|
|
|
|
#lint summary {
|
|
|
|
position: static;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
#options summary {
|
|
|
|
margin-top: -.25em;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-09-03 15:21:13 +00:00
|
|
|
#options h2 {
|
|
|
|
margin: 0 0 .5em;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
.option label {
|
|
|
|
line-height: 1.25rem;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
#options [type="number"] {
|
|
|
|
text-align: left; /* workaround the column flow bug in webkit */
|
|
|
|
padding-left: 0.2rem;
|
|
|
|
}
|
|
|
|
#options #tabSize-label {
|
|
|
|
position: relative;
|
|
|
|
top: 0.2rem;
|
|
|
|
}
|
2017-11-23 06:47:58 +00:00
|
|
|
#options:not([open]) ~ #lint {
|
2017-12-07 02:31:42 +00:00
|
|
|
margin-top: -1em;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
|
|
|
#lint > div {
|
2017-12-07 02:31:42 +00:00
|
|
|
margin-top: 0;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-08-13 02:28:44 +00:00
|
|
|
#lint table {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
#lint td[role="message"] {
|
|
|
|
max-width: none;
|
|
|
|
}
|
2017-12-07 02:31:42 +00:00
|
|
|
#lint:not([open]) + #footer {
|
|
|
|
margin: .25em 0 -1em .25em;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
#sections {
|
|
|
|
padding-left: 0;
|
|
|
|
}
|
|
|
|
#sections > div {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
#sections > *:not(h2) {
|
|
|
|
padding-left: 0.4rem;
|
|
|
|
}
|
2017-11-23 06:47:58 +00:00
|
|
|
.usercss .CodeMirror-scroll {
|
|
|
|
max-height: calc(100vh - var(--header-narrow-min-height));
|
|
|
|
}
|
|
|
|
.usercss #options:not([open]) ~ #lint.hidden ~ #footer,
|
|
|
|
.usercss #lint:not([open]) + #footer {
|
|
|
|
margin-top: -.25em;
|
|
|
|
}
|
2017-11-28 17:04:28 +00:00
|
|
|
#help-popup.big {
|
|
|
|
left: 3rem;
|
|
|
|
}
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-12-07 02:31:42 +00:00
|
|
|
|
|
|
|
@media (max-width: 720px) {
|
|
|
|
#options {
|
|
|
|
-webkit-column-count: 2;
|
|
|
|
-moz-column-count: 2;
|
|
|
|
column-count: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 450px) {
|
2017-07-12 18:52:44 +00:00
|
|
|
#options {
|
|
|
|
-webkit-column-count: 1;
|
2017-08-27 11:40:23 +00:00
|
|
|
-moz-column-count: 1;
|
|
|
|
column-count: 1;
|
2017-07-12 18:52:44 +00:00
|
|
|
}
|
2017-12-07 02:31:42 +00:00
|
|
|
#actions {
|
|
|
|
flex-wrap: wrap;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
2017-12-09 15:25:44 +00:00
|
|
|
}
|