Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 52015e4

Browse files
authored
Merge pull request #464 from ThomasKranitsas/fix-footer
Fix footer link on mobile view
2 parents 221e980 + e50b5e7 commit 52015e4

File tree

3 files changed

+45
-44
lines changed

3 files changed

+45
-44
lines changed

src/css/base.css

Lines changed: 43 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,12 @@ footer {
529529
background-color: #3D3D3D;
530530
padding: 1px 20px 30px 20px; }
531531

532+
.bottom-footer .menu-item .menu-link {
533+
color: #fff;
534+
font-size: 16px; }
535+
.bottom-footer .menu-item .menu-link:hover {
536+
color: #0096ff; }
537+
532538
.social-links {
533539
font-size: 13px;
534540
line-height: 1.2em;
@@ -548,32 +554,43 @@ footer {
548554
text-align: center;
549555
font-size: 12px;
550556
line-height: 14px;
551-
color: #656565; }
557+
color: #fff; }
558+
559+
.social-links .fb-link {
560+
background-image: url(@@cdn/i/ico-facebook_desktop.svg);
561+
width: 27px;
562+
height: 27px; }
563+
.social-links .twitter-link {
564+
background-image: url(@@cdn/i/ico-twitter_desktop.svg);
565+
width: 28px;
566+
height: 24px; }
567+
.social-links .linkedin-link {
568+
background-image: url(@@cdn/i/ico-linkedin_desktop.svg);
569+
width: 27px;
570+
height: 27px; }
571+
.social-links .google-link {
572+
background-image: url(@@cdn/i/ico-google_desktop.svg);
573+
width: 27px;
574+
height: 27px; }
552575

553576
@media only screen and (max-width: 1024px) {
577+
.bottom-footer {
578+
padding-top: 36px;
579+
}
554580
.bottom-footer, .fold-pusher {
555-
height: 170px; }
581+
height: auto; }
582+
.social-links {
583+
margin-top: 0;
584+
margin-bottom: 6px;
585+
}
556586
.bottom-footer .menu-item {
557-
display: none;
558-
margin-top: 30px; }
559-
.menu-visible .bottom-footer .menu-item {
560587
display: block; }
561-
.social-links .fb-link {
562-
background-image: url(@@cdn/i/ico-facebook.svg);
563-
width: 27px;
564-
height: 27px; }
565-
.social-links .twitter-link {
566-
background-image: url(@@cdn/i/ico-twitter.svg);
567-
width: 28px;
568-
height: 24px; }
569-
.social-links .linkedin-link {
570-
background-image: url(@@cdn/i/ico-linkedin.svg);
571-
width: 27px;
572-
height: 27px; }
573-
.social-links .google-link {
574-
background-image: url(@@cdn/i/ico-google.svg);
575-
width: 27px;
576-
height: 27px; } }
588+
.bottom-footer nav {
589+
position: relative;
590+
top: auto;
591+
left: auto;
592+
text-align: center;
593+
} }
577594

578595
@media only screen and (min-width: 1025px) {
579596
.bottom-footer, .fold-pusher {
@@ -585,32 +602,18 @@ footer {
585602
.bottom-footer .menu-item {
586603
text-align: center;
587604
font-weight: normal; }
588-
.bottom-footer .menu-item .menu-link {
589-
color: #fff;
590-
font-size: 16px;
591-
line-height: 21px; }
592-
.bottom-footer .menu-item .menu-link:hover {
593-
color: #0096ff; }
605+
.bottom-footer .menu-item .menu-link {
606+
line-height: 21px; }
594607
.copyright-notice {
595-
font-size: 15px;
596-
color: #fff; }
608+
font-size: 15px; }
597609
.account-footer .copyright-notice {
598-
font-size: 12px;
599-
color: #656565; }
610+
font-size: 12px; }
600611
.social-links {
601612
margin-bottom: 3px; }
602613
.social-links a {
603614
width: 26px;
604615
height: 26px;
605-
margin-top: 13px; }
606-
.social-links .fb-link {
607-
background-image: url(@@cdn/i/ico-facebook_desktop.svg); }
608-
.social-links .twitter-link {
609-
background-image: url(@@cdn/i/ico-twitter_desktop.svg); }
610-
.social-links .linkedin-link {
611-
background-image: url(@@cdn/i/ico-linkedin_desktop.svg); }
612-
.social-links .google-link {
613-
background-image: url(@@cdn/i/ico-google_desktop.svg); } }
616+
margin-top: 13px; } }
614617

615618

616619
/* header / log-in area */

src/footer.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
<footer class="bottom-footer">
33
<!-- Footer links -->
44
<nav class="menu-item">
5-
<div class="menu-item-header show-small">OTHERS</div>
65
<ul class="submenu">
76
<li class="submenu-item"><a ng-click="$event.stopPropagation();" href="/sitemap" class="menu-link">SITEMAP</a></li>
87
<li class="submenu-item"><a ng-click="$event.stopPropagation();" href="/about" class="menu-link">ABOUT US</a></li>
@@ -199,7 +198,7 @@ <h2>Comment Examples</h2>
199198
} else {
200199
photoLink = tcconfig.communityURL + '/i/m/nophoto_login.gif';
201200
}
202-
201+
203202
var color = '';
204203
var ratings = data['ratingSummary'];
205204
if (ratings) {
@@ -213,7 +212,7 @@ <h2>Comment Examples</h2>
213212
} else if (data['isPM'] == true) {
214213
color = '#FF9900';
215214
}
216-
215+
217216
$timeout(function() {
218217
vm.handleStyle = { color: color };
219218
vm.photoURL = photoLink;

wp/wp-content/themes/tcs-responsive/footer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<footer class="bottom-footer">
2020
<!-- Footer links -->
2121
<nav class="menu-item">
22-
<div class="menu-item-header show-small">OTHERS</div>
2322
<ul class="submenu">
2423
<li class="submenu-item"><a ng-click="$event.stopPropagation();" href="/sitemap" class="menu-link">SITEMAP</a></li>
2524
<li class="submenu-item"><a ng-click="$event.stopPropagation();" href="/about" class="menu-link">ABOUT US</a></li>

0 commit comments

Comments
 (0)