From fd04f1bdeace19dc58104d691774d57851e6eaef Mon Sep 17 00:00:00 2001 From: amazingrise <8315221+AmazingRise@users.noreply.github.com> Date: Sat, 14 Aug 2021 13:31:24 +0800 Subject: Remove Vue.js from source code. --- assets/scss/journal.scss | 54 +++-- layouts/_default/baseof.html | 3 + layouts/_default/section.html | 4 +- layouts/_default/single.html | 4 +- layouts/_default/taxonomy.html | 4 +- layouts/_default/terms.html | 4 +- layouts/index.html | 4 +- layouts/partials/comment.html | 29 ++- layouts/partials/extrabar.html | 13 +- layouts/partials/head.html | 30 +-- layouts/partials/journal.html | 294 ----------------------- layouts/partials/mobile-header.html | 21 +- layouts/partials/sidebar.html | 2 +- static/js/journal.js | 295 ++++++++++++++++++++++++ static/js/loadCSS.js | 79 ------- static/js/toc-collapse.js | 60 ----- static/vendor/js/bootstrap.min.js | 7 - static/vendor/js/bootstrap.min.js.map | 1 - static/vendor/js/jquery.min.js | 2 - static/vendor/js/popper.min.js | 5 - static/vendor/js/popper.min.js.map | 1 - static/vendor/js/smooth-scroll.polyfills.min.js | 2 - static/vendor/js/vue.min.js | 6 - 23 files changed, 378 insertions(+), 546 deletions(-) delete mode 100644 static/js/loadCSS.js delete mode 100644 static/js/toc-collapse.js delete mode 100644 static/vendor/js/bootstrap.min.js delete mode 100644 static/vendor/js/bootstrap.min.js.map delete mode 100644 static/vendor/js/jquery.min.js delete mode 100644 static/vendor/js/popper.min.js delete mode 100644 static/vendor/js/popper.min.js.map delete mode 100644 static/vendor/js/smooth-scroll.polyfills.min.js delete mode 100644 static/vendor/js/vue.min.js diff --git a/assets/scss/journal.scss b/assets/scss/journal.scss index 51aaee7..83f601b 100644 --- a/assets/scss/journal.scss +++ b/assets/scss/journal.scss @@ -3,7 +3,9 @@ $color-accent: #1976d2; $back-container-background: #fcfcfc; $front-container-background: #ffffff; -$default-font-list: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; +$default-font-list: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, + "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", + "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; $mono-font-list: "Fira Mono", "Cousine", Monaco, Menlo, "Source Code Pro", monospace; //$sans-preferred-font-list: "Montserrat", "Roboto", "Source Sans Pro", "Helvetica", $default-font-list; @@ -74,7 +76,9 @@ body { box-sizing: border-box; } -h1, h2, h3{ +h1, +h2, +h3 { font-weight: 400; } @@ -116,8 +120,8 @@ button { } table { - table-layout: fixed; - overflow-x: scroll; + table-layout: fixed; + overflow-x: scroll; } button { @@ -369,8 +373,8 @@ a { font-size: $single-column-nav-link-size; padding: 2px; li { - list-style: none; - padding-left: 8px; + list-style: none; + padding-left: 8px; } a { text-decoration: none; @@ -471,8 +475,8 @@ a { .nav-link-subitem { font-size: $nav-link-size - 3px; li { - list-style: none; - padding-left: 2px; + list-style: none; + padding-left: 2px; } a { text-decoration: none; @@ -504,7 +508,7 @@ a { position: fixed; top: 0; right: 0; - + width: $extra-container-width; /*text-align: right;*/ font-family: $sans-preferred-font-list; @@ -588,7 +592,7 @@ a { padding-left: $side-container-width; padding-right: $extra-container-width; width: 100%; - + min-height: 100vh; @media screen and (max-width: $single-column-max-width) { padding: 0; @@ -766,7 +770,6 @@ a { padding: 15px; } .post { - padding: 0 0 20px 0; .post-head-wrapper { margin-top: -20px; @@ -941,22 +944,18 @@ a { } } } - - - - } #single-column-footer { - display: none; + display: none; - @media screen and (max-width: $single-column-max-width) { - display: block !important; - text-align: center; - font-size: $single-column-nav-footer-size; - font-family: $sans-preferred-font-list; - padding: 40px 20px 40px 20px; - } + @media screen and (max-width: $single-column-max-width) { + display: block !important; + text-align: center; + font-size: $single-column-nav-footer-size; + font-family: $sans-preferred-font-list; + padding: 40px 20px 40px 20px; + } } .toc { @@ -979,10 +978,10 @@ a { margin: 0; line-height: 1.7em; } - .toc-content{ + .toc-content { padding: 20px; } - .toc-active{ + .toc-active { color: darken($color-accent, 40%) !important; } @media screen and (max-width: $single-column-max-width) { @@ -995,7 +994,7 @@ a { * { /*font-size: $single-column-toc-size;*/ } - .toc-content{ + .toc-content { padding: 10px; } } @@ -1059,8 +1058,7 @@ a { color: $dark-accent; } -mjx-container -{ +mjx-container { overflow-y: hidden !important; } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index dd7fe01..757b685 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -10,12 +10,15 @@ {{- partial "mobile-header.html" . -}}