Commit f84e9def authored by Sparkf's avatar Sparkf 🏙️
Browse files

adjustments to fit the dark mode

parent 82318f63
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -70,6 +70,7 @@ module.exports = {
      },
    ],
  ],
  theme: 'default-prefers-color-scheme',
  themeConfig: {
    nav: [
      { text: '主页', link: '/' },
+4 −0
Original line number Diff line number Diff line
@@ -198,6 +198,10 @@ function build_all_table() {
                $('td', row).css('background-color', '#003f43'); // SUSTech dark green
                $('td', row).css('color', '#FFFFFF');
            }
            else if (data[2] == "未发车") {
                $('td', row).css('background-color', '#FFFFFF'); // SUSTech dark green
                $('td', row).css('color', '#2c3e50');
            }            
            else if (data[2] == "在途中") {
                $('td', row).css('background-color', '#ed6c00'); // SUSTech orange
                $('td', row).each(function () {
+4 −0
Original line number Diff line number Diff line
@@ -378,6 +378,10 @@ function build_all_table() {
                $('td', row).css('background-color', '#003f43'); // SUSTech dark green
                $('td', row).css('color', '#FFFFFF');
            }
            else if (data[2] == "未发车") {
                $('td', row).css('background-color', '#FFFFFF'); // SUSTech dark green
                $('td', row).css('color', '#2c3e50');
            }            
            else if (data[2] == "在途中") {
                $('td', row).css('background-color', '#ed6c00'); // SUSTech orange
                $('td', row).each(function () {
+2 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
    "commander": "^5.1.0",
    "esm": "^3.2.25",
    "moment": "^2.26.0",
    "vuepress-plugin-sitemap": "^2.3.1"
    "vuepress-plugin-sitemap": "^2.3.1",
    "vuepress-theme-default-prefers-color-scheme": "^1.1.0"
  }
}