From 7792d5ccc78e5097e40ec5e7e0854ba04a20094a Mon Sep 17 00:00:00 2001 From: realaravinth Date: Sun, 9 May 2021 18:59:23 +0530 Subject: [PATCH] footer --- templates/auth/login/index.html | 1 + templates/auth/register/index.html | 1 + templates/components/_main.scss | 4 +-- templates/components/details-footers.html | 3 +- templates/components/details.scss | 20 ++++++++++-- templates/components/footers.html | 1 + templates/main.scss | 33 +++++++++++--------- templates/panel/index.html | 1 + templates/panel/navbar/index.html | 2 +- templates/panel/navbar/main.scss | 6 ++++ templates/panel/sitekey/add/index.html | 1 + templates/panel/sitekey/add/ts/form/index.ts | 2 +- templates/panel/sitekey/list/index.html | 1 + templates/views/v1/routes.ts | 2 +- 14 files changed, 55 insertions(+), 23 deletions(-) diff --git a/templates/auth/login/index.html b/templates/auth/login/index.html index 4fbc8b2e..7320a11f 100644 --- a/templates/auth/login/index.html +++ b/templates/auth/login/index.html @@ -1,3 +1,4 @@ +
<. include!("../../components/headers.html"); .>
diff --git a/templates/auth/register/index.html b/templates/auth/register/index.html index bc5922f1..696b656b 100644 --- a/templates/auth/register/index.html +++ b/templates/auth/register/index.html @@ -1,3 +1,4 @@ +
<. include!("../../components/headers.html"); .>
diff --git a/templates/components/_main.scss b/templates/components/_main.scss index 821b72ec..91aa7b2d 100644 --- a/templates/components/_main.scss +++ b/templates/components/_main.scss @@ -17,7 +17,7 @@ @import '../vars'; @mixin main { - min-height: 100%; + max-height: 100%; background-color: $backdrop; - padding-bottom: 20px; + flex: 2; } diff --git a/templates/components/details-footers.html b/templates/components/details-footers.html index ad576504..92b083d5 100644 --- a/templates/components/details-footers.html +++ b/templates/components/details-footers.html @@ -1,4 +1,5 @@ -
+
+
  • Homepage diff --git a/templates/components/details.scss b/templates/components/details.scss index 57094e16..9c26d28b 100644 --- a/templates/components/details.scss +++ b/templates/components/details.scss @@ -16,16 +16,30 @@ */ @import '../_vars.scss'; +$footer-font-size: 14px; + +.details__container { + display: flex; + font-size: $footer-font-size; + // margin-left: auto; +} + +.details__copyright { + flex: 2; + font-size: $footer-font-size; +} + .details { list-style: none; - position: relative; bottom: 0px; box-sizing: border-box; - width: 95%; display: flex; font-size: 14px; - margin: auto; background-color: $backdrop; + + //position: relative; + // width: 95%; + //margin: auto; } .details__item { diff --git a/templates/components/footers.html b/templates/components/footers.html index 60670481..355653ce 100644 --- a/templates/components/footers.html +++ b/templates/components/footers.html @@ -1,5 +1,6 @@
<. include!("./details-footers.html"); .> +
diff --git a/templates/main.scss b/templates/main.scss index b313d4c4..c487c4d8 100644 --- a/templates/main.scss +++ b/templates/main.scss @@ -18,13 +18,8 @@ // creadits: https://codepen.io/rachelandrew/pen/MmOvPr/?editors=1100 .layout { display: grid; - grid-template-columns: 1fr 5fr; - grid-template-rows: 1fr 6fr 1fr; -} - -h1, -p { - margin: 0 0 1em 0; + grid-template-columns: minmax(250px, auto) 1fr; + grid-template-areas: 'navbar mainContent'; } /* no grid support? check this out later */ @@ -41,17 +36,27 @@ p { */ /* make a grid */ -header, -footer { - grid-column: 2 / 5; - /* needed for the floated layout */ - clear: both; -} +//header, +//footer { +// grid-column: 2 / 5; +// /* needed for the floated layout */ +// clear: both; +//} nav { - grid-row: 1/ 4; + // grid-row: 1/ 4; /* needed for the floated layout */ clear: both; + grid-area: navbar; + height: 100%; +} + +.tmp-layout { + // grid-column: 2 / 5; + grid-area: mainContent; + max-height: 100%; + display: flex; + flex-direction: column; } /* We need to set the widths used on floated items back to auto, and remove the bottom margin as when we have grid we have gaps. diff --git a/templates/panel/index.html b/templates/panel/index.html index c566b714..267b23ef 100644 --- a/templates/panel/index.html +++ b/templates/panel/index.html @@ -1,5 +1,6 @@ <. include!("../components/headers.html"); .> <. include!("./navbar/index.html"); .> +
<. include!("./header/index.html"); .>
<. include!("./help-banner/index.html"); .> diff --git a/templates/panel/navbar/index.html b/templates/panel/navbar/index.html index f1d019ad..bdc17e3c 100644 --- a/templates/panel/navbar/index.html +++ b/templates/panel/navbar/index.html @@ -1,5 +1,5 @@