add logo container to header, fix centering issues. add section css

This commit is contained in:
Felix Schulze
2020-02-26 13:06:52 +01:00
parent 7e06a21606
commit 4d31366eba
5 changed files with 44 additions and 31 deletions

View File

@ -2,28 +2,30 @@
/* Header */
#header {
top: 80px;
position: absolute;
left: 50%;
transform: translate(-50%, 70px);
margin-top: 80px;
> #logo-container {
width: max-content;
margin: auto;
padding: 2em 1em;
> h1 {
font-size: 60pt;
display: inline-block;
color: _palette(accent1);
margin: 0 0 0 40px;
> h1 {
font-size: 60pt;
display: inline-block;
color: _palette(accent1);
margin: 0 0 0 40px;
&:first-child {
color: _palette(accent2);
margin: 0 0 0 10px;
&:first-child {
color: _palette(accent2);
margin: 0 0 0 10px;
}
}
}
> #logo > img {
height: 140pt;
width: auto;
display: inline-block;
float: left;
> #logo > img {
height: 140pt;
width: auto;
display: inline-block;
float: left;
}
}
/*
@include breakpoint('<=xlarge') {
@ -35,7 +37,7 @@
}
*/
@include breakpoint('<=medium') {
top: 60px;
margin-top: 60px;
}
/*
@include breakpoint('<=small') {

View File

@ -2,7 +2,14 @@
/* Main */
#main {
width: 100%;
> section {
height: 400px;
width: 100%;
max-width: 600px;
margin: 8em auto 4em;
}
/*
@include breakpoint('<=xlarge') {

View File

@ -6,6 +6,7 @@
'height #{_duration(transition)} ease',
'background #{_duration(transition)} ease',
));
top: 0;
height: 80px;
position: fixed;
width: 100%;