Skip to content

Commit

Permalink
Make home page more mobile-friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
blyxyas committed May 19, 2024
1 parent 62b0de0 commit ec03bfb
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
45 changes: 41 additions & 4 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ footer {

a {
color: black;
text-decoration: underline;
text-decoration: line !important;
text-decoration-color: #b764ff;
text-decoration-thickness: 6px;
}

a .main-title-wrapper {
text-decoration: none;
}
// a .main-title-wrapper {
// }

.main-title-wrapper {
display: flex;
Expand Down Expand Up @@ -181,4 +182,40 @@ blockquote {
color: rgb(74, 74, 74);
font-weight: bold;
font-style: italic;
}

// Mobile-friendly! :)
@media only screen and (max-width: 768px) {
.main-title {
width: 50%;
padding-top: 5px;
}

.main-title-wrapper {
width: 100vh;
}

main {
display: grid;
justify-items: center;
width: 100vh;
}

main div {
width: 90%;
height: 50vh;
}

.home-el p {
font-size: 2ch;
}

.home-el h2 {
font-size: 3ch;
}

main .home-el:first-child {
border: 5px solid #4fdb2c;
border-radius: 10px;
}
}
2 changes: 1 addition & 1 deletion layouts/_default/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{ range site.RegularPages }}
<div class="home-el">
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ .Summary }}
<p>{{ .Summary }}</p>
</div>
{{ end }}
{{ end }}

0 comments on commit ec03bfb

Please sign in to comment.