You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
3.0 KiB

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*/
.sp-tabs .sp-tab-button {
color: #087EA4;
padding: 0 4px;
}
html.dark .sp-tabs .sp-tab-button {
color: #149ECA;
}
.sp-tabs .sp-tab-button:hover {
color: #087EA4;
}
html.dark .sp-tabs .sp-tab-button:hover {
color: #149ECA;
}
.sp-tabs .sp-tab-button[data-active='true'] {
color: #087EA4;
border-bottom: 2px solid #087EA4;
}
html.dark .sp-tabs .sp-tab-button[data-active='true'] {
color: #149ECA;
border-bottom: 2px solid #149ECA;
}
.sp-stack .sp-code-editor,
.sp-tabs .sp-tabs-scrollable-container {
overflow: hidden;
}
.sp-code-editor .cm-errorLine {
background-color: #fff0f0;
position: relative;
}
.sp-code-editor .cm-errorLine:after {
position: absolute;
right: 8px;
top: 0;
content: '\26A0';
font-size: 22px;
line-height: 16px;
color: #ff3d3d;
}
/*
* These are manually adjusted to match the final
* rendered version without any layout shifts.
* Note this affects both sandboxes and code blocks.
*
* There are probably more maintainable ways to do this.
* However, as long as there are kind people paying close
* attention to these subtler details, I shall sleep in peace.
*
* If you know a better way to keep them from diverging, send a PR.
*/
.sp-layout {
border-bottom-left-radius: 0.5rem !important;
border-bottom-right-radius: 0.5rem !important;
}
.cm-activeLine {
background: rgba(245, 247, 250, var(--tw-bg-opacity)) !important;
}
.sp-code-editor {
background: white !important;
}
.sp-stack {
height: initial !important;
width: fit-content !important;
}
.sp-cm {
-webkit-text-size-adjust: none !important;
}
.cm-wrap,
.cm-wrap .cm-gutters {
background: transparent !important;
}
.sp-pre-placeholder {
display: block !important;
margin-top: 0px !important;
margin-bottom: 0px !important;
@apply font-mono !important;
font-size: 13.6px !important;
line-height: 24px !important;
}
.text-xl .sp-pre-placeholder {
font-size: 16px !important;
line-height: 24px !important;
}
.sp-cm.sp-pristine .cm-scroller {
overflow: auto !important;
}
.sp-layout {
overflow: initial !important;
border:0px solid transparent !important;
border-top-left-radius: 0px !important;
border-top-right-radius: 0px !important;
}
html.dark .sp-layout>:not(:first-child) {
border-color: #343A46;
}
html.dark .sp-layout {
background-color: #343A46;
}
html.dark .sp-loading {
background-color: #23272F;
}
@media (min-width: 768px) {
.sp-tabs .sp-tab-button {
margin: 0 12px 0 0;
}
}
/* Make focus rings work */
.sp-tab-button {
transition: none !important;
}
.sp-tab-button:focus {
outline: revert !important;
}
.sp-tab-button:focus-visible {
box-shadow: none !important;
}
.sp-cm:focus-visible {
box-shadow: inset 0 0 0 4px rgba(20, 158, 202, 0.4) !important;
padding-left: 0px !important;
}
.cm-line {
padding: 0 var(--sp-space-3) !important;
}
.cm-lineNumbers {
padding-left: var(--sp-space-1) !important;
padding-right: var(--sp-space-1) !important;
}