index.less 1.56 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 33 34 35
  &.ligth {
    background-color: white;
    .logo {
      background: white;
jim's avatar
jim committed
36
      border-bottom: 1px solid @border-color-split;
jim's avatar
jim committed
37
      h1 {
jim's avatar
jim committed
38
        color: @primary-color;
jim's avatar
jim committed
39 40 41
      }
    }
  }
偏右's avatar
偏右 committed
42
}
43 44 45 46 47 48

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

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