index.less 1.24 KB
Newer Older
1 2 3
@import '~antd/lib/style/themes/default.less';

.head {
Yu's avatar
Yu committed
4
  position: relative;
5 6 7
  width: 100%;
  height: @layout-header-height;
  box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
Yu's avatar
Yu committed
8
  transition: background 0.3s, width 0.2s;
9 10 11
  :global {
    .ant-menu-submenu.ant-menu-submenu-horizontal {
      height: 100%;
Yu's avatar
Yu committed
12
      line-height: @layout-header-height;
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
      .ant-menu-submenu-title {
        height: 100%;
      }
    }
  }
  &.light {
    background-color: #fff;
  }
  .main {
    display: flex;
    height: @layout-header-height;
    padding-left: 24px;
    &.wide {
      max-width: 1200px;
      margin: auto;
      padding-left: 0;
    }
    .left {
      display: flex;
Yu's avatar
Yu committed
32
      flex: 1;
33 34 35 36 37 38 39 40
    }
    .right {
      width: 324px;
    }
  }
}

.logo {
Yu's avatar
Yu committed
41
  position: relative;
42 43
  width: 165px;
  height: @layout-header-height;
Yu's avatar
Yu committed
44
  overflow: hidden;
45 46 47 48 49
  line-height: @layout-header-height;
  transition: all 0.3s;
  img {
    display: inline-block;
    height: 32px;
Yu's avatar
Yu committed
50
    vertical-align: middle;
51 52 53 54
  }
  h1 {
    display: inline-block;
    margin: 0 0 0 12px;
Yu's avatar
Yu committed
55
    color: #fff;
56
    font-weight: 400;
Yu's avatar
Yu committed
57 58
    font-size: 16px;
    vertical-align: top;
59 60 61 62 63 64 65 66 67 68 69 70
  }
}

.light {
  h1 {
    color: #002140;
  }
}

.menu {
  height: @layout-header-height;
  line-height: @layout-header-height;
Yu's avatar
Yu committed
71
  border: none;
72
}