vue bootstarp 左側(cè)導航欄可收縮,移動端適配成滑入畫板導航欄布局

左右布局捏肢,支持左側(cè)導航欄固定可收縮奈籽,鼠標移動可觸發(fā)伸展,左側(cè)導航欄手風琴模式鸵赫,支持移動端適配衣屏,小屏左側(cè)導航欄會變成從左側(cè)滑出的抽屜。左右兩個容器有自己的滾動條辩棒,左側(cè)滾動右側(cè)不動狼忱,右側(cè)滾動左側(cè)不動膨疏。

依賴

    "bootstrap": "^4.4.1",
    "bootstrap-vue": "^2.2.2",
    "vue": "^2.6.11",
    "vue-router": "^3.1.3",

也可以不用bootstrap-vue

  • 把跟bootstrap-vue有關(guān)的組件刪除就行。我這里只用bootstrap-vue做了左側(cè)導航欄中的手風琴菜單以及頭部菜單钻弄。把<b-xxx>的組件刪除就行佃却。一樣可以運行。

效果如下

aside.gif

github

代碼很長,建議直接去github下載demo運行窘俺。

<template>
  <div class="d-flex flex-row nly-container">
    <div region="nly-aside" :class="nlyAsideClass">
      <!-- brand -->
      <a href="#" class="nly-container-aside-brand">
        <img
          :src="logo"
          alt="Logo"
          class="nly-container-aside-brand-image"
          style="opacity: .8"
        />
        <span class="nly-container-aside-brand-text">Nejinn Lerity Admin</span>
      </a>

      <!-- Sidebar -->
      <div class="nly-container-aside-sidebar-scrollbar">
        <div class="nly-container-aside-sidebar">
          <div
            class="mt-3 pb-3 mb-3 d-flex nly-container-aside-sidebar-user-panel"
          >
            <div class="nly-container-aside-sidebar-user-panel-image">
              <img
                :src="logo"
                class="nly-container-aside-sidebar-user-panel-image-img"
                alt="userimg"
              />
            </div>
            <div class="nly-container-aside-sidebar-user-panel-info">
              <a
                href="#"
                class="nly-container-aside-sidebar-user-panel-info-block"
                >姚欣</a
              >
            </div>
          </div>

          <!-- Sidebar Menu -->
          <b-nav vertical class="nly-container-aside-sidebar-menu">
            <b-nav
              role="tablist"
              class="nly-container-aside-sidebar-menu-nav nav-pills flex-column"
            >
              <b-nav-item
                active
                link-classes="nly-container-aside-sidebar-menu-nav-item-nav-link"
                class="nly-container-aside-sidebar-menu-nav-item"
              >
                <i
                  class="nly-container-aside-sidebar-menu-nav-item-icon fas fa-th"
                ></i>
                <p class="nly-container-aside-sidebar-menu-nav-item-nav-link-p">
                  儀表盤
                </p>
              </b-nav-item>
              <b-nav-item
                link-classes="nly-container-aside-sidebar-menu-nav-item-open-nav-link"
                class="nly-container-aside-sidebar-menu-nav-item-open"
                v-b-toggle.accordion-1
                active
              >
                <i
                  class="nly-container-aside-sidebar-menu-nav-item-open-icon fas fa-tachometer-alt"
                ></i>
                <p
                  class="nly-container-aside-sidebar-menu-nav-item-open-nav-link-p"
                >
                  我是食物
                  <i
                    class="when-opened nly-container-aside-sidebar-menu-nav-item-open-icon-right fas fa-angle-left"
                  ></i>
                  <i
                    class="when-closed nly-container-aside-sidebar-menu-nav-item-open-icon-right-off fas fa-angle-left"
                  ></i>
                </p>
              </b-nav-item>
              <ul class="nly-container-aside-sidebar-menu-nav">
                <b-collapse
                  id="accordion-1"
                  visible
                  accordion="my-accordion"
                  role="tabpanel"
                  tag="li"
                  class="nly-container-aside-sidebar-menu-nav-item-open"
                >
                  <b-nav-item
                    active
                    link-classes="nly-container-aside-sidebar-menu-nav-item-open-nav-item-link"
                    class="nly-container-aside-sidebar-menu-nav-item-open"
                  >
                    <i
                      class="nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon fas fa-th"
                    ></i>
                    <p
                      class="nly-container-aside-sidebar-menu-nav-item-open-nav-item-link-p"
                    >
                      我是獼猴桃
                    </p>
                  </b-nav-item>
                  <b-nav-item
                    link-classes="nly-container-aside-sidebar-menu-nav-item-open-nav-item-link"
                    class="nly-container-aside-sidebar-menu-nav-item-open"
                  >
                    <i
                      class="nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon fas fa-th"
                    ></i>
                    <p
                      class="nly-container-aside-sidebar-menu-nav-item-open-nav-item-link-p"
                    >
                      我是黃金香蕉
                    </p>
                  </b-nav-item>
                </b-collapse>
              </ul>

              <b-nav-item
                link-classes="nly-container-aside-sidebar-menu-nav-item-open-nav-link"
                class="nly-container-aside-sidebar-menu-nav-item-open"
                v-b-toggle.accordion-2
              >
                <i
                  class="nly-container-aside-sidebar-menu-nav-item-open-icon fas fa-tachometer-alt"
                ></i>
                <p
                  class="nly-container-aside-sidebar-menu-nav-item-open-nav-link-p"
                >
                  我是顏色
                  <i
                    class="when-opened nly-container-aside-sidebar-menu-nav-item-open-icon-right fas fa-angle-left"
                  ></i>
                  <i
                    class="when-closed nly-container-aside-sidebar-menu-nav-item-open-icon-right-off fas fa-angle-left"
                  ></i>
                </p>
              </b-nav-item>
              <ul class="nly-container-aside-sidebar-menu-nav">
                <b-collapse
                  id="accordion-2"
                  accordion="my-accordion"
                  role="tabpanel"
                  tag="li"
                  class="nly-container-aside-sidebar-menu-nav-item-open"
                >
                  <b-nav-item
                    link-classes="nly-container-aside-sidebar-menu-nav-item-open-nav-item-link"
                    class="nly-container-aside-sidebar-menu-nav-item-open"
                  >
                    <i
                      class="nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon fas fa-th"
                    ></i>
                    <p
                      class="nly-container-aside-sidebar-menu-nav-item-open-nav-item-link-p"
                    >
                      我是黃色
                    </p>
                  </b-nav-item>
                  <b-nav-item
                    link-classes="nly-container-aside-sidebar-menu-nav-item-open-nav-item-link"
                    class="nly-container-aside-sidebar-menu-nav-item-open"
                  >
                    <i
                      class="nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon fas fa-th"
                    ></i>
                    <p
                      class="nly-container-aside-sidebar-menu-nav-item-open-nav-item-link-p"
                    >
                      我是綠色
                    </p>
                  </b-nav-item>
                </b-collapse>
              </ul>
            </b-nav>
          </b-nav>

          <!-- /.sidebar-menu -->
        </div>
      </div>
    </div>
    <div class="center flex-fill nly-container-center-scrollbar">
      <div region="nly-container-center" class="nly-container-center">
        <div class="nly-container-center-content">
          <div
            region="nly-container-center-content-header"
            class="nly-container-center-content-header"
          >
            <div>
              <b-navbar toggleable="lg" type="dark">
                <button
                  type="button"
                  aria-label="Toggle navigation"
                  aria-controls="self"
                  aria-expanded="false"
                  class="navbar-toggler nly-container-center-content-main-aside-toggle"
                  @click="changeaside"
                >
                  <span>
                    <b-icon icon="bar-chart" />
                  </span>
                </button>

                <button
                  type="button"
                  aria-label="Toggle navigation"
                  aria-controls="self"
                  aria-expanded="false"
                  class="navbar-toggler nly-container-center-content-main-aside-open-toggle"
                  @click="changeopen"
                >
                  <span>
                    <b-icon icon="bar-chart" />
                  </span>
                </button>

                <b-navbar-brand
                  href="#"
                  class="nly-container-center-content-header-brand m-auto"
                >
                  <img
                    :src="logo"
                    alt="nejinn lerity admin"
                    class="nly-container-center-content-header-brand-img"
                  />
                  <span class="nly-container-center-content-header-brand-text">
                    NLY
                  </span>
                </b-navbar-brand>

                <b-navbar-toggle
                  target="nav-collapse"
                  class="nly-container-center-content-main-aside-open-toggle"
                ></b-navbar-toggle>

                <b-collapse id="nav-collapse" is-nav>
                  <b-navbar-nav>
                    <b-nav-item href="#">Dashboard</b-nav-item>
                    <b-nav-form>
                      <b-form-input
                        size="sm"
                        class="ml-sm-3"
                        placeholder="Search"
                      ></b-form-input>
                      <b-button
                        size="sm"
                        class="my-2 my-sm-0 ml-sm-1"
                        type="submit"
                        >Search</b-button
                      >
                    </b-nav-form>
                  </b-navbar-nav>

                  <!-- Right aligned nav items -->
                  <b-navbar-nav class="ml-auto">
                    <b-nav-item-dropdown text="Lang" right>
                      <b-dropdown-item href="#">EN</b-dropdown-item>
                      <b-dropdown-item href="#">ES</b-dropdown-item>
                      <b-dropdown-item href="#">RU</b-dropdown-item>
                      <b-dropdown-item href="#">FA</b-dropdown-item>
                    </b-nav-item-dropdown>

                    <b-nav-item-dropdown
                      right
                      no-caret
                      toggle-class="nly-container-center-content-header-navbar-nav-dropdown-navlink"
                    >
                      <template v-slot:button-content>
                        <b-icon icon="person" />
                      </template>
                      <b-dropdown-item href="#">ES</b-dropdown-item>
                      <b-dropdown-item href="#">RU</b-dropdown-item>
                      <b-dropdown-item href="#">FA</b-dropdown-item>
                    </b-nav-item-dropdown>
                  </b-navbar-nav>
                </b-collapse>
              </b-navbar>
            </div>
          </div>
          <div
            region="nly-container-center-content-main"
            class="center flex-fill flex-column nly-container-center-content-main"
          >
            <b-breadcrumb>
              <div
                class="nly-container-center-content-main-breadcrumb-left mr-auto col-sm-6 "
              >
                <b-icon
                  icon="house-fill"
                  scale="1.25"
                  shift-v="1.25"
                  aria-hidden="true"
                ></b-icon>
                Home
              </div>

              <div
                class="nly-container-center-content-main-breadcrumb-right col-sm-6 justify-content-sm-end align-self-center "
              >
                <b-breadcrumb-item href="#home">
                  <b-icon
                    icon="house-fill"
                    scale="1.25"
                    shift-v="1.25"
                    aria-hidden="true"
                  ></b-icon>
                  Home
                </b-breadcrumb-item>
                <b-breadcrumb-item href="#foo">Foo</b-breadcrumb-item>
                <b-breadcrumb-item href="#bar">Bar</b-breadcrumb-item>
                <b-breadcrumb-item active>Baz</b-breadcrumb-item>
              </div>
            </b-breadcrumb>
          </div>
          <div
            region="nly-container-center-content-foot"
            class="nly-container-center-content-foot"
          >
            南
          </div>
          <div
            class="nly-container-aside-max-open-overlay"
            v-show="overlay"
            @click="changeoverlay"
          ></div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import logo from "../assets/logo.png";
export default {
  data() {
    return {
      nlyAsideClass: "nly-container-aside-max",
      logo,
      overlay: false,
      openMenu: true
    };
  },
  methods: {
    changeopen() {
      if (this.nlyAsideClass == "nly-container-aside-max") {
        this.nlyAsideClass = "nly-container-aside-max-open";
        this.overlay = true;
      } else if (this.nlyAsideClass == "nly-container-aside-mini") {
        this.nlyAsideClass = "nly-container-aside-max-open";
        this.overlay = true;
      } else {
        this.nlyAsideClass = "nly-container-aside-max";
        this.overlay = false;
      }
    },
    changeaside() {
      this.nlyAsideClass =
        this.nlyAsideClass == "nly-container-aside-mini"
          ? "nly-container-aside-max"
          : "nly-container-aside-mini";
    },
    changeoverlay() {
      if (this.overlay == true) {
        this.nlyAsideClass = "nly-container-aside-max";
        this.overlay = false;
      }
    },
    changeMenuStatus() {
      this.openMenu = this.openMenu == true ? false : true;
    }
  },
  watch: {
    // 檢測罩層變化
    nlyAsideClass(newvar) {
      if (newvar != "nly-container-aside-max-open") {
        this.overlay = false;
      }
    }
  }
};
</script>

<style lang="less" scoped>
@basezindex: 10;

// 邊側(cè)容器
.nly-container {
  height: 100%;
  width: 100%;
  background-color: #343a40;
}

// 默認大屏邊側(cè)欄
.nly-container-aside-max {
  height: 100%;
  width: 16rem;
  background-color: #343a40;
  transition: 0.5s;

  .nly-container-aside-brand:hover {
    color: #ffffff;
    text-decoration: none;
  }
  .nly-container-aside-brand {
    display: block;
    font-size: 1.25rem;
    line-height: 1.5;
    padding: 0.8125rem 0.5rem;
    transition: width 0.3s ease-in-out;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #4e5257;
    position: static;

    .nly-container-aside-brand-image {
      float: left;
      line-height: 0.8;
      margin-left: 0.8rem;
      margin-right: 0.5rem;
      margin-top: -3px;
      max-height: 33px;
      width: auto;
      border-radius: 50%;
      background-color: #ffffff00;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
    }

    .nly-container-aside-brand-text {
      font-weight: 300;
      display: inline-block;
      margin-left: 0;
      opacity: 1;
      visibility: visible;
      transition: margin-left 0.3s linear, opacity 0.3s ease,
        visibility 0.3s ease;
    }
  }

  .nly-container-aside-sidebar-scrollbar {
    overflow: auto;
    height: calc(~"100vh - 58px");
  }

  .nly-container-aside-sidebar:hover {
    overflow: auto;
    // margin-right: 0rem;
    // padding-right: 0.5rem;
  }

  .nly-container-aside-sidebar::-webkit-scrollbar {
    /*滾動條整體樣式*/
    width: 0.5rem; /*高寬分別對應橫豎滾動條的尺寸*/
    height: 0.5rem;
  }
  .nly-container-aside-sidebar::-webkit-scrollbar-thumb {
    /*滾動條里面小方塊*/
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #4374b1;
  }

  .nly-container-aside-sidebar::-webkit-scrollbar-track {
    /*滾動條里面軌道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: #4e525741;
  }

  .nly-container-aside-sidebar {
    height: calc(100% - 0.7rem);
    overflow: hidden;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    // margin-right: 0.5rem;
    padding-top: 0;

    .nly-container-aside-sidebar-user-panel {
      position: relative;
      border-bottom: 1px solid #4e5257;
      .nly-container-aside-sidebar-user-panel-image {
        display: inline-block;
        padding-left: 0.8rem;
        .nly-container-aside-sidebar-user-panel-image-img {
          max-height: 2.1rem;
          border-radius: 50%;
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
            0 3px 6px rgba(0, 0, 0, 0.23) !important;
        }
      }
      .nly-container-aside-sidebar-user-panel-info {
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        padding: 5px 5px 5px 10px;
        transition: margin-left 0.3s linear, opacity 0.3s ease,
          visibility 0.3s ease;
        .nly-container-aside-sidebar-user-panel-info-block {
          display: block !important;
          color: rgba(255, 255, 255, 0.8);
        }
        .nly-container-aside-sidebar-user-panel-info-block:hover {
          display: block !important;
          color: #ffffff;
          text-decoration: none;
        }
      }
    }
    .nly-container-aside-sidebar-menu {
      margin-top: 0.5rem !important;
      .nly-container-aside-sidebar-menu-nav {
        white-space: nowrap;
        overflow: hidden;
        position: relative;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        margin-top: 0;
      }

      .nly-container-aside-sidebar-menu-nav-item {
        margin-bottom: 0;
        width: 100%;
        .nly-container-aside-sidebar-menu-nav-item-nav-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
          .nly-container-aside-sidebar-menu-nav-item-nav-link-p {
            transition: margin-left 0.3s linear, opacity 0.3s ease,
              visibility 0.3s ease;
            display: inline-block;
            margin: 0;
            display: inline-block;
            opacity: 1;
            visibility: visible;
          }
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-nav-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link.active {
          background-color: #007bff;
          color: #ffffff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-icon.fas {
          font-size: 1.1rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-icon-right {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
        }
      }

      .nly-container-aside-sidebar-menu-nav-item-open.collapsed {
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link {
          .when-opened {
            display: none;
          }
          .when-closed {
            display: block;
          }
        }
      }

      .nly-container-aside-sidebar-menu-nav-item-open {
        margin-bottom: 0;
        width: 100%;
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
          .when-closed {
            display: none;
          }
          .when-opened {
            display: block;
          }
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link-p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0;
          display: inline-block;
          opacity: 1;
          visibility: visible;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link.active {
          background-color: #007bff;
          color: #ffffff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon.fas {
          font-size: 1.1rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon-right {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
          -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
        }
        .nly-container-aside-sidebar-menu-nav-item-open-icon-right-off {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
          -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link-p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0;
          display: inline-block;
          opacity: 1;
          visibility: visible;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link.active {
          background-color: rgba(255, 255, 255, 0.9);
          color: #343a40;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon.fas {
          font-size: 1.1rem;
        }
      }
    }
  }
}

// 收起邊側(cè)欄
.nly-container-aside-mini {
  height: 100%;
  width: 4.5rem;
  background-color: #343a40;
  transition: 0.5s;

  .nly-container-aside-brand:hover {
    color: #ffffff;
    text-decoration: none;
  }
  .nly-container-aside-brand {
    display: block;
    font-size: 1.25rem;
    line-height: 1.5;
    padding: 0.8125rem 0.5rem;
    transition: width 0.3s ease-in-out;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #4e5257;
    position: static;

    .nly-container-aside-brand-image {
      float: left;
      line-height: 0.8;
      margin-left: 0.8rem;
      margin-right: 0.5rem;
      margin-top: -3px;
      max-height: 33px;
      width: auto;
      border-radius: 50%;
      background-color: #ffffff00;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
    }

    .nly-container-aside-brand-text {
      margin-left: -10px;
      opacity: 0;
      visibility: hidden;
      font-weight: 300;
      transition: margin-left 0.3s linear, opacity 0.3s ease,
        visibility 0.3s ease;
    }
  }

  .nly-container-aside-sidebar-scrollbar {
    overflow: auto;
    height: calc(~"100vh - 58px");
  }

  .nly-container-aside-sidebar::-webkit-scrollbar {
    /*滾動條整體樣式*/
    width: 0.5rem; /*高寬分別對應橫豎滾動條的尺寸*/
    height: 0.5rem;
  }
  .nly-container-aside-sidebar::-webkit-scrollbar-thumb {
    /*滾動條里面小方塊*/
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #4374b1;
  }

  .nly-container-aside-sidebar::-webkit-scrollbar-track {
    /*滾動條里面軌道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: #4e525741;
  }

  .nly-container-aside-sidebar:hover {
    height: calc(100% - 4rem);
    overflow: auto;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
  }
  .nly-container-aside-sidebar {
    height: calc(100% - 0.7rem);
    overflow: hidden;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
    .nly-container-aside-sidebar-user-panel {
      position: relative;
      border-bottom: 1px solid #4e5257;
      .nly-container-aside-sidebar-user-panel-image {
        display: inline-block;
        padding-left: 0.8rem;
        .nly-container-aside-sidebar-user-panel-image-img {
          max-height: 2.1rem;
          border-radius: 50%;
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
            0 3px 6px rgba(0, 0, 0, 0.23) !important;
        }
      }
      .nly-container-aside-sidebar-user-panel-info {
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        padding: 5px 5px 5px 10px;
        color: rgba(255, 255, 255, 0.8);
        margin-left: -10px;
        opacity: 0;
        visibility: hidden;
        transition: margin-left 0.3s linear, opacity 0.3s ease,
          visibility 0.3s ease;
        .nly-container-aside-sidebar-user-panel-info-block {
          display: block !important;
          color: rgba(255, 255, 255, 0.8);
        }
        .nly-container-aside-sidebar-user-panel-info-block:hover {
          display: block !important;
          color: #ffffff;
          text-decoration: none;
        }
      }
    }
    .nly-container-aside-sidebar-menu {
      margin-top: 0.5rem !important;
      .nly-container-aside-sidebar-menu-nav {
        white-space: nowrap;
        overflow: hidden;
        position: relative;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        margin-top: 0;
      }

      .nly-container-aside-sidebar-menu-nav-item {
        margin-bottom: 0;
        width: 100%;
        .nly-container-aside-sidebar-menu-nav-item-nav-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0 0 0 -10px;
          opacity: 0;
          visibility: hidden;
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-nav-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link.active {
          background-color: #007bff;
          color: #ffffff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-icon.fas {
          font-size: 1.1rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-icon-right {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
        }
      }

      .nly-container-aside-sidebar-menu-nav-item-open.collapsed {
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link {
          .when-opened {
            display: none;
          }
          .when-closed {
            display: block;
          }
        }
      }

      .nly-container-aside-sidebar-menu-nav-item-open {
        margin-bottom: 0;
        width: 100%;
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
          .when-closed {
            display: none;
          }
          .when-opened {
            display: block;
          }
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0 0 0 -10px;
          opacity: 0;
          visibility: hidden;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link.active {
          background-color: #007bff;
          color: #ffffff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon.fas {
          font-size: 1.1rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon-right {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
          -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
        }
        .nly-container-aside-sidebar-menu-nav-item-open-icon-right-off {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
          -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0 0 0 -10px;
          opacity: 0;
          visibility: hidden;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link.active {
          background-color: rgba(255, 255, 255, 0.9);
          color: #343a40;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon.fas {
          font-size: 1.1rem;
        }
      }
    }
  }
}

// 滑過收起邊側(cè)欄
.nly-container-aside-mini:hover {
  height: 100%;
  width: 16rem;
  background-color: #343a40;
  transition: 0.5s;

  .nly-container-aside-brand:hover {
    color: #ffffff;
    text-decoration: none;
  }

  .nly-container-aside-brand {
    display: block;
    font-size: 1.25rem;
    line-height: 1.5;
    padding: 0.8125rem 0.5rem;
    transition: width 0.3s ease-in-out;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #4e5257;
    position: static;

    .nly-container-aside-brand-image {
      float: left;
      line-height: 0.8;
      margin-left: 0.8rem;
      margin-right: 0.5rem;
      margin-top: -3px;
      max-height: 33px;
      width: auto;
      border-radius: 50%;
      background-color: #ffffff00;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
    }

    .nly-container-aside-brand-text {
      font-weight: 300;
      display: inline-block;
      margin-left: 0;
      opacity: 1;
      visibility: visible;
      transition: margin-left 0.3s linear, opacity 0.3s ease,
        visibility 0.3s ease;
    }
  }

  .nly-container-aside-sidebar-scrollbar {
    overflow: auto;
    height: calc(~"100vh - 58px");
  }

  .nly-container-aside-sidebar::-webkit-scrollbar {
    /*滾動條整體樣式*/
    width: 0.5rem; /*高寬分別對應橫豎滾動條的尺寸*/
    height: 0.5rem;
  }
  .nly-container-aside-sidebar::-webkit-scrollbar-thumb {
    /*滾動條里面小方塊*/
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #4374b1;
  }

  .nly-container-aside-sidebar::-webkit-scrollbar-track {
    /*滾動條里面軌道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: #4e525741;
  }

  .nly-container-aside-sidebar:hover {
    height: calc(100% - 4rem);
    overflow: auto;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
  }
  .nly-container-aside-sidebar {
    height: calc(100% - 0.7rem);
    overflow: hidden;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
    .nly-container-aside-sidebar-user-panel {
      position: relative;
      border-bottom: 1px solid #4e5257;
      .nly-container-aside-sidebar-user-panel-image {
        display: inline-block;
        padding-left: 0.8rem;
        .nly-container-aside-sidebar-user-panel-image-img {
          max-height: 2.1rem;
          border-radius: 50%;
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
            0 3px 6px rgba(0, 0, 0, 0.23) !important;
        }
      }
      .nly-container-aside-sidebar-user-panel-info {
        display: inline-block;
        margin-left: 0;
        opacity: 1;
        visibility: visible;
        transition: margin-left 0.3s linear, opacity 0.3s ease,
          visibility 0.3s ease;

        overflow: hidden;
        white-space: nowrap;
        padding: 5px 5px 5px 10px;
        .nly-container-aside-sidebar-user-panel-info-block {
          display: block !important;
          color: rgba(255, 255, 255, 0.8);
        }
        .nly-container-aside-sidebar-user-panel-info-block:hover {
          display: block !important;
          color: #ffffff;
          text-decoration: none;
        }
      }
    }
    .nly-container-aside-sidebar-menu {
      margin-top: 0.5rem !important;
      .nly-container-aside-sidebar-menu-nav {
        white-space: nowrap;
        overflow: hidden;
        position: relative;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        margin-top: 0;
      }

      .nly-container-aside-sidebar-menu-nav-item {
        margin-bottom: 0;
        width: 100%;
        .nly-container-aside-sidebar-menu-nav-item-nav-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link-p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0;
          display: inline-block;
          opacity: 1;
          visibility: visible;
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-nav-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link.active {
          background-color: #007bff;
          color: #ffffff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-icon.fas {
          font-size: 1.1rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-icon-right {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
        }
      }

      .nly-container-aside-sidebar-menu-nav-item-open.collapsed {
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link {
          .when-opened {
            display: none;
          }
          .when-closed {
            display: block;
          }
        }
      }

      .nly-container-aside-sidebar-menu-nav-item-open {
        margin-bottom: 0;
        width: 100%;
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
          .when-closed {
            display: none;
          }
          .when-opened {
            display: block;
          }
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link-p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0;
          display: inline-block;
          opacity: 1;
          visibility: visible;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link.active {
          background-color: #007bff;
          color: #ffffff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon.fas {
          font-size: 1.1rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon-right {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
          -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
        }
        .nly-container-aside-sidebar-menu-nav-item-open-icon-right-off {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
          -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link-p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0;
          display: inline-block;
          opacity: 1;
          visibility: visible;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link.active {
          background-color: rgba(255, 255, 255, 0.9);
          color: #343a40;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon.fas {
          font-size: 1.1rem;
        }
      }
    }
  }
}

// 移動端邊側(cè)欄
.nly-container-aside-max-open {
  height: 100%;
  width: 16rem;
  background-color: #343a40;
  transition: 0.5s;

  .nly-container-aside-brand:hover {
    color: #ffffff;
    text-decoration: none;
  }
  .nly-container-aside-brand {
    display: block;
    font-size: 1.25rem;
    line-height: 1.5;
    padding: 0.8125rem 0.5rem;
    transition: width 0.3s ease-in-out;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid #4e5257;
    position: static;

    .nly-container-aside-brand-image {
      float: left;
      line-height: 0.8;
      margin-left: 0.8rem;
      margin-right: 0.5rem;
      margin-top: -3px;
      max-height: 33px;
      width: auto;
      border-radius: 50%;
      background-color: #ffffff00;
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23) !important;
    }

    .nly-container-aside-brand-text {
      font-weight: 300;
      display: inline-block;
      margin-left: 0;
      opacity: 1;
      visibility: visible;
      transition: margin-left 0.3s linear, opacity 0.3s ease,
        visibility 0.3s ease;
    }
  }

  .nly-container-aside-sidebar-scrollbar {
    overflow: auto;
    height: calc(~"100vh - 58px");
  }

  .nly-container-aside-sidebar::-webkit-scrollbar {
    /*滾動條整體樣式*/
    width: 0.5rem; /*高寬分別對應橫豎滾動條的尺寸*/
    height: 0.5rem;
  }
  .nly-container-aside-sidebar::-webkit-scrollbar-thumb {
    /*滾動條里面小方塊*/
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    background: #4374b1;
  }

  .nly-container-aside-sidebar::-webkit-scrollbar-track {
    /*滾動條里面軌道*/
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: #4e525741;
  }
  .nly-container-aside-sidebar:hover {
    height: calc(100% - 4rem);
    overflow: auto;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;
  }
  .nly-container-aside-sidebar {
    height: calc(100% - 0.7rem);
    overflow: hidden;
    padding-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0;

    .nly-container-aside-sidebar-user-panel {
      position: relative;
      border-bottom: 1px solid #4e5257;
      .nly-container-aside-sidebar-user-panel-image {
        display: inline-block;
        padding-left: 0.8rem;
        .nly-container-aside-sidebar-user-panel-image-img {
          max-height: 2.1rem;
          border-radius: 50%;
          box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16),
            0 3px 6px rgba(0, 0, 0, 0.23) !important;
        }
      }
      .nly-container-aside-sidebar-user-panel-info {
        overflow: hidden;
        white-space: nowrap;
        display: inline-block;
        padding: 5px 5px 5px 10px;
        transition: margin-left 0.3s linear, opacity 0.3s ease,
          visibility 0.3s ease;
        .nly-container-aside-sidebar-user-panel-info-block {
          display: block !important;
          color: rgba(255, 255, 255, 0.8);
        }
        .nly-container-aside-sidebar-user-panel-info-block:hover {
          display: block !important;
          color: #ffffff;
          text-decoration: none;
        }
      }
    }
    .nly-container-aside-sidebar-menu {
      margin-top: 0.5rem !important;
      .nly-container-aside-sidebar-menu-nav {
        white-space: nowrap;
        overflow: hidden;
        position: relative;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
        margin-top: 0;
      }

      .nly-container-aside-sidebar-menu-nav-item {
        margin-bottom: 0;
        width: 100%;
        .nly-container-aside-sidebar-menu-nav-item-nav-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link-p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0;
          display: inline-block;
          opacity: 1;
          visibility: visible;
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-nav-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-nav-link.active {
          background-color: #007bff;
          color: #ffffff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-icon.fas {
          font-size: 1.1rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-icon-right {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
        }
      }

      .nly-container-aside-sidebar-menu-nav-item-open.collapsed {
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link {
          .when-opened {
            display: none;
          }
          .when-closed {
            display: block;
          }
        }
      }

      .nly-container-aside-sidebar-menu-nav-item-open {
        margin-bottom: 0;
        width: 100%;
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
          .when-closed {
            display: none;
          }
          .when-opened {
            display: block;
          }
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link-p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0;
          display: inline-block;
          opacity: 1;
          visibility: visible;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-open-nav-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-link.active {
          background-color: #007bff;
          color: #ffffff;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon.fas {
          font-size: 1.1rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-icon-right {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
          -webkit-transform: rotate(-90deg);
          transform: rotate(-90deg);
        }
        .nly-container-aside-sidebar-menu-nav-item-open-icon-right-off {
          transition: -webkit-transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s;
          transition: transform ease-in-out 0.3s,
            -webkit-transform ease-in-out 0.3s;
          position: absolute;
          right: 1rem;
          top: 0.7rem;
          font-weight: 900;
          -webkit-font-smoothing: antialiased;
          display: inline-block;
          font-style: normal;
          font-variant: normal;
          text-rendering: auto;
          line-height: 1;
          -webkit-transform: rotate(0deg);
          transform: rotate(0deg);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link {
          position: relative;
          display: block;
          padding: 0.5rem 1rem;
          white-space: nowrap;
          overflow: hidden;
          margin-bottom: 0.2rem;
          color: #ffffff;
          border-radius: 0.25rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link-p {
          transition: margin-left 0.3s linear, opacity 0.3s ease,
            visibility 0.3s ease;
          display: inline-block;
          margin: 0;
          display: inline-block;
          opacity: 1;
          visibility: visible;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link:hover,
        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link:focus {
          text-decoration: none;
          background-color: rgba(255, 255, 255, 0.1);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-link.active {
          background-color: rgba(255, 255, 255, 0.9);
          color: #343a40;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12),
            0 1px 2px rgba(0, 0, 0, 0.24);
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon {
          font-size: 1.2rem;
          margin-right: 0.2rem;
          text-align: center;
          width: 1.6rem;
        }

        .nly-container-aside-sidebar-menu-nav-item-open-nav-item-icon.fas {
          font-size: 1.1rem;
        }
      }
    }
  }
}

// 邊側(cè)欄頭片

.nly-container-center-scrollbar {
  overflow: auto;
  height: calc(~"100vh - 1px");
}

.nly-container-center::-webkit-scrollbar {
  /*滾動條整體樣式*/
  width: 0.5rem; /*高寬分別對應橫豎滾動條的尺寸*/
  height: 0.5rem;
}
.nly-container-center::-webkit-scrollbar-thumb {
  /*滾動條里面小方塊*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #a1a1a1a6;
}

.nly-container-center::-webkit-scrollbar-track {
  /*滾動條里面軌道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background: #ffffff;
}
.nly-container-center {
  background-color: cornsilk;
  overflow: auto;
  height: 100%;
}

.nly-container-center-content {
  height: 100%;
  width: 100%;
  background-color: wheat;
}

.nly-container-center-content-header {
  height: auto;
  background-color: #6f42c1;
}

.nly-container-center-content-header-icon {
  background-color: transparent;
  color: #ffff;
  display: none;
}
.nly-container-center-content-header-brand {
  position: initial;
  display: none;
  .nly-container-center-content-header-brand-img {
    float: left;
    line-height: 0.8;
    margin-left: 0.8rem;
    margin-right: 0.5rem;
    margin-top: -3px;
    max-height: 33px;
    width: auto;
    border-radius: 50%;
    background-color: #ffffff00;

    .nly-container-center-content-header-brand-text {
      font-weight: 300;
      display: inline-block;
      margin-left: 0;
      opacity: 1;
      visibility: visible;
      transition: margin-left 0.3s linear, opacity 0.3s ease,
        visibility 0.3s ease;
    }
  }
}

.nly-container-center-content-main {
  background-color: #ffff;
  height: calc(~"100vh - 7.125rem");
  min-height: 380px;
}

.nly-container-center-content-main-breadcrumb-left {
  font-size: 1.3rem;
  color: rgb(105, 104, 104);
}

.nly-container-center-content-main-breadcrumb-right {
  display: flex;
}

.nly-container-center-content-main-card {
  margin: 0.5rem;
}

.nly-container-center-content-main-aside-toggle {
  display: block !important;
  border: 0;
  color: #fff !important;
}

.nly-container-center-content-main-aside-open-toggle {
  border: 0;
}

.nly-container-center-content-foot {
  height: 3.5625rem;
  background-color: violet;
}

.nly-container-aside-max-open-overlay {
  background-color: rgba(0, 0, 0, 0.226);
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 14;
}

@media (max-width: 576px) {
  .nly-container-aside-max {
    height: 100%;
    width: 16rem;
    background-color: #343a40;
    left: -20rem;
    position: absolute;
    transition: 0.8s;
    z-index: @basezindex + 5;
  }

  .nly-container-aside-max
    > .nly-container-aside-brand
    > .nly-container-aside-brand-text {
    font-size: smaller;
    font-weight: 300;
    display: inline-block;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transition: margin-left 0.3s linear, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nly-container-aside-max
    > .nly-container-aside-sidebar
    > .nly-container-aside-sidebar-user-panel
    > .nly-container-aside-sidebar-user-panel-info
    > .nly-container-aside-sidebar-user-panel-info-block {
    font-size: smaller;
    display: block !important;
    color: rgba(255, 255, 255, 0.8);
  }

  .nly-container-aside-max-open {
    height: 100%;
    width: 16rem;
    left: 0rem;
    background-color: #343a40;
    position: absolute;
    z-index: @basezindex + 10;
    transition: 0.8s;
  }

  .nly-container-aside-max-open
    > .nly-container-aside-brand
    > .nly-container-aside-brand-text {
    font-size: smaller;
    font-weight: 300;
    display: inline-block;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transition: margin-left 0.3s linear, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nly-container-aside-max-open
    > .nly-container-aside-sidebar
    > .nly-container-aside-sidebar-user-panel
    > .nly-container-aside-sidebar-user-panel-info
    > .nly-container-aside-sidebar-user-panel-info-block {
    font-size: smaller;
    display: block !important;
    color: rgba(255, 255, 255, 0.8);
  }

  .nly-container-center-content-main-aside-toggle {
    display: none !important;
  }
  .nly-container-aside-mini {
    height: 100%;
    width: 4.5rem;
    background-color: #343a40;
    transition: 0.5s;
    left: -10rem;
    position: absolute;
  }

  .nly-container-center-content-header-icon {
    background-color: transparent;
    display: block;
  }
  .nly-container-center-content-header-brand {
    position: initial;
    display: block;
    .nly-container-center-content-header-brand-img {
      float: left;
      line-height: 0.8;
      margin-left: 0.8rem;
      margin-right: 0.5rem;
      margin-top: -3px;
      max-height: 33px;
      width: auto;
      border-radius: 50%;
      background-color: #ffffff00;

      .nly-container-center-content-header-brand-text {
        font-weight: 300;
        display: inline-block;
        margin-left: 0;
        opacity: 1;
        visibility: visible;
        transition: margin-left 0.3s linear, opacity 0.3s ease,
          visibility 0.3s ease;
      }
    }
  }

  .nly-container-aside-max-open-overlay {
    background-color: rgba(0, 0, 0, 0.226);
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 14;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .nly-container-aside-max {
    height: 100%;
    width: 16rem;
    background-color: #343a40;
    left: -20rem;
    position: absolute;
    transition: 0.8s;
    z-index: @basezindex + 5;
  }

  .nly-container-aside-max
    > .nly-container-aside-brand
    > .nly-container-aside-brand-text {
    font-size: smaller;
    font-weight: 300;
    display: inline-block;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transition: margin-left 0.3s linear, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nly-container-aside-max
    > .nly-container-aside-sidebar
    > .nly-container-aside-sidebar-user-panel
    > .nly-container-aside-sidebar-user-panel-info
    > .nly-container-aside-sidebar-user-panel-info-block {
    font-size: smaller;
    display: block !important;
    color: rgba(255, 255, 255, 0.8);
  }

  .nly-container-aside-max-open {
    height: 100%;
    width: 16rem;
    left: 0rem;
    background-color: #343a40;
    position: absolute;
    z-index: @basezindex + 10;
    transition: 0.8s;
  }
  .nly-container-aside-max-open
    > .nly-container-aside-brand
    > .nly-container-aside-brand-text {
    font-size: smaller;
    font-weight: 300;
    display: inline-block;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transition: margin-left 0.3s linear, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nly-container-aside-max-open
    > .nly-container-aside-sidebar
    > .nly-container-aside-sidebar-user-panel
    > .nly-container-aside-sidebar-user-panel-info
    > .nly-container-aside-sidebar-user-panel-info-block {
    font-size: smaller;
    display: block !important;
    color: rgba(255, 255, 255, 0.8);
  }

  .nly-container-center-content-main-aside-toggle {
    display: none !important;
  }
  .nly-container-aside-mini {
    height: 100%;
    width: 4.5rem;
    background-color: #343a40;
    transition: 0.5s;
    left: -10rem;
    position: absolute;
  }

  .nly-container-center-content-header-icon {
    background-color: transparent;
    display: block;
  }

  .nly-container-center-content-header-brand {
    position: initial;
    display: block;
    .nly-container-center-content-header-brand-img {
      float: left;
      line-height: 0.8;
      margin-left: 0.8rem;
      margin-right: 0.5rem;
      margin-top: -3px;
      max-height: 33px;
      width: auto;
      border-radius: 50%;
      background-color: #ffffff00;

      .nly-container-center-content-header-brand-text {
        font-weight: 300;
        display: inline-block;
        margin-left: 0;
        opacity: 1;
        visibility: visible;
        transition: margin-left 0.3s linear, opacity 0.3s ease,
          visibility 0.3s ease;
      }
    }
  }

  .nly-container-aside-max-open-overlay {
    background-color: rgba(0, 0, 0, 0.226);
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 14;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .nly-container-aside-max {
    height: 100%;
    width: 16rem;
    background-color: #343a40;
    left: -20rem;
    position: absolute;
    transition: 0.8s;
    z-index: @basezindex + 5;
  }
  .nly-container-aside-max
    > .nly-container-aside-brand
    > .nly-container-aside-brand-text {
    font-size: smaller;
    font-weight: 300;
    display: inline-block;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transition: margin-left 0.3s linear, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nly-container-aside-max
    > .nly-container-aside-sidebar
    > .nly-container-aside-sidebar-user-panel
    > .nly-container-aside-sidebar-user-panel-info
    > .nly-container-aside-sidebar-user-panel-info-block {
    font-size: smaller;
    display: block !important;
    color: rgba(255, 255, 255, 0.8);
  }

  .nly-container-aside-max-open {
    height: 100%;
    width: 16rem;
    left: 0rem;
    background-color: #343a40;
    position: absolute;
    z-index: @basezindex + 10;
    transition: 0.8s;
  }

  .nly-container-aside-max-open
    > .nly-container-aside-brand
    > .nly-container-aside-brand-text {
    font-size: smaller;
    font-weight: 300;
    display: inline-block;
    margin-left: 0;
    opacity: 1;
    visibility: visible;
    transition: margin-left 0.3s linear, opacity 0.3s ease, visibility 0.3s ease;
  }

  .nly-container-aside-max-open
    > .nly-container-aside-sidebar
    > .nly-container-aside-sidebar-user-panel
    > .nly-container-aside-sidebar-user-panel-info
    > .nly-container-aside-sidebar-user-panel-info-block {
    font-size: smaller;
    display: block !important;
    color: rgba(255, 255, 255, 0.8);
  }

  .nly-container-center-content-main-aside-toggle {
    display: none !important;
  }
  .nly-container-aside-mini {
    height: 100%;
    width: 4.5rem;
    background-color: #343a40;
    transition: 0.5s;
    left: -10rem;
    position: absolute;
  }

  .nly-container-center-content-header-icon {
    background-color: transparent;
    display: block;
  }

  .nly-container-center-content-header-brand {
    position: initial;
    display: block;
    .nly-container-center-content-header-brand-img {
      float: left;
      line-height: 0.8;
      margin-left: 0.8rem;
      margin-right: 0.5rem;
      margin-top: -3px;
      max-height: 33px;
      width: auto;
      border-radius: 50%;
      background-color: #ffffff00;

      .nly-container-center-content-header-brand-text {
        font-weight: 300;
        display: inline-block;
        margin-left: 0;
        opacity: 1;
        visibility: visible;
        transition: margin-left 0.3s linear, opacity 0.3s ease,
          visibility 0.3s ease;
      }
    }
  }
  .nly-container-aside-max-open-overlay {
    background-color: rgba(0, 0, 0, 0.226);
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 14;
  }
}

@media (min-width: 993px) and (max-width: 1199px) {
}

@media (min-width: 1200px) {
}
</style>

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末饲帅,一起剝皮案震驚了整個濱河市傲须,隨后出現(xiàn)的幾起案子栅屏,更是在濱河造成了極大的恐慌,老刑警劉巖碌上,帶你破解...
    沈念sama閱讀 211,561評論 6 492
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件均芽,死亡現(xiàn)場離奇詭異丘逸,居然都是意外死亡,警方通過查閱死者的電腦和手機掀宋,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 90,218評論 3 385
  • 文/潘曉璐 我一進店門深纲,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人劲妙,你說我怎么就攤上這事湃鹊。” “怎么了镣奋?”我有些...
    開封第一講書人閱讀 157,162評論 0 348
  • 文/不壞的土叔 我叫張陵币呵,是天一觀的道長。 經(jīng)常有香客問我侨颈,道長余赢,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 56,470評論 1 283
  • 正文 為了忘掉前任哈垢,我火速辦了婚禮妻柒,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘耘分。我一直安慰自己举塔,他們只是感情好,可當我...
    茶點故事閱讀 65,550評論 6 385
  • 文/花漫 我一把揭開白布求泰。 她就那樣靜靜地躺著央渣,像睡著了一般。 火紅的嫁衣襯著肌膚如雪渴频。 梳的紋絲不亂的頭發(fā)上芽丹,一...
    開封第一講書人閱讀 49,806評論 1 290
  • 那天,我揣著相機與錄音枉氮,去河邊找鬼志衍。 笑死,一個胖子當著我的面吹牛聊替,可吹牛的內(nèi)容都是我干的楼肪。 我是一名探鬼主播,決...
    沈念sama閱讀 38,951評論 3 407
  • 文/蒼蘭香墨 我猛地睜開眼惹悄,長吁一口氣:“原來是場噩夢啊……” “哼春叫!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起泣港,我...
    開封第一講書人閱讀 37,712評論 0 266
  • 序言:老撾萬榮一對情侶失蹤暂殖,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后当纱,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體呛每,經(jīng)...
    沈念sama閱讀 44,166評論 1 303
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 36,510評論 2 327
  • 正文 我和宋清朗相戀三年坡氯,在試婚紗的時候發(fā)現(xiàn)自己被綠了晨横。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 38,643評論 1 340
  • 序言:一個原本活蹦亂跳的男人離奇死亡箫柳,死狀恐怖手形,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情悯恍,我是刑警寧澤库糠,帶...
    沈念sama閱讀 34,306評論 4 330
  • 正文 年R本政府宣布,位于F島的核電站涮毫,受9級特大地震影響瞬欧,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜窒百,卻給世界環(huán)境...
    茶點故事閱讀 39,930評論 3 313
  • 文/蒙蒙 一黍判、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧篙梢,春花似錦顷帖、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 30,745評論 0 21
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至妄呕,卻和暖如春陶舞,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背绪励。 一陣腳步聲響...
    開封第一講書人閱讀 31,983評論 1 266
  • 我被黑心中介騙來泰國打工肿孵, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留唠粥,地道東北人。 一個月前我還...
    沈念sama閱讀 46,351評論 2 360
  • 正文 我出身青樓停做,卻偏偏與公主長得像晤愧,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子蛉腌,可洞房花燭夜當晚...
    茶點故事閱讀 43,509評論 2 348

推薦閱讀更多精彩內(nèi)容

  • 簡說Vue (組件庫) https://github.com/ElemeFE/element" 餓了么出品的VUE...
    Estrus丶閱讀 1,585評論 0 1
  • 咳嗽嗓子不舒服的一天官份,一天的忙碌,越來越感覺現(xiàn)在的生活不是我想要的烙丛,也許是覺得太累了舅巷。
    你的小鬼啊閱讀 158評論 0 0
  • 船在水上漂,漿在船上搖河咽,歌聲入林飛钠右,人兒尋不見。 春風分兩邊忘蟹,春雨織輕煙爬舰,春心逐浪尖,春生春不見寒瓦。 不想不看不舍的...
    萬象峰年閱讀 534評論 0 1
  • 夕桐閱讀 89評論 0 0
  • 上周交往二十多年的摯友來家中做客情屹,彼此分享自己的學習收獲,有同時感興趣的話題杂腰,交談甚歡垃你。其中不經(jīng)意間提到手機...
    千吉change閱讀 115評論 0 0