style: vertically center app home (#111)

* style: app-wrapper positioning to vertical center when on home
* refactor: undo unneeded change
* refactor: remove app.css
This commit is contained in:
Ayo Ayco 2024-09-03 21:52:25 +02:00 committed by GitHub
parent bcba01f04c
commit 37d05e3ec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 10 deletions

View file

@ -19,7 +19,7 @@
svg {
border: 0px;
width: 280px;
width: 300px;
max-width: 100%;
}

View file

@ -1,6 +1,5 @@
---
import { ArticleData } from "@extractus/article-extractor";
import "../styles/app.css";
import "../styles/reset.css";
import '../styles/variables.css';
@ -70,8 +69,25 @@ const appTitle = article?.title ? `${article.title} | Cozy` : 'Cozy';
max-width: 650px;
margin: 0 auto;
padding: 0.5rem;
padding-bottom: 2rem;
padding-bottom: 5em;
position: relative;
top: 50%;
transform: translateY(-50%);
-webkit-transform: translateY(-50%);
&:has(#router-outlet #post) {
position: default;
top: 0;
transform: none;
-webkit-transform: none;
#jumbotron {
display: none;
}
}
}
#main-content {
* {
margin: 1rem 0 0;

View file

@ -1,7 +0,0 @@
#app-wrapper {
&:has(#router-outlet #post) {
#jumbotron {
display: none;
}
}
}