index.less 1.66 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;
jim's avatar
jim committed
32
  &.light {
33
    box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
jim's avatar
jim committed
34 35 36
    background-color: white;
    .logo {
      background: white;
jim's avatar
jim committed
37
      border-bottom: 1px solid @border-color-split;
38
      border-right: 1px solid @border-color-split;
jim's avatar
jim committed
39
      h1 {
jim's avatar
jim committed
40
        color: @primary-color;
jim's avatar
jim committed
41 42 43
      }
    }
  }
偏右's avatar
偏右 committed
44
}
45 46 47 48 49 50

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

jiang's avatar
jiang committed
51 52 53 54
:global {
  .drawer .drawer-content {
    background: #001529;
  }
55 56
  .ant-menu-inline-collapsed {
    & > .ant-menu-item .sider-menu-item-img + span,
jim's avatar
jim committed
57 58 59 60 61 62
    &
      > .ant-menu-item-group
      > .ant-menu-item-group-list
      > .ant-menu-item
      .sider-menu-item-img
      + span,
63 64 65 66 67 68 69 70
    & > .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
71
    transition: opacity 0.3s @ease-in-out, width 0.3s @ease-in-out;
72 73
    opacity: 1;
  }
jiang's avatar
jiang committed
74
}