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

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

偏右's avatar
偏右 committed
11 12
:global {
  .ant-layout {
13
    min-height: 100vh;
偏右's avatar
偏右 committed
14
    overflow-x: hidden;
15
  }
偏右's avatar
偏右 committed
16 17
}

jiang's avatar
jiang committed
18 19 20 21 22 23 24 25 26 27 28 29 30 31
.logo {
  height: 64px;
  line-height: 58px;
  vertical-align: top;
  display: inline-block;
  padding: 0 0 0 24px;
  cursor: pointer;
  font-size: 20px;
  img {
    display: inline-block;
    vertical-align: middle;
  }
}

偏右's avatar
偏右 committed
32 33 34 35 36 37
.menu {
  :global(.anticon) {
    margin-right: 8px;
  }
  :global(.ant-dropdown-menu-item) {
    width: 160px;
38 39 40
  }
}

guihua's avatar
guihua committed
41
i.trigger {
42 43 44
  font-size: 20px;
  line-height: 64px;
  cursor: pointer;
jiang's avatar
jiang committed
45
  transition: all .3s, padding 0s;
niko's avatar
niko committed
46
  padding: 0 24px;
47
  &:hover {
afc163's avatar
afc163 committed
48
    background: @primary-1;
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
      vertical-align: middle;
    }
65 66
    &:hover,
    &:global(.ant-popover-open) {
afc163's avatar
afc163 committed
67
      background: @primary-1;
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
  }
  .account {
    .avatar {
      margin: 20px 8px 20px 0;
      color: @primary-color;
      background: rgba(255, 255, 255, .85);
      vertical-align: middle;
    }
  }
}
jiang's avatar
jiang committed
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114

@media only screen and (max-width: @screen-md) {
  .header {
    :global(.ant-divider-vertical) {
      vertical-align: unset;
    }
    .name {
      display: none;
    }
    i.trigger {
      padding: 0 12px;
    }
    .logo {
      padding-right: 12px;
      position: relative;
    }
    .right {
      position: absolute;
      right: 12px;
      top: 0;
      background: #fff;
      .account {
        .avatar {
          margin-right: 0;
        }
      }
    }
  }
}