From fac756cd2f84dd2cbff86119e769aadcf7011968 Mon Sep 17 00:00:00 2001 From: kjeld Schouten-Lebbing Date: Sun, 15 Aug 2021 13:24:21 +0200 Subject: [PATCH] try different way of injecting the stylesheet --- docs/_static/custom.css | 118 ------------------ docs/_static/form.css | 118 ++++++++++++++++++ .../Quick-Start Guides/14-linking-apps.md | 1 + 3 files changed, 119 insertions(+), 118 deletions(-) create mode 100644 docs/_static/form.css diff --git a/docs/_static/custom.css b/docs/_static/custom.css index 696568c8fd6..2a24aef6dba 100644 --- a/docs/_static/custom.css +++ b/docs/_static/custom.css @@ -4,121 +4,3 @@ --md-primary-fg-color--dark: #000000; --md-footer-bg-color--dark: #000000; } - - -.form { - background-color: #15172b; - border-radius: 20px; - box-sizing: border-box; - height: 420px; - padding: 20px; - width: 320px; -} - -.form-form-title { - color: #eee; - font-family: sans-serif; - font-size: 36px; - font-weight: 600; - margin-top: 30px; -} - -.subtitle { - color: #eee; - font-family: sans-serif; - font-size: 16px; - font-weight: 600; - margin-top: 10px; -} - -.input-container { - height: 50px; - position: relative; - width: 100%; -} - -.ic1 { - margin-top: 40px; -} - -.ic2 { - margin-top: 30px; -} - -.input { - background-color: #303245; - border-radius: 12px; - border: 0; - box-sizing: border-box; - color: #eee; - font-size: 18px; - height: 100%; - outline: 0; - padding: 4px 20px 0; - width: 100%; -} - -.cut { - background-color: #15172b; - border-radius: 10px; - height: 20px; - left: 20px; - position: absolute; - top: -20px; - transform: translateY(0); - transition: transform 200ms; - width: 76px; -} - -.cut-short { - width: 50px; -} - -.input:focus ~ .cut, -.input:not(:placeholder-shown) ~ .cut { - transform: translateY(8px); -} - -.placeholder { - color: #65657b; - font-family: sans-serif; - left: 20px; - line-height: 14px; - pointer-events: none; - position: absolute; - transform-origin: 0 50%; - transition: transform 200ms, color 200ms; - top: 20px; -} - -.input:focus ~ .placeholder, -.input:not(:placeholder-shown) ~ .placeholder { - transform: translateY(-30px) translateX(10px) scale(0.75); -} - -.input:not(:placeholder-shown) ~ .placeholder { - color: #808097; -} - -.input:focus ~ .placeholder { - color: #dc2f55; -} - -.submit { - background-color: #08d; - border-radius: 12px; - border: 0; - box-sizing: border-box; - color: #eee; - cursor: pointer; - font-size: 18px; - height: 50px; - margin-top: 38px; - // outline: 0; - text-align: center; - width: 100%; -} - -.submit:active { - background-color: #06b; -} diff --git a/docs/_static/form.css b/docs/_static/form.css new file mode 100644 index 00000000000..e15ccd856ba --- /dev/null +++ b/docs/_static/form.css @@ -0,0 +1,118 @@ + + +.form { + background-color: #15172b; + border-radius: 20px; + box-sizing: border-box; + height: 420px; + padding: 20px; + width: 320px; +} + +.form-form-title { + color: #eee; + font-family: sans-serif; + font-size: 36px; + font-weight: 600; + margin-top: 30px; +} + +.subtitle { + color: #eee; + font-family: sans-serif; + font-size: 16px; + font-weight: 600; + margin-top: 10px; +} + +.input-container { + height: 50px; + position: relative; + width: 100%; +} + +.ic1 { + margin-top: 40px; +} + +.ic2 { + margin-top: 30px; +} + +.input { + background-color: #303245; + border-radius: 12px; + border: 0; + box-sizing: border-box; + color: #eee; + font-size: 18px; + height: 100%; + outline: 0; + padding: 4px 20px 0; + width: 100%; +} + +.cut { + background-color: #15172b; + border-radius: 10px; + height: 20px; + left: 20px; + position: absolute; + top: -20px; + transform: translateY(0); + transition: transform 200ms; + width: 76px; +} + +.cut-short { + width: 50px; +} + +.input:focus ~ .cut, +.input:not(:placeholder-shown) ~ .cut { + transform: translateY(8px); +} + +.placeholder { + color: #65657b; + font-family: sans-serif; + left: 20px; + line-height: 14px; + pointer-events: none; + position: absolute; + transform-origin: 0 50%; + transition: transform 200ms, color 200ms; + top: 20px; +} + +.input:focus ~ .placeholder, +.input:not(:placeholder-shown) ~ .placeholder { + transform: translateY(-30px) translateX(10px) scale(0.75); +} + +.input:not(:placeholder-shown) ~ .placeholder { + color: #808097; +} + +.input:focus ~ .placeholder { + color: #dc2f55; +} + +.submit { + background-color: #08d; + border-radius: 12px; + border: 0; + box-sizing: border-box; + color: #eee; + cursor: pointer; + font-size: 18px; + height: 50px; + margin-top: 38px; + // outline: 0; + text-align: center; + width: 100%; +} + +.submit:active { + background-color: #06b; +} diff --git a/docs/manual/Quick-Start Guides/14-linking-apps.md b/docs/manual/Quick-Start Guides/14-linking-apps.md index c5957642091..c638ff56675 100644 --- a/docs/manual/Quick-Start Guides/14-linking-apps.md +++ b/docs/manual/Quick-Start Guides/14-linking-apps.md @@ -55,6 +55,7 @@ function generatesvc(name, app, service) { }; +