Skip to content
This repository has been archived by the owner on Feb 4, 2024. It is now read-only.

Commit

Permalink
adjust size for smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
wbglaeser committed Oct 25, 2023
1 parent 84e4321 commit 50eebea
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_includes/mylayout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ title: My Rad Blog
<body>

<!-- 1. Fixed Navbar -->
<!-- Deactivate Navbar for now
<div class="navbar">
<div class="navbar-inner">
<a href="#home">Home</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
</div>
-->

<!-- 2. Central Scrollable Element -->
<div class="central-container">
Expand Down
7 changes: 7 additions & 0 deletions src/static/css/bundle.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,10 @@ body, p, a {
margin-bottom: 20px;
color: darkblue;
}

@media (max-width: 768px) { /* Typically, 768px is a breakpoint for tablets, adjust if needed */
.central-container {
padding-left: 8%; /* Reduce padding for smaller screens */
padding-right: 8%; /* Reduce padding for smaller screens */
}
}

0 comments on commit 50eebea

Please sign in to comment.