1
0
Fork 0
mirror of https://github.com/dillonzq/LoveIt.git synced 2025-03-21 22:38:52 +01:00

fix(style): auto width problem caused by too long tags or site t… ()

This commit is contained in:
Dillon 2020-03-16 11:32:47 +08:00 committed by GitHub
parent 212e67c2a5
commit e4f81f9e7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 9 deletions
assets/css
layouts/partials/single
resources/_gen/assets/scss/css

View file

@ -11,12 +11,6 @@
}
@media only screen and (max-width: 960px) {
#header-desktop {
.header-wrapper {
padding: 0 1rem;
}
}
.page {
max-width: 80%;

View file

@ -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 {
@ -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;
@ -93,6 +103,10 @@ header {
padding-left: 1rem;
box-sizing: border-box;
.header-title {
max-width: 80%;
}
.menu-toggle {
cursor: pointer;
line-height: 4rem;

View file

@ -77,6 +77,14 @@
font-size: 0.9rem;
}
.post-tags {
max-width: 65%;
* {
display: inline;
}
}
.post-nav {
&::before,
&::after {

View file

@ -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 := . -}}