BasicLayout.less 1.57 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95
@import "~antd/lib/style/themes/default.less";

.header {
  background: @primary-color;
  padding: 0 16px 0 0;
  color: #fff;
}

.logo {
  height: 64px;
  position: relative;
  line-height: 64px;
  padding: 0 24px;
  background: @primary-color;
  overflow: hidden;
  img {
    display: inline-block;
    vertical-align: middle;
    height: 32px;
  }
  h1 {
    color: #fff;
    display: inline-block;
    vertical-align: middle;
    font-size: 22px;
    margin-left: 12px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin-top: -3px;
  }
}

:global(.ant-layout-sider-collapsed) .logo > a {
  width: 32px;
}

.trigger {
  font-size: 20px;
  line-height: 64px;
  cursor: pointer;
  transition: all .3s;
  color: #fff;
  padding: 0 28px;
  vertical-align: middle;
  &:hover {
    background: @primary-7;
  }
}

.right {
  float: right;
  height: 100%;
  .action {
    cursor: pointer;
    padding: 0 12px;
    display: inline-block;
    transition: all .3s;
    height: 100%;
    > i {
      font-size: 20px;
      vertical-align: middle;
    }
    &:global(.ant-popover-open),
    &:hover {
      background: @primary-7;
    }
  }
  .search:hover {
    background: transparent;
  }
  .account {
    .avatar {
      margin: 20px 8px 20px 0;
      color: @primary-color;
      background: rgba(255, 255, 255, .85);
      vertical-align: middle;
    }
  }
}

.menu {
  :global(.anticon) {
    margin-right: 8px;
  }
  :global(.ant-dropdown-menu-item) {
    padding-left: 16px;
    padding-right: 16px;
    width: 190px;
  }
}

:global {
  .ant-layout {
    overflow-x: hidden;
  }
}