index.less 1.73 KB
Newer Older
jim's avatar
jim committed
1 2
@import '~antd/lib/style/themes/default.less';
@ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
偏右's avatar
偏右 committed
3 4 5 6 7
.logo {
  height: 64px;
  position: relative;
  line-height: 64px;
  padding-left: (@menu-collapsed-width - 32px) / 2;
jim's avatar
jim committed
8
  transition: all 0.3s;
偏右's avatar
偏右 committed
9 10 11 12 13 14 15 16
  background: #002140;
  overflow: hidden;
  img {
    display: inline-block;
    vertical-align: middle;
    height: 32px;
  }
  h1 {
jim's avatar
jim committed
17
    color: white;
偏右's avatar
偏右 committed
18 19 20 21 22 23 24 25
    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;
  }
}
26

偏右's avatar
偏右 committed
27 28
.sider {
  min-height: 100vh;
jim's avatar
jim committed
29
  box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
偏右's avatar
偏右 committed
30 31
  position: relative;
  z-index: 10;
32 33 34 35 36
  &.fixSiderbar {
    position: fixed;
    top: 0;
    left: 0;
  }
jim's avatar
jim committed
37
  &.light {
38
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
jim's avatar
jim committed
39 40 41
    background-color: white;
    .logo {
      background: white;
jim's avatar
jim committed
42
      border-bottom: 1px solid @border-color-split;
43
      border-right: 1px solid @border-color-split;
jim's avatar
jim committed
44
      h1 {
jim's avatar
jim committed
45
        color: @primary-color;
jim's avatar
jim committed
46 47 48
      }
    }
  }
偏右's avatar
偏右 committed
49
}
50 51 52 53 54 55

.icon {
  width: 14px;
  margin-right: 10px;
}

jiang's avatar
jiang committed
56 57 58 59
:global {
  .drawer .drawer-content {
    background: #001529;
  }
60 61
  .ant-menu-inline-collapsed {
    & > .ant-menu-item .sider-menu-item-img + span,
jim's avatar
jim committed
62 63 64 65 66 67
    &
      > .ant-menu-item-group
      > .ant-menu-item-group-list
      > .ant-menu-item
      .sider-menu-item-img
      + span,
68 69 70 71 72 73 74 75
    & > .ant-menu-submenu > .ant-menu-submenu-title .sider-menu-item-img + span {
      max-width: 0;
      display: inline-block;
      opacity: 0;
    }
  }
  .ant-menu-item .sider-menu-item-img + span,
  .ant-menu-submenu-title .sider-menu-item-img + span {
jim's avatar
jim committed
76
    transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
77 78
    opacity: 1;
  }
jiang's avatar
jiang committed
79
}