[Rt-commit] rt branch, 4.6/footer-reformat, created. rt-4.4.4-399-gdcb20b011

Jim Brandt jbrandt at bestpractical.com
Thu Oct 3 16:08:57 EDT 2019


The branch, 4.6/footer-reformat has been created
        at  dcb20b01168f7bf1a90ac3747b830f61fced1a9a (commit)

- Log -----------------------------------------------------------------
commit 94b34dc3a31fc51ff746265396fa57bbb3546195
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Oct 3 09:09:08 2019 -0400

    Update footer styling on regular RT pages

diff --git a/share/html/Elements/Footer b/share/html/Elements/Footer
index 41d60ad47..ea3f3a659 100644
--- a/share/html/Elements/Footer
+++ b/share/html/Elements/Footer
@@ -53,10 +53,10 @@
 % if ($m->{'rt_base_time'}) {
   <p id="time"><span><&|/l&>Time to display</&>: <%Time::HiRes::tv_interval( $m->{'rt_base_time'} )%></span></p>
 %}
-  <p id="bpscredits"><span><&|/l_unsafe,     '»|«', $RT::VERSION, '2019', '<a href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>', &>[_1] RT [_2] Copyright 1996-[_3] [_4].</&>
+  <p id="bpscredits"><span><&|/l_unsafe,     '»|«', $RT::VERSION, '2019', '<a class="footer" href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>', &>[_1] RT [_2] Copyright 1996-[_3] [_4].</&>
 </span></p>
 % if (!$Menu) {
-  <p id="legal"><&|/l_unsafe, '<a href="http://www.gnu.org/licenses/gpl-2.0.html">', '</a>' &>Distributed under [_1]version 2 of the GNU GPL[_2].</&><br /><&|/l_unsafe, '<a href="mailto:sales at bestpractical.com">sales at bestpractical.com</a>' &>To inquire about support, training, custom development or licensing, please contact [_1].</&><br /></p>
+  <p id="legal"><&|/l_unsafe, '<a href="http://www.gnu.org/licenses/gpl-2.0.html">', '</a>' &>Distributed under [_1]version 2 of the GNU GPL[_2].</&><br /><&|/l_unsafe, '<a class="footer" href="mailto:sales at bestpractical.com">sales at bestpractical.com</a>' &>To inquire about support, training, custom development or licensing, please contact [_1].</&><br /></p>
 % }
 </div>
 % if ($Debug >= 2 ) {
diff --git a/share/static/css/elevator-light/layout.css b/share/static/css/elevator-light/layout.css
index ca630eb91..fb334d6c0 100644
--- a/share/static/css/elevator-light/layout.css
+++ b/share/static/css/elevator-light/layout.css
@@ -31,25 +31,33 @@ div#body {
 }
 
 div#footer {
-    position: absolute;
-    right: 0;
-    text-align: right;
-    font-size: 0.9em;
-    margin-top: 2em;
-    background: #fff;
-    margin-bottom: 0;
-    padding-left: 3em;
-    padding-right: 1em;
+    font-size: 0.8em;
+    background: #2C3539;
+    height: 50px;
+    position: relative;
+}
+
+a.footer {
+    color: white;
+}
+
+p#bpscredits {
+    color: white;
+    text-align: center;
+    position: fixed;
+    bottom: -10px;
+    width: 100%;
 }
 
 div#footer #time {
     display: none
 }
 
-div#footer #bpscredits {
-    text-align: right;
-    background: url(../../../static/images/bpslogo.png) no-repeat top right;
-    padding-top: 4em;
+div#footer {
+    background-image: url(../../../static/images/bpslogo.png);
+    background-repeat: no-repeat;
+    background-position: bottom 2em center;
+    background-size: auto 50%;
 }
 
 /* logo stuff */

commit dcb20b01168f7bf1a90ac3747b830f61fced1a9a
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Thu Oct 3 16:07:26 2019 -0400

    Move footer on login page to the bottom of the browser window
    
    Since the login page isn't full of content, the footer was
    displaying in the middle of the screen after the login box.

diff --git a/share/html/Elements/Footer b/share/html/Elements/Footer
index ea3f3a659..d81c49ea7 100644
--- a/share/html/Elements/Footer
+++ b/share/html/Elements/Footer
@@ -49,14 +49,16 @@
   <hr class="clear" />
 </div>
 % $m->callback( %ARGS );
-<div id="footer" title="Best Practical Solutions, LLC, copyright and logo">
+% my $footer_class = 'footer';
+% $footer_class = 'footerlogin' if !$Menu;
+<div id="<% $footer_class %>" title="Best Practical Solutions, LLC, copyright and logo">
 % if ($m->{'rt_base_time'}) {
   <p id="time"><span><&|/l&>Time to display</&>: <%Time::HiRes::tv_interval( $m->{'rt_base_time'} )%></span></p>
 %}
   <p id="bpscredits"><span><&|/l_unsafe,     '»|«', $RT::VERSION, '2019', '<a class="footer" href="http://www.bestpractical.com?rt='.$RT::VERSION.'">Best Practical Solutions, LLC</a>', &>[_1] RT [_2] Copyright 1996-[_3] [_4].</&>
 </span></p>
 % if (!$Menu) {
-  <p id="legal"><&|/l_unsafe, '<a href="http://www.gnu.org/licenses/gpl-2.0.html">', '</a>' &>Distributed under [_1]version 2 of the GNU GPL[_2].</&><br /><&|/l_unsafe, '<a class="footer" href="mailto:sales at bestpractical.com">sales at bestpractical.com</a>' &>To inquire about support, training, custom development or licensing, please contact [_1].</&><br /></p>
+  <p id="legal"><span><&|/l_unsafe, '<a href="http://www.gnu.org/licenses/gpl-2.0.html">', '</a>' &>Distributed under [_1]version 2 of the GNU GPL[_2].</&><br /><&|/l_unsafe, '<a class="footer" href="mailto:sales at bestpractical.com">sales at bestpractical.com</a>' &>To inquire about support, training,<br /> professional services, or hosting, <br />please contact [_1].</&></span></p>
 % }
 </div>
 % if ($Debug >= 2 ) {
diff --git a/share/static/css/elevator-light/layout.css b/share/static/css/elevator-light/layout.css
index fb334d6c0..e2d78670f 100644
--- a/share/static/css/elevator-light/layout.css
+++ b/share/static/css/elevator-light/layout.css
@@ -37,23 +37,45 @@ div#footer {
     position: relative;
 }
 
-a.footer {
+div#footerlogin {
+    font-size: 0.8em;
+    background: #2C3539;
+    height: 50px;
+    position: fixed;
+    bottom: 0;
+    width: 100%;
+}
+
+a.footer, a.footerlogin {
     color: white;
 }
 
 p#bpscredits {
     color: white;
     text-align: center;
+    position: relative;
+    bottom: -5px;
+    width: 100%;
+}
+
+p#legal {
+    color: white;
+    font-size: 0.7em;
+    text-align: right;
     position: fixed;
     bottom: -10px;
-    width: 100%;
+    right: 5px;
 }
 
-div#footer #time {
-    display: none
+div#footer #time, div#footerlogin #time {
+    display: none;
+    position: relative;
+    bottom: -30px;
+    left: 5px;
+    color: lightgray;
 }
 
-div#footer {
+div#footer, div#footerlogin {
     background-image: url(../../../static/images/bpslogo.png);
     background-repeat: no-repeat;
     background-position: bottom 2em center;

-----------------------------------------------------------------------


More information about the rt-commit mailing list