fix: style
This commit is contained in:
@@ -262,6 +262,8 @@ canvas {
|
||||
border-radius: 28px;
|
||||
box-shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
backdrop-filter: blur(22px);
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #3a3a3a transparent;
|
||||
@@ -541,6 +543,81 @@ canvas {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.editor-json-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 240px;
|
||||
padding: 14px 12px 12px;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.09);
|
||||
}
|
||||
|
||||
.editor-json-view {
|
||||
flex: 1;
|
||||
max-height: 320px;
|
||||
margin: 0;
|
||||
padding: 8px 0;
|
||||
overflow: auto;
|
||||
background: #050505;
|
||||
border: 1px solid #1f1f1f;
|
||||
border-radius: 16px;
|
||||
color: #d7d7d7;
|
||||
font-family: "SFMono-Regular", "Courier New", monospace;
|
||||
font-size: 0.72rem;
|
||||
line-height: 1.55;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #3a3a3a transparent;
|
||||
}
|
||||
|
||||
.editor-json-view::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
.editor-json-view::-webkit-scrollbar-thumb {
|
||||
background: #3a3a3a;
|
||||
border-radius: 999px;
|
||||
}
|
||||
|
||||
.editor-json-view code {
|
||||
display: grid;
|
||||
grid-template-columns: 34px max-content;
|
||||
gap: 10px;
|
||||
min-width: 100%;
|
||||
padding: 0 12px;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-family: inherit;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.editor-json-view code span {
|
||||
color: #5f5f5f;
|
||||
text-align: right;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.editor-json-view code.is-selected {
|
||||
background: #111111;
|
||||
color: #f2f2f2;
|
||||
}
|
||||
|
||||
.editor-json-view code.is-selected * {
|
||||
color: #f2f2f2;
|
||||
}
|
||||
|
||||
.editor-json-view code.is-selected span {
|
||||
color: #8a8a8a;
|
||||
}
|
||||
|
||||
.editor-json-hint {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 7px;
|
||||
margin-top: 8px;
|
||||
color: #8d8d8d;
|
||||
font-size: 0.74rem;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.editor-error h2 {
|
||||
font-size: 1.5rem;
|
||||
@@ -567,4 +644,8 @@ canvas {
|
||||
max-height: 46vh;
|
||||
border-radius: 22px;
|
||||
}
|
||||
|
||||
.editor-json-section {
|
||||
min-height: 180px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user