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

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

偏右's avatar
偏右 committed
10 11 12
:global {
  .ant-layout {
    overflow-x: hidden;
13
  }
偏右's avatar
偏右 committed
14 15 16 17 18 19 20 21
}

.menu {
  :global(.anticon) {
    margin-right: 8px;
  }
  :global(.ant-dropdown-menu-item) {
    width: 160px;
22 23 24
  }
}

guihua's avatar
guihua committed
25
i.trigger {
26 27 28 29
  font-size: 20px;
  line-height: 64px;
  cursor: pointer;
  transition: all .3s;
niko's avatar
niko committed
30
  padding: 0 24px;
31
  &:hover {
afc163's avatar
afc163 committed
32
    background: @primary-1;
33 34 35
  }
}

afc163's avatar
afc163 committed
36 37 38 39 40 41
@media screen and (max-width: @screen-xs) {
  .trigger {
    display: none;
  }
}

42 43 44 45 46 47 48 49 50 51
.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
52
      font-size: 16px;
53 54 55 56
      vertical-align: middle;
    }
    &:global(.ant-popover-open),
    &:hover {
afc163's avatar
afc163 committed
57
      background: @primary-1;
58 59
    }
  }
afc163's avatar
afc163 committed
60 61 62 63 64 65
  .search {
    padding: 0;
    margin: 0 12px;
    &:hover {
      background: transparent;
    }
66 67 68 69 70 71 72 73 74 75
  }
  .account {
    .avatar {
      margin: 20px 8px 20px 0;
      color: @primary-color;
      background: rgba(255, 255, 255, .85);
      vertical-align: middle;
    }
  }
}