Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
fix(style): auto width problem caused by too long tags or site t… (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonzq authored Mar 16, 2020
1 parent 212e67c commit e4f81f9
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 9 deletions.
6 changes: 0 additions & 6 deletions assets/css/_core/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@
}

@media only screen and (max-width: 960px) {
#header-desktop {
.header-wrapper {
padding: 0 1rem;
}
}

.page {
max-width: 80%;

Expand Down
16 changes: 15 additions & 1 deletion assets/css/_partial/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ header {
.header-title {
font-size: 1.5rem;
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}

.menu .menu-item {
Expand Down Expand Up @@ -47,11 +50,18 @@ header {
.header-wrapper {
width: auto;
text-align: center;
padding: 0 3rem;
padding: 0 3%;
display: flex;
justify-content: space-between;

.header-title {
max-width: 30%;
}

.menu {
overflow: hidden;
white-space: nowrap;

.menu-item {
margin: 0 .5rem;

Expand Down Expand Up @@ -93,6 +103,10 @@ header {
padding-left: 1rem;
box-sizing: border-box;

.header-title {
max-width: 80%;
}

.menu-toggle {
cursor: pointer;
line-height: 4rem;
Expand Down
8 changes: 8 additions & 0 deletions assets/css/_partial/_single/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@
font-size: 0.9rem;
}

.post-tags {
max-width: 65%;

* {
display: inline;
}
}

.post-nav {
&::before,
&::after {
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/single/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>

<div class="post-info-more">
<section>
<section class="post-tags">
{{- with .Params.tags -}}
<i class="fas fa-tags fa-fw"></i>&nbsp;
{{- range $index, $value := . -}}
Expand Down

Large diffs are not rendered by default.

0 comments on commit e4f81f9

Please sign in to comment.