Fixed sticky footer, vertical me equation (mobile)

Put me equation in separate file.
This commit is contained in:
2019-02-06 05:18:38 -05:00
parent ffca095285
commit d55e50d9bb
5 changed files with 47 additions and 21 deletions

View File

@@ -34,6 +34,7 @@ $base-dark-orange: #d27b53;
// mixins {{{ // // mixins {{{ //
$max-page-width: 52em; $max-page-width: 52em;
$phone-width: 600px;
@mixin side-padding-rem($n) { @mixin side-padding-rem($n) {
padding-left: $n * 1rem; padding-left: $n * 1rem;
@@ -88,6 +89,9 @@ body {
font-size: 100%; font-size: 100%;
/* font-family: 'Source Code Pro', monospace; */ /* font-family: 'Source Code Pro', monospace; */
font-family: 'Hack', monospace; font-family: 'Hack', monospace;
display: flex;
flex-direction: column;
min-height: 100vh;
@include a-color($base-sky-blue); @include a-color($base-sky-blue);
} }
@@ -96,6 +100,7 @@ body {
max-width: $max-page-width; max-width: $max-page-width;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
flex: 1;
.copyright { .copyright {
@include a-color(#747369); @include a-color(#747369);
@@ -146,9 +151,9 @@ footer {
text-align: center; text-align: center;
font-size: 0.9em; font-size: 0.9em;
color: #747369; color: #747369;
bottom: 0; // bottom: 0;
position: absolute; // position: absolute;
width: 100%; // width: 100%;
.container { .container {
background-color: #393939; background-color: #393939;
@@ -286,7 +291,17 @@ footer {
font-size: 4rem; font-size: 4rem;
display: inline; display: inline;
@include side-padding-rem(1); @include side-padding-rem(1);
// display: table-cell inline; }
@media (max-width: $phone-width) {
margin-top: 2em;
display: block;
p {
display: block;
@include vert-padding-rem(0.1);
margin-bottom: 0rem;
}
} }
} }
} }

View File

@@ -8,15 +8,5 @@
target="_blank">FOSS/FLOSS</a>. target="_blank">FOSS/FLOSS</a>.
</p> </p>
<div class="me-equation"> {{ partial "me-equation.html" . }}
<a href="https://www.gnu.org/" target="_blank">
<img src="{{ "img/gnu.svg" | relURL }}" id="gnu" alt="gnu-logo">
</a>
<p>+</p>
<img src="{{ "img/linux-icon.svg" | relURL }}" alt="linux-logo">
<p>+</p>
<img src="{{ "img/uoft-logo.svg" | relURL }}" alt="linux-logo">
<p>=</p>
<img src="{{ "img/hexatar.png" | relURL }}" alt="linux-logo">
</div>
</div> </div>

View File

@@ -0,0 +1,11 @@
<div class="me-equation">
<a href="https://www.gnu.org/" target="_blank">
<img src="{{ "img/gnu.svg" | relURL }}" id="gnu" alt="gnu-logo">
</a>
<p>+</p>
<img src="{{ "img/linux-icon.svg" | relURL }}" alt="linux-logo">
<p>+</p>
<img src="{{ "img/uoft-logo.svg" | relURL }}" alt="uoft-logo">
<p>=</p>
<img src="{{ "img/hexatar.png" | relURL }}" alt="my-avatar">
</div>

View File

@@ -37,7 +37,10 @@ body {
line-height: 1.5; line-height: 1.5;
font-size: 100%; font-size: 100%;
/* font-family: 'Source Code Pro', monospace; */ /* font-family: 'Source Code Pro', monospace; */
font-family: 'Hack', monospace; } font-family: 'Hack', monospace;
display: flex;
flex-direction: column;
min-height: 100vh; }
body a { body a {
color: #66cccc; } color: #66cccc; }
body a:visited { body a:visited {
@@ -48,7 +51,8 @@ body {
.container { .container {
max-width: 52em; max-width: 52em;
margin-left: auto; margin-left: auto;
margin-right: auto; } margin-right: auto;
flex: 1; }
.container .copyright a { .container .copyright a {
color: #747369; } color: #747369; }
.container .copyright a:visited { .container .copyright a:visited {
@@ -109,10 +113,7 @@ footer {
margin-bottom: 1rem; margin-bottom: 1rem;
text-align: center; text-align: center;
font-size: 0.9em; font-size: 0.9em;
color: #747369; color: #747369; }
bottom: 0;
position: absolute;
width: 100%; }
footer .container { footer .container {
background-color: #393939; background-color: #393939;
max-width: 62em; max-width: 62em;
@@ -236,6 +237,15 @@ footer a {
display: inline; display: inline;
padding-left: 1rem; padding-left: 1rem;
padding-right: 1rem; } padding-right: 1rem; }
@media (max-width: 600px) {
#homepage #about .me-equation {
margin-top: 2em;
display: block; }
#homepage #about .me-equation p {
display: block;
padding-top: 0.1rem;
padding-bottom: 0.1rem;
margin-bottom: 0rem; } }
@media (max-width: 52em) { @media (max-width: 52em) {
#homepage { #homepage {