Fixed: Responsive Project Site

This commit is contained in:
TheJoKlLa 2020-09-25 22:24:06 +02:00
parent 84cab33639
commit b77215813a
5 changed files with 59 additions and 39 deletions

View File

@ -1,8 +1,4 @@
<footer class="footer"> <footer class="footer">
{{ if .Params.sponsor }}
<div class="sponsor_placeholder"></div>
{{ end }}
<div class="text"> <div class="text">
<p>Powered by <a href="https://gohugo.io">Hugo</a>. Themed by <a href="https://gitlab.com/fabinfra/fabinfra-theme">FabInfra</a>.</p> <p>Powered by <a href="https://gohugo.io">Hugo</a>. Themed by <a href="https://gitlab.com/fabinfra/fabinfra-theme">FabInfra</a>.</p>

View File

@ -3,6 +3,7 @@
<meta charset="utf-8"/> <meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/color.css"> <link rel="stylesheet" href="/css/color.css">
<link rel="stylesheet" href="/css/size.css">
<link rel="stylesheet" href="/css/main.css"> <link rel="stylesheet" href="/css/main.css">
<link rel="stylesheet" href="/css/content.css"> <link rel="stylesheet" href="/css/content.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Mina"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Mina">

View File

@ -36,24 +36,33 @@ main .list-project .content {
/* project sites */ /* project sites */
main .header-project .content { main .header-project .content {
display: flex;
padding-top: 5px; padding-top: 5px;
margin-top: 10px; margin-top: 10px;
max-height: 200px; display: flex;
flex-direction: row;
justify-content: space-between;
} }
main .header-project .content .logo { main .header-project .content .logo {
align-self: center;
height: 200px;
}
/* Change Grid Structure */
@media (max-width: 30em) {
main .header-project .content {
flex-direction: column-reverse;
justify-content: space-between;
}
main .header-project .content .logo {
align-self: center;
width: 200px; width: 200px;
margin-left: auto; }
margin-right: 20px;
} }
main .header-project .content .logo img { /* images */
width: : 100%; .text-justify img {
} display: block;
margin: 50px auto;
@media (max-width: 35em) {
main .header-project .content .logo {
display: none;
}
} }

View File

@ -117,14 +117,6 @@ body {
top:0; top:0;
} }
/* main */
main {
padding: 75px 30px 100px 30px;
font-family: Roboto, sans-serif;
}
/* 48em = 768px @ 16pt font */
@media (min-width: 48em) { @media (min-width: 48em) {
.header li { .header li {
float: left; float: left;
@ -140,6 +132,16 @@ main {
.header .menu-icon { .header .menu-icon {
display: none; display: none;
} }
}
/* main */
main {
padding: 75px 30px 150px 30px;
font-family: Roboto, sans-serif;
}
/* Change Padding for Mobile View */
@media (min-width: 48em) {
main { main {
padding: 75px 150px 100px 150px; padding: 75px 150px 100px 150px;
} }
@ -158,24 +160,32 @@ main {
bottom: 0; bottom: 0;
width: 100%; width: 100%;
padding: 20px 0px; padding: 20px 0px;
display: flex; display: grid;
grid-template-columns: 20px 100px 10px auto 10px 100px 20px;
} }
.footer .text { .footer .text {
margin-right: auto; grid-column-start: 4;
margin-left: auto;
} }
.footer .sponsor { .footer .sponsor {
height: 76px; grid-column-start: 6;
width: 115px; width: 100%;
margin: -15px 30px -15px auto;
} }
.footer .sponsor_placeholder{ /* Change Grid Structure */
height: 76px; @media (max-width: 48em) {
width: 115px; .footer {
margin: -15px auto -15px 30px; grid-template-columns: 10px auto 10px 100px 10px;
}
.footer .text {
grid-column-start: 2;
}
.footer .sponsor {
grid-column-start: 4;
}
} }
.footer p { .footer p {

4
static/css/size.css Normal file
View File

@ -0,0 +1,4 @@
:root {
--size-normal: 48em;
--size-small: 35em;
}