mirror of
https://gitlab.com/fabinfra/fabinfra-theme.git
synced 2025-03-12 22:51:49 +01:00
Fixed: Responsive Project Site
This commit is contained in:
parent
84cab33639
commit
b77215813a
@ -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>
|
||||||
|
|
||||||
|
@ -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">
|
||||||
|
@ -35,25 +35,34 @@ 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 {
|
||||||
width: 200px;
|
align-self: center;
|
||||||
margin-left: auto;
|
height: 200px;
|
||||||
margin-right: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main .header-project .content .logo img {
|
/* Change Grid Structure */
|
||||||
width: : 100%;
|
@media (max-width: 30em) {
|
||||||
}
|
main .header-project .content {
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 35em) {
|
|
||||||
main .header-project .content .logo {
|
main .header-project .content .logo {
|
||||||
display: none;
|
align-self: center;
|
||||||
|
width: 200px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* images */
|
||||||
|
.text-justify img {
|
||||||
|
display: block;
|
||||||
|
margin: 50px auto;
|
||||||
|
}
|
@ -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,8 +132,18 @@ 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
4
static/css/size.css
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
:root {
|
||||||
|
--size-normal: 48em;
|
||||||
|
--size-small: 35em;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user