Merge pull request #47 from welpo/feature/responsive-footer
📱 feat: make footer & banner responsive
This commit is contained in:
commit
a1c16b0df0
@ -94,17 +94,21 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
flex: 1;
|
||||||
|
width: 100%;
|
||||||
max-width: var(--max-layout-width);
|
max-width: var(--max-layout-width);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
margin-top: 6vmin;
|
margin-top: 6vmin;
|
||||||
padding: 0 24px;
|
padding: 0 24px;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
min-height: 80vh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
article{
|
article{
|
||||||
@ -115,7 +119,6 @@ article{
|
|||||||
.section-title {
|
.section-title {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 2.2em;
|
font-size: 2.2em;
|
||||||
margin-top: 0.67em;
|
|
||||||
margin-bottom: 0em;
|
margin-bottom: 0em;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
@ -1,47 +1,47 @@
|
|||||||
footer {
|
footer {
|
||||||
padding: 10px;
|
margin-top: auto;
|
||||||
font-family: var(--post-font-family);
|
font-family: var(--post-font-family);
|
||||||
}
|
padding: 1.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
footer section {
|
footer section {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 0rem;
|
gap: 0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer nav {
|
footer nav {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0rem;
|
gap: 0rem;
|
||||||
margin: 0 0rem;
|
margin: 0 0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.socials {
|
.socials {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
/* flex-child */
|
/* flex-child */
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
/* flex-container */
|
/* flex-container */
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
// gap: 0px;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.social {
|
.social {
|
||||||
background-image: unset;
|
background-image: unset;
|
||||||
padding: 2px;
|
padding: 1vmin;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social>img {
|
.social>img {
|
||||||
color: #000000;
|
color: #000000;
|
||||||
width: 32px;
|
aspect-ratio: 1/1;
|
||||||
height: 32px;
|
width: 1.6rem;
|
||||||
padding: 18px;
|
height: auto;
|
||||||
filter: invert(0);
|
padding: 0.7vmin;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social {
|
.social {
|
||||||
&:hover {
|
&:hover {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#banner-container-home {
|
#banner-container-home {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 10px auto;
|
margin: 0.2rem auto;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
@ -56,7 +56,13 @@
|
|||||||
@media only screen and (max-width: 600px) {
|
@media only screen and (max-width: 600px) {
|
||||||
#banner-container-home {
|
#banner-container-home {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0em auto;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-banner-header {
|
||||||
|
font-size: 2.2rem;
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner-home-img {
|
.banner-home-img {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user