BasicLayout.less 1.69 KB
Newer Older
1 2 3 4
@import "~antd/lib/style/themes/default.less";

.header {
  padding: 0 16px 0 0;
afc163's avatar
afc163 committed
5
  background: #fff;
afc163's avatar
afc163 committed
6 7
  box-shadow: 0 1px 4px rgba(0, 21, 41, .12);
  position: relative;
8 9 10 11 12 13
}

.logo {
  height: 64px;
  position: relative;
  line-height: 64px;
afc163's avatar
afc163 committed
14 15
  padding-left: 32px;
  transition: all .3s;
nikogu's avatar
nikogu committed
16
  background: #00284d;
17 18 19 20 21 22 23 24 25 26 27 28
  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;
nikogu's avatar
nikogu committed
29
    font-family: Lato, 'Helvetica Neue', Arial, Helvetica, sans-serif;
afc163's avatar
afc163 committed
30
    margin-top: -2px;
31 32 33
  }
}

afc163's avatar
afc163 committed
34 35 36 37 38
:global(.ant-layout-sider-collapsed) .logo {
  padding-left: 24px;
  > a {
    width: 32px;
  }
39 40 41 42 43 44 45 46 47
}

.trigger {
  font-size: 20px;
  line-height: 64px;
  cursor: pointer;
  transition: all .3s;
  padding: 0 28px;
  &:hover {
afc163's avatar
afc163 committed
48
    background: rgba(0, 0, 0, .04);
49 50 51 52 53 54 55 56 57 58 59 60 61
  }
}

.right {
  float: right;
  height: 100%;
  .action {
    cursor: pointer;
    padding: 0 12px;
    display: inline-block;
    transition: all .3s;
    height: 100%;
    > i {
afc163's avatar
afc163 committed
62
      font-size: 16px;
63 64 65 66
      vertical-align: middle;
    }
    &:global(.ant-popover-open),
    &:hover {
afc163's avatar
afc163 committed
67
      background: rgba(0, 0, 0, .04);
68 69
    }
  }
afc163's avatar
afc163 committed
70 71 72 73 74 75
  .search {
    padding: 0;
    margin: 0 12px;
    &:hover {
      background: transparent;
    }
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
  }
  .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;
  }
}