BasicLayout.less 1.76 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 10 11 12 13
}

.logo {
  height: 64px;
  position: relative;
  line-height: 64px;
afc163's avatar
afc163 committed
14
  padding-left: (@menu-collapsed-width - 32px) / 2;
afc163's avatar
afc163 committed
15
  transition: all .3s;
afc163's avatar
afc163 committed
16
  background: #002140;
17 18 19 20 21 22 23 24 25 26
  overflow: hidden;
  img {
    display: inline-block;
    vertical-align: middle;
    height: 32px;
  }
  h1 {
    color: #fff;
    display: inline-block;
    vertical-align: middle;
afc163's avatar
afc163 committed
27
    font-size: 20px;
afc163's avatar
afc163 committed
28
    margin: 0 0 0 12px;
afc163's avatar
afc163 committed
29 30
    font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-weight: 600;
31 32 33
  }
}

guihua's avatar
guihua committed
34
i.trigger {
35 36 37 38
  font-size: 20px;
  line-height: 64px;
  cursor: pointer;
  transition: all .3s;
niko's avatar
niko committed
39
  padding: 0 24px;
40
  &:hover {
afc163's avatar
afc163 committed
41
    background: @primary-1;
42 43 44
  }
}

afc163's avatar
afc163 committed
45 46 47 48 49 50
@media screen and (max-width: @screen-xs) {
  .trigger {
    display: none;
  }
}

51 52 53 54 55 56 57 58 59 60
.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
61
      font-size: 16px;
62 63 64 65
      vertical-align: middle;
    }
    &:global(.ant-popover-open),
    &:hover {
afc163's avatar
afc163 committed
66
      background: @primary-1;
67 68
    }
  }
afc163's avatar
afc163 committed
69 70 71 72 73 74
  .search {
    padding: 0;
    margin: 0 12px;
    &:hover {
      background: transparent;
    }
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
  }
  .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) {
afc163's avatar
afc163 committed
91
    width: 160px;
92 93 94 95 96 97 98 99
  }
}

:global {
  .ant-layout {
    overflow-x: hidden;
  }
}
afc163's avatar
afc163 committed
100 101 102 103 104

.sider {
  min-height: 100vh;
  box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
  position: relative;
niko's avatar
niko committed
105
  z-index: 10;
afc163's avatar
afc163 committed
106
}