Skip to content

Commit

Permalink
Fixed blog post metadata overlap on mobile/tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Sep 30, 2023
1 parent bc9cdb5 commit 015685f
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 3 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.b2ea3d00.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.1dbc8ddf.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.a5377069.min.css' | url }}">
Expand Down
30 changes: 30 additions & 0 deletions src/templates/assets/stylesheets/main/components/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,36 @@

// [tablet -]: Adjust spacing
@include break-to-device(tablet) {
position: initial;
width: 100%;
padding: 0;

.md-sidebar__inner {
padding: 0;
}

.md-post__meta {
margin-inline: px2rem(12px);
}

.md-nav__item {
display: inline;
border: none;
}

.md-nav__list {
display: inline-flex;
flex-wrap: wrap;
gap: px2rem(12px);
padding-block: px2rem(12px);
}

.md-nav__link {
padding: 0;
}

.md-nav {
position: initial;
}
}
}

0 comments on commit 015685f

Please sign in to comment.