index.less 1.31 KB
Newer Older
wanli's avatar
wanli committed
1
@import "ant-design-vue/lib/style/themes/default.less";
wanli's avatar
wanli committed
2 3 4

@ai-sider-menu-prefix: ~"@{ai-prefix}-sider-menu";

wanli's avatar
wanli committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
.@{ai-sider-menu-prefix} {
  .logo {
    width: 100%;
    height: 64px;
    position: relative;
    line-height: 64px;
    padding-left: (@menu-collapsed-width - 32px) / 2;
    transition: all 0.3s;
    background: #002140;
    overflow: hidden;
    img {
      display: inline-block;
      vertical-align: middle;
      height: 32px;
    }
    h1 {
      color: white;
      display: inline-block;
      vertical-align: middle;
      font-size: 20px;
      margin: 0 0 0 12px;
      font-family: "Myriad Pro", "Helvetica Neue", Arial, Helvetica, sans-serif;
      font-weight: 600;
wanli's avatar
wanli committed
28
    }
wanli's avatar
wanli committed
29
  }
wanli's avatar
wanli committed
30 31
}
.sider {
wanli's avatar
wanli committed
32 33 34 35 36 37
  min-height: 100vh;
  box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
  position: relative;
  z-index: 10;
  &.fixSiderbar {
    position: fixed;
38 39 40 41
    height: 100vh;
    min-width: 100vh;
    max-height: 100vh;
    overflow-y: auto;
wanli's avatar
wanli committed
42 43 44 45 46 47 48 49 50 51 52 53
    top: 0;
    left: 0;
  }
  &.light {
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
    background-color: white;
    .logo {
      background: white;
      border-bottom: 1px solid @border-color-split;
      border-right: 1px solid @border-color-split;
      h1 {
        color: @primary-color;
wanli's avatar
wanli committed
54 55
      }
    }
wanli's avatar
wanli committed
56
  }
wanli's avatar
wanli committed
57
}
wanli's avatar
wanli committed
58 59 60

.active-menu-item {
  background-color: #2ecccd;
wanli's avatar
wanli committed
61 62
}

wanli's avatar
wanli committed
63 64 65
.baseMenuLoadding {

}