diff --git a/src/styles/article.scss b/src/styles/article.scss
index a62f21e..b1fb57b 100644
--- a/src/styles/article.scss
+++ b/src/styles/article.scss
@@ -74,45 +74,9 @@
}
}
-/deep/ .navigation {
- padding: .75rem 1rem;
- position: fixed;
- display: flex;
- color: rgba(0,0,0,0.9);
- font-family: 'Mirages Custom', 'Merriweather', 'Open Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', 'Segoe UI Emoji', 'Segoe UI Symbol', Helvetica, Arial, sans-serif;
- .container-fluid {
- display: -ms-flexbox;
- display: flex;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
- -ms-flex-align: center;
- align-items: center;
- -ms-flex-pack: justify;
- justify-content: space-between;
- width: 100%;
- padding-right: 1rem;
- padding-left: 1rem;
- margin-right: auto;
- margin-left: auto;
- }
- .navbar-brand {
- display: inline-block;
- padding: 0;
- margin-right: 1rem;
- font-size: 1.25rem;
- font-weight: 700;
- line-height: 1.5;
- white-space: nowrap;
- max-width: 180px;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .navbar-brand.text-brand {
- padding-top: 0.3125rem;
- padding-bottom: 0.3125rem;
- }
- a {
- color: rgba(0,0,0,0.9);
+@media (min-width: 576px) {
+ .navbar>.container-fluid {
+ max-width: 540px;
}
}
@@ -128,7 +92,20 @@
.article-header .inner {
padding-top: 3.75rem;
}
- .container-fluid {
+ .navbar>.container-fluid {
max-width: 720px;
}
}
+
+@media (min-width: 992px) {
+ .navbar>.container-fluid {
+ max-width: 960px;
+ }
+}
+
+@media (min-width: 1210px) {
+ .navbar>.container-fluid {
+ max-width: 1170px;
+ }
+}
+
diff --git a/src/styles/markdown.scss b/src/styles/markdown.scss
index 9c7bb70..05cdf86 100644
--- a/src/styles/markdown.scss
+++ b/src/styles/markdown.scss
@@ -12,10 +12,11 @@
--maxwidth: 1284px;
}
.scrollbar {
+ margin-top: .75rem;
+ margin-left: -1rem;
position: fixed;
height: 3px;
width: 10px;
- top: 50px;
background-color: #50bcb6;
-webkit-transition: width 0.5s ease;
-moz-transition: width 0.5s ease;
@@ -28,8 +29,8 @@
background: linear-gradient(to right, #0052d4, #0ed2f7, #b2fefa) !important;
}
/deep/ #top {
+ padding: .75rem 1rem;
line-height: 2;
- height: 50px;
text-align: center;
width: 100%;
position: fixed;
@@ -44,6 +45,99 @@
-webkit-backdrop-filter: saturate(180%) blur(20px);
backdrop-filter: saturate(180%) blur(20px);
background-color: rgba(255,255,255,0.72);
+
+ .navbar {
+ display: flex;
+ color: rgba(0,0,0,0.9);
+ font-family: 'Mirages Custom', 'Merriweather', 'Open Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', 'Segoe UI Emoji', 'Segoe UI Symbol', Helvetica, Arial, sans-serif;
+ .container-fluid {
+ display: -ms-flexbox;
+ display: flex;
+ -ms-flex-wrap: wrap;
+ flex-wrap: wrap;
+ -ms-flex-align: center;
+ align-items: center;
+ -ms-flex-pack: justify;
+ justify-content: space-between;
+ width: 100%;
+ padding-right: 1rem;
+ padding-left: 1rem;
+ margin-right: auto;
+ margin-left: auto;
+
+ .mr-auto {
+ margin-right: auto !important;
+ }
+
+ .navbar-nav {
+ display: -ms-flexbox;
+ display: flex !important;
+ flex-direction: row;
+ padding-left: 0;
+ margin-bottom: 0;
+ list-style: none;
+ -webkit-flex-wrap: wrap;
+ -ms-flex-wrap: wrap;
+ flex-wrap: wrap;
+ .nav-item {
+ margin: 0 10px;
+ }
+ .side-toolbar-list {
+ text-align: center;
+ -webkit-flex-wrap: nowrap;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ li a {
+ display: inline-block;
+ height: 2.5rem;
+ width: 2.5rem;
+ line-height: 2.5rem;
+ border-radius: 100%;
+ font-size: .75rem;
+ background: #2c2a2a;
+ color: #ccc;
+ vertical-align: middle;
+ -webkit-transition: 0.3s ease all;
+ -moz-transition: 0.3s ease all;
+ -ms-transition: 0.3s ease all;
+ -o-transition: 0.3s ease all;
+ transition: 0.3s ease all;
+ }
+ }
+ }
+
+ .navbar-collapse {
+ display: flex !important;
+ flex-basis: auto;
+ -ms-flex-positive: 1;
+ flex-grow: 1;
+ -ms-flex-align: center;
+ align-items: center;
+ line-height: 2;
+ }
+
+ }
+ .navbar-brand {
+ display: inline-block;
+ padding: 0;
+ margin-right: 1rem;
+ font-size: 1.25rem;
+ font-weight: 700;
+ line-height: 1.5;
+ white-space: nowrap;
+ max-width: 180px;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ .navbar-brand.text-brand {
+ padding-top: 0.3125rem;
+ padding-bottom: 0.3125rem;
+ }
+ a {
+ color: rgba(0,0,0,0.9);
+ }
+ }
+
.bar {
position: absolute;
height: 100%;
@@ -123,6 +217,14 @@
.v-note-panel {
border-radius: 1rem;
}
+ .note-update-date {
+ padding: 0.75rem;
+ border-left: 0.35rem solid;
+ border-radius: 0.25rem;
+ margin: 1.5rem 0;
+ border-color: #0052d4;
+ background: linear-gradient(to right, #5d9eea, #afcafd);
+ }
}
@@ -348,8 +450,32 @@
/deep/ .right-menu > div.titleList li:hover a {
color: #13C2C2;
}
-/deep/ .right-menu > div.titleList .pl {
- padding-left: 35px;
+/deep/ .right-menu > div.titleList {
+ .h-1 {
+ padding-left: 10px;
+ font-size: 1.3rem;
+ }
+ .h-2 {
+ padding-left: 20px;
+ font-size: 1.25rem;
+ }
+ .h-3 {
+ padding-left: 30px;
+ font-size: 1.125rem;
+ }
+ .h-4 {
+ padding-left: 40px;
+ font-size: 0.95rem;
+ }
+ .h-5 {
+ padding-left: 50px;
+ font-size: 0.875rem;
+ }
+ .h-6 {
+ padding-left: 60px;
+ font-size: .85em;
+ color: #6a737d;
+ }
}
/deep/ .right-menu > div.titleList .pl a {
font-size: 13px;
diff --git a/src/views/public/article/index.vue b/src/views/public/article/index.vue
index 8b44d63..88523f5 100644
--- a/src/views/public/article/index.vue
+++ b/src/views/public/article/index.vue
@@ -6,13 +6,30 @@
\n" + + // " \n" + + // " 本文最后更新于:2020年9月16日 上午\n" + + // " \n" + + // "
" + p.className = "note-update-date" + p.innerText = `本文最后更新于:${this.file.updateDate}` + // main.insertAdjacentHTML('beforebegin', '复制代码'); + // main.childNodes[0].insertAdjacentHTML('beforebegin', '') + main.insertBefore(p , main.childNodes[0]) + // 动态打字效果 this.dynamicTyping() @@ -132,15 +162,23 @@ this.pageTitle = hTag.innerText } - let a = $('.el-main').html().match(/