From 5a5cafa563b06afd7bf57d90ae7b8e30d55920ac Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Sun, 1 Dec 2024 17:05:49 +0100 Subject: [PATCH] fix styling --- .../componentCss/simplycode-manual.css | 72 -- .../data/components/0-ds-styling/meta.json | 2 +- .../1-styling/componentCss/ds-corrections.css | 17 + .../1-styling/componentCss/style.css | 2 +- www/api/data/generated.html | 639 ++++++++++++------ www/api/data/page-frame/componentPreview.html | 2 +- www/api/data/page-frame/fullApp.html | 8 +- www/api/data/page-frame/pagePreview.html | 8 +- .../pageTemplates/Base components.html | 37 +- 9 files changed, 499 insertions(+), 288 deletions(-) delete mode 100644 www/api/data/components/0-ds-styling/componentCss/simplycode-manual.css create mode 100644 www/api/data/components/1-styling/componentCss/ds-corrections.css diff --git a/www/api/data/components/0-ds-styling/componentCss/simplycode-manual.css b/www/api/data/components/0-ds-styling/componentCss/simplycode-manual.css deleted file mode 100644 index cc09ac4..0000000 --- a/www/api/data/components/0-ds-styling/componentCss/simplycode-manual.css +++ /dev/null @@ -1,72 +0,0 @@ -.simplycode-part { - margin-top: 1em; -} -.simplycode-part-header { - display: grid; - grid-template-columns: 1fr 1fr; -} -.simplycode-part-header .simplycode-options { - text-align: right; -} -.simplycode-part .simplycode-tab { - padding: 10px 5px; - margin: 0; - background-color: #151515; - color: #ddd; - border: 0; - text-align: center; - margin-right: 5px; -} -.simplycode-part .simplycode-tab input[type=radio] { - display: none; -} -.simplycode-part .simplycode-tab input[type=radio]:checked ~ span { - font-weight: bold; - border-bottom: 2px solid var(--support-background); -} -.simplycode-part .simplycode-editor-code { - display: grid; - grid-template-columns: 1fr; -} -.simplycode-part .simplycode-dual { - display: grid; - grid-template-columns: 1fr 1fr; -} -.simplycode-part .simplycode-dual-preview { - display: grid; - grid-template-columns: auto 480px; -} -.simplycode-test-header { - display: grid; - grid-template-columns: 1fr 1fr; -} -.simplycode-test-header .simplycode-options { - text-align: right; -} -.simplycode-component summary { - font-size: 1.2em; -} -.simplycode-component { - margin: 10px 0px; -} -.simplycode-header { - display: grid; - grid-template-columns: 3fr 1fr; - vertical-align: middle; -} -.simplycode-header .simplycode-controls { - text-align: right; -} -.simplycode-header h1 span { - white-space: nowrap; -} -.simplycode-component summary .simplycode-controls { - display: none; - margin-left: 1em; -} -.simplycode-component[open] summary .simplycode-controls { - display: inline-block; -} -.simplycode-editor-code textarea { - margin-top: -1px; -} diff --git a/www/api/data/components/0-ds-styling/meta.json b/www/api/data/components/0-ds-styling/meta.json index 1d9da25..54efe5f 100644 --- a/www/api/data/components/0-ds-styling/meta.json +++ b/www/api/data/components/0-ds-styling/meta.json @@ -1 +1 @@ -{"id":"1-styling","description":""} \ No newline at end of file +{"id":"0-ds-styling","description":""} \ No newline at end of file diff --git a/www/api/data/components/1-styling/componentCss/ds-corrections.css b/www/api/data/components/1-styling/componentCss/ds-corrections.css new file mode 100644 index 0000000..292de66 --- /dev/null +++ b/www/api/data/components/1-styling/componentCss/ds-corrections.css @@ -0,0 +1,17 @@ +main { + margin-top: initial; + margin-bottom: initial; +} + +nav li { + margin-left: initial; +} +a:link { + color: var(--highlight-dark); +} +textarea { + outline: initial; +} +:root { + --simply-button-primary: var(--highlight-dark); +} \ No newline at end of file diff --git a/www/api/data/components/1-styling/componentCss/style.css b/www/api/data/components/1-styling/componentCss/style.css index 26108a3..1ba9961 100644 --- a/www/api/data/components/1-styling/componentCss/style.css +++ b/www/api/data/components/1-styling/componentCss/style.css @@ -107,7 +107,7 @@ a.simplycode-button { body { display: grid; grid-template-columns: 210px 2fr 2fr; - grid-template-rows: 60px 2fr 2fr; + grid-template-rows: 80px 2fr 2fr; gap: 0px 0px; grid-template-areas: "header header header" diff --git a/www/api/data/generated.html b/www/api/data/generated.html index d2e7aee..6769ef7 100644 --- a/www/api/data/generated.html +++ b/www/api/data/generated.html @@ -4,7 +4,46 @@