diff --git a/editor/_json-editor.scss b/editor/_json-editor.scss index 2bf200b..1aee2a8 100644 --- a/editor/_json-editor.scss +++ b/editor/_json-editor.scss @@ -43,16 +43,6 @@ .editor-container { font-size: 14px; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - --gap: 8px; - --blue-0: #D0EBFF; - --blue-1: #A5D8FF; - --red-0: #FFE3E3; - --red-1: #FFC9C9; - --yellow-0: #FFF3BF; - --yellow-1: #FFEC99; - --green-0: #D3F9D8; - --green-1: #B2F2BB; h1 {} h2 {} diff --git a/editor/index.html b/editor/index.html index 35c7cd8..34ca0ac 100644 --- a/editor/index.html +++ b/editor/index.html @@ -8,13 +8,17 @@ -

JSONCV Editor

-
-
-
+ +
+
+
diff --git a/editor/styles.scss b/editor/styles.scss index da39492..894a3ee 100644 --- a/editor/styles.scss +++ b/editor/styles.scss @@ -1,33 +1,72 @@ @use 'json-editor'; -#main { - display: flex; +:root { + --gap: 8px; + --gap2: calc(var(--gap) * 2); + --blue-0: #D0EBFF; + --blue-1: #A5D8FF; + --red-0: #FFE3E3; + --red-1: #FFC9C9; + --yellow-0: #FFF3BF; + --yellow-1: #FFEC99; + --green-0: #D3F9D8; + --green-1: #B2F2BB; +} - .left { - flex-grow: 1; - padding-right: 16px; + +html { + font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; +} + +body { + margin: 0; +} + +#main { + display: grid; + grid-template-columns: 150px 1fr 1fr; + grid-template-rows: 100vh; + + .sidebar { + padding: var(--gap); + } + .middle { + padding-right: var(--gap2); + margin-left: var(--sidebar-width); + overflow-y: auto; } .right { - width: 300px; + background-color: #eee; } } .editor-container { [data-schemapath]:target { - animation: bgFade 2s forwards; + animation: bgFade 1s forwards; } } .editor-toc { - position: fixed; + ul { + margin: 0; + padding: 4px 0 4px 14px; + + a { + text-decoration: none; + color: #333; + &:hover { + text-decoration: underline; + } + } + } } @keyframes bgFade { 0% { - background-color: #fff0a5; + background-color: #FFF3BF; } 50% { - background-color: #fff6b3da; + background-color: #FFF9DB; } 100% { background-color: transparent;