viewof editorStyles = print(`
body {
overflow: hidden !important;
}
$PAGE {
margin: 0;
max-width: initial;
--tabsui-editor-width: 70%;
--tabscol-shade: rgba(0, 0, 0, .05);
--tabscol-lightest: #f7f7f9;
--tabscol-light: hsl(240, 14%, 93%);
--tabscol-darkest: #6f7c90;
--tabscol-accent: #266bd9;
}
$TOOLBAR {
max-width: initial;
padding: 2px 6px;
z-index: 2;
box-shadow: 0 2px 4px 2px rgba(0,0,0,.1);
padding-bottom: 4px;
}
$TOOLBAR_LOGO {
padding: 0;
}
$CONTAINER {
display: flex;
flex-direction: row;
position: fixed;
width: 100%;
top: 40px;
bottom: 0;
left: 0;
z-index: 1;
background: white;
overflow: hidden;
}
$CONTAINER:fullscreen,
$CONTAINER:-moz-full-screen,
$CONTAINER:-webkit-full-screen {
top: 0;
}
/* Resize handle. */
$CONTAINER:after {
content: "";
display: block;
flex: 0 0 6px;
order: 1;
background: #ccc;
cursor: move;
}
$EDITOR_AREA,
$SANDBOX_AREA {
position: relative !important;
height: 100% !important;
overflow: auto;
overflow-y: scroll;
}
$SANDBOX_AREA {
order: 2;
flex: 0 0 50vw;
}
$EDITOR_AREA {
order: 0;
flex: 1 1 auto;
pointer-events: initial;
width: initial !important;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
align-content: flex-start;
counter-reset: index 0;
padding: 9px 3px 6px 6px;
}
/* Separates tabs and editor */
$EDITOR_AREA:after {
content: "";
order: 2;
height: 1px;
background: var(--tabscol-shade);
margin: 0 -3px 18px -6px;
display: block;
flex: 1 0 auto;
width: 100%;
}
$CELL {
margin-top: auto !important;
margin-bottom: 50px !important;
padding-top: initial !important;
position: relative;
display: contents;
}
$ACTION_INSERT,
$ASIDE_WRAP,
$EDITOR_WRAP {
order: 1;
}
$ACTION_INSERT {
flex: 0 0 auto;
opacity: 0;
display: block;
top: 0 !important;
left: 0 !important;
width: 13px !important;
height: auto !important;
line-height: 32px;
padding: 0 !important;
z-index: 101;
overflow: hidden;
margin: 0 0 0 -13px;
position: relative;
background: var(--tabscol-darkest);
border-radius: initial;
color: white;
}
$ACTION_INSERT:hover {
opacity: 1;
}
$CELL:first-child $ACTION_INSERT {
display: none;
}
$ACTION_INSERT > svg {
transform: rotate(90deg);
position:relative;
left: -1px;
vertical-align: -4px;
}
$ASIDE_WRAP {
flex: 1 0 auto;
width: initial !important;
height: initial !important;
top: 0 !important;
left: initial !important;
position: relative !important;
z-index: 1;
white-space: nowrap;
padding: 6px 28px 2px 10px!important;
margin: 0 6px 6px 0;
background: var(--tabscol-lightest);
color: var(--tabscol-darkest);
border: none;
border-bottom: 2px solid transparent;
line-height: 18px;
text-align: left;
outline: 2px solid #fff;
}
$CELL:not([id]) $ASIDE_WRAP {
}
$CELL:hover $ASIDE_WRAP {
position: sticky !important;
z-index: 100;
}
$ASIDE_WRAP_ACTIVE {
border-bottom-color: var(--tabscolr-darkest);
}
$ASIDE_LABEL {
padding: 0;
text-align: left;
display: inline-block;
position: static;
text-overflow: ellipsis;
overflow: hidden;
counter-increment: index;
color: var(--tabscol-darkest);
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica,helvetica neue,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
font-weight: 600;
}
$ASIDE_LABEL:empty {
}
$ASIDE_WRAP_ACTIVE $ASIDE_LABEL_REL,
$ASIDE_WRAP:hover $ASIDE_LABEL_REL {
color: black;
}
$ASIDE_LABEL:empty:after {
content: "#"counter(index);
}
$ASIDE_ACTIONS {
display: inline;
position: static;
padding: 0;
margin: 0;
}
$ASIDE_ICON_ARROW,
$ASIDE_ICON_LINK {
display: none;
}
$ASIDE_ACTION_PIN {
display: block;
padding: 0 !important;
right: 4px;
top: 8px;
position: absolute;
}
$EDITOR_WRAP {
box-sizing: border-box;
order: 3;
margin: 9px 0 9px 6px;
flex: 0 0 auto;
width: calc(100% - 12px - 9px);
position: relative;
}
$EDITOR_ACTION_SAVE {
z-index: 99;
}
$EDITOR_CODE {
display: block;
position: relative;
margin-bottom: 0 !important;
}
/* Lefthand stroke on active editor area */
$EDITOR_CODE:before {
content: "";
position: absolute;
left: 0;
width: 3px;
background-color: var(--tabscol-darkest);
height: 100%;
}
$EDITOR_WRAP_INACTIVE $EDITOR_CODE:not(:focus):before {
display: none;
}
$EDITOR_WRAP_INACTIVE $EDITOR_CODE {
max-height: 30px;
}
$EDITOR_WRAP_INACTIVE $EDITOR_CODE:after {
content: "";
position: absolute;
width: 0;
height: 0;
right: -.5px; /* Counters rounding issues */
bottom: -.5px; /* Counters rounding issues */
border-style: solid;
border-color: transparent white white transparent;
border-width: 6px 10px;
}
$UNKNOWN_AREA {
display: none;
}
$SANDBOX_AREA {
max-height: 100vh;
width: 100%;
}
$CELL:hover $ASIDE_WRAP,
$CELL:hover $EDITOR_CODE_INACTIVE {
background: var(--tabscol-light);
}
/* Option: Keep editors open */
html[data-tabsui-options~="codeNoCollapse"] $EDITOR_CODE_INACTIVE { max-height: none; }
html[data-tabsui-options~="codeNoCollapse"] $EDITOR_CODE_INACTIVE:after { display: none; }
/* Option: Disable sticky tabs */
html[data-tabsui-options~="tabNoSticky"] $CELL:hover $ASIDE_WRAP { position: relative !important; }
/* Option: List named tabs first */
html[data-tabsui-options~="tabNamedFirst"] $CELL[id] $ASIDE_WRAP { order: 0; }
/* Option: Hide unnamed cells */
html[data-tabsui-options~="tabHideUnnamed"] $CELL:not([id]) { display: none; }
`)