Skip to content

Commit

Permalink
improved mobile responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
r7wx committed Jun 17, 2023
1 parent 0efe74e commit d5b02ce
Showing 1 changed file with 32 additions and 37 deletions.
69 changes: 32 additions & 37 deletions internal/engine/template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.Title}}</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<style>
Expand Down Expand Up @@ -39,25 +40,7 @@
grid-template-columns: repeat(1, minmax(0, 1fr));
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
.category-block {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (min-width: 1024px) {
.category-block {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}

@media (min-width: 1280px) {
.category-block {
grid-template-columns: repeat(7, minmax(0, 1fr));
}
}
}

.service-block {
padding: 0.3rem;
Expand Down Expand Up @@ -92,24 +75,6 @@
grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
.notes-block {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (min-width: 1024px) {
.notes-block {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (min-width: 1280px) {
.notes-block {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}

.note-block {
padding: 1rem;
border-radius: 0.25rem;
Expand All @@ -134,6 +99,36 @@
align-items: center;
display: flex;
}

@media (min-width: 768px) {
.category-block {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notes-block {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (min-width: 1024px) {
.category-block {
grid-template-columns: repeat(4, minmax(0, 1fr));
}

.notes-block {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (min-width: 1280px) {
.category-block {
grid-template-columns: repeat(7, minmax(0, 1fr));
}

.notes-block {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
</style>
</head>

Expand Down

0 comments on commit d5b02ce

Please sign in to comment.