Skip to content

Commit

Permalink
mobile styling. fixes #23
Browse files Browse the repository at this point in the history
  • Loading branch information
beggers committed Jun 14, 2024
1 parent 3722e98 commit 5a8ebde
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 96 deletions.
10 changes: 9 additions & 1 deletion styles/content.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
.content {
grid-row: 2;
grid-column: 2;
}
}

/*
@media (max-width: 868px) {
.content {
grid-column: 1;
grid-row: 2;
}
} */
6 changes: 6 additions & 0 deletions styles/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ footer {
grid-row: 3;
}

@media (max-width: 868px) {
footer {
margin: 0 auto 0 auto;
}
}

footer p {
margin: 0;
text-align: center;
Expand Down
27 changes: 27 additions & 0 deletions styles/navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,33 @@
margin-right: 3vw;
}

.nav-sidebar ul {
margin: 0 0 1.25rem 0;
padding-left: 1.25rem;
padding-right: 0;
}


@media (max-width: 868px) {
.nav-sidebar {
grid-column: 2;
grid-row: 1;
align-items: center;
margin-right: 0;
width: 100%;
}

.nav-sidebar ul {
display: flex;
flex-direction: row;
justify-content: center;
flex-wrap: wrap;
padding: 0;
list-style: none;
gap: 1rem;
}
}

.nav-sidebar li::marker {
content: "./";
}
2 changes: 1 addition & 1 deletion styles/page-title.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.post-date {
font-size: 1.0rem;
margin-top: 0rem;
margin-bottom: 1.25rem;
margin-bottom: 0.5rem;
font-weight: 600;
color: var(--muted-text);
text-align: center;
Expand Down
105 changes: 11 additions & 94 deletions styles/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ p {
max-width: 60ch;
}

@media (max-width: 868px) {
p {
margin: 0 auto 1.25rem auto;
}
}

a:link,
a:visited {
color: var(--highlight);
Expand All @@ -97,8 +103,10 @@ a.active {
}

ul {
margin: 0 0 1.25rem 0;
padding-left: 1.25rem;
margin: 0 auto 1.25rem auto;
padding-left: 3rem;
padding-right: 3rem;
max-width: 55ch;
}

ol {
Expand All @@ -110,101 +118,10 @@ ul ul,
ul ol,
ol ul,
ol ol {
margin: 0;
max-width: 60ch;
}

ul li::marker {
content: '\2192\00A0';
color: var(--muted-text);
}

dt {
margin: 0;
font-weight: bold;
}

dd {
margin: 0 0 0 1.5rem;
font-style: italic;
}

dd+dt {
margin-top: 1.5rem;
}

dl {
margin: 0 0 1.5rem 0;
}

blockquote {
position: relative;
margin: 0 0 1.5rem 1.5rem;
}

blockquote::before {
position: absolute;
left: -1.5rem;
content: ">";
color: var(--muted-text);
}

pre,
code,
kbd,
samp {
background: var(--bg) !important;
font-family: var(--font-monospace);
}

code:before {
content: "`";
color: var(--muted-text);
}

code:after {
content: "`";
color: var(--muted-text);
}

pre {
overflow-x: auto;
padding: 1.5rem;
margin: 0 0 1.5rem 0;
}

b,
strong {
font-weight: 600;
}

::selection,
mark {
background-color: var(--highlight);
color: var(--bg);
}

table {
border-spacing: 0;
margin: 0 0 1.5rem 0;
overflow-wrap: anywhere;
}

th,
td {
padding: 0 .75rem;
vertical-align: top;
}

th:first-child,
td:first-child {
padding-left: 0;
}

th {
text-align: inherit;
}

img {
max-width: 100%;
height: auto;
}

0 comments on commit 5a8ebde

Please sign in to comment.