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… (#168)
This commit is contained in:
parent
212e67c2a5
commit
e4f81f9e7f
5 changed files with 25 additions and 9 deletions
assets/css
layouts/partials/single
resources/_gen/assets/scss/css
|
@ -11,12 +11,6 @@
|
|||
}
|
||||
|
||||
@media only screen and (max-width: 960px) {
|
||||
#header-desktop {
|
||||
.header-wrapper {
|
||||
padding: 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
.page {
|
||||
max-width: 80%;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -77,6 +77,14 @@
|
|||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.post-tags {
|
||||
max-width: 65%;
|
||||
|
||||
* {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
.post-nav {
|
||||
&::before,
|
||||
&::after {
|
||||
|
|
|
@ -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>
|
||||
{{- range $index, $value := . -}}
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue