Skip to content

Commit

Permalink
CSS: add support for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
xjunko committed Jan 30, 2025
1 parent 6eedf65 commit 8ad74d9
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/css/blog.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
}

.blog-return {
width: 120px;
width: fit-content;
border-right: 1px solid black;
}

Expand Down
91 changes: 91 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,95 @@ img[src*="#center"] {
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}


/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
body {
width: 100%;
margin: 10px auto;
padding: 0 10px;
}

#kafu-home {
display: none;
}

.website-grid {
padding-top: 16px;
display: block;
}

.website-grid #content,
.website-grid #sidebar {
width: 100%;
}

.website-grid #sidebar {
margin-top: 16px;
}

.website-grid.website-blog {
display: block;
}

.window-header {
height: 100px;
}

.window-header #domain {
font-size: 2rem;
}

.window-header #char {
height: 100px;
}

.window-button a {
font-size: 16px;
padding: 6px 12px;
}

.window-content h2 {
font-size: 24px;
}

.window-content p,
.window-content a {
font-size: 14px;
}

.window-content.post-latest a:first-child {
font-size: 15px;
}

.window-content.post-latest a {
font-size: 15px;
}

.window-content.blog div h2 {
font-size: 18px;
}

#sidebar .window {
max-width: 100%;
}

.grid {
grid-template-columns: 1fr;
justify-items: center;
}

.grid .window {
height: auto;
}

.grid-justify {
flex-direction: column;
}

.caption {
font-size: 16px;
}
}
2 changes: 1 addition & 1 deletion templates/route/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
feel free to look around, there might some cool stuff you might like!
</p>
</div>
<div>
<div id="kafu-home">
<img src="static/imgs/kafu-peace.webp" height="100px"
style="transform: scaleX(-1);scale: 1.5;position:relative;bottom: -5px;left:20px;pointer-events: none">
</div>
Expand Down

0 comments on commit 8ad74d9

Please sign in to comment.