From 645f69440f6a47add8ebf392544ba7220d251d7a Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sat, 18 Jun 2022 09:53:36 +0100 Subject: [PATCH] Added templates and static files for editor --- ref-test/app/editor/static/css/style.css | 260 ++++++++++++++++++ ref-test/app/editor/static/favicon.ico | Bin 0 -> 15086 bytes ref-test/app/editor/static/favicon.png | Bin 0 -> 85851 bytes .../app/editor/static/js/jquery-3.6.0.min.js | 2 + ref-test/app/editor/static/js/script.js | 233 ++++++++++++++++ .../templates/editor/components/base.html | 82 ++++++ .../editor/components/client-alerts.html | 1 + .../editor/components/datatable.html | 28 ++ .../templates/editor/components/footer.html | 2 + .../editor/components/input-forms.html | 4 + .../templates/editor/components/navbar.html | 111 ++++++++ .../templates/editor/components/og-meta.html | 18 ++ .../components/secondary-navs/tests.html | 23 ++ .../editor/components/server-alerts.html | 43 +++ .../app/editor/templates/editor/index.html | 160 ++++++++++- 15 files changed, 955 insertions(+), 12 deletions(-) create mode 100644 ref-test/app/editor/static/css/style.css create mode 100644 ref-test/app/editor/static/favicon.ico create mode 100644 ref-test/app/editor/static/favicon.png create mode 100644 ref-test/app/editor/static/js/jquery-3.6.0.min.js create mode 100644 ref-test/app/editor/static/js/script.js create mode 100644 ref-test/app/editor/templates/editor/components/base.html create mode 100644 ref-test/app/editor/templates/editor/components/client-alerts.html create mode 100644 ref-test/app/editor/templates/editor/components/datatable.html create mode 100644 ref-test/app/editor/templates/editor/components/footer.html create mode 100644 ref-test/app/editor/templates/editor/components/input-forms.html create mode 100644 ref-test/app/editor/templates/editor/components/navbar.html create mode 100644 ref-test/app/editor/templates/editor/components/og-meta.html create mode 100644 ref-test/app/editor/templates/editor/components/secondary-navs/tests.html create mode 100644 ref-test/app/editor/templates/editor/components/server-alerts.html diff --git a/ref-test/app/editor/static/css/style.css b/ref-test/app/editor/static/css/style.css new file mode 100644 index 0000000..7a22f31 --- /dev/null +++ b/ref-test/app/editor/static/css/style.css @@ -0,0 +1,260 @@ +body { + padding: 80px 0; +} + +.site-footer { + background-color: lightgray; + font-size: small; +} + +.site-footer p { + margin: 0; +} + +.form-container { + display: -ms-flexbox; + display: flex; + -ms-flex-align: center; + align-items: center; + padding-top: 40px; + padding-bottom: 40px; +} + +.form-display { + width: 100%; + max-width: 420px; + padding: 15px; + margin: auto; +} + +.form-heading { + margin-bottom: 2rem; +} + +.form-label-group { + position: relative; + margin-bottom: 2rem; +} + +.form-label-group input, +.form-label-group label { + padding: var(--input-padding-y) var(--input-padding-x); + font-size: 16pt; +} + +.form-label-group label { + position: absolute; + top: 0; + left: 0; + display: block; + width: 100%; + margin-bottom: 0; /* Override default `