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

This commit is contained in:
Dillon
2020-03-16 11:32:47 +08:00
committed by GitHub
parent 212e67c2a5
commit e4f81f9e7f
5 changed files with 25 additions and 9 deletions

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 {