Info.less 1.82 KB
Newer Older
陈帅's avatar
陈帅 committed
1 2 3 4 5
@import '~antd/lib/style/themes/default.less';

.main {
  width: 100%;
  height: 100%;
6
  background-color: @body-background;
陈帅's avatar
陈帅 committed
7
  display: flex;
jim's avatar
jim committed
8 9
  padding-top: 16px;
  padding-bottom: 16px;
10
  overflow: auto;
陈帅's avatar
陈帅 committed
11 12
  .leftmenu {
    width: 224px;
13
    border-right: @border-width-base @border-style-base @border-color-split;
陈帅's avatar
陈帅 committed
14 15 16 17
    :global {
      .ant-menu-inline {
        border: none;
      }
jim's avatar
jim committed
18 19 20
      .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
        font-weight: bold;
      }
陈帅's avatar
陈帅 committed
21 22 23 24 25 26
    }
  }
  .right {
    flex: 1;
    padding-left: 40px;
    padding-right: 40px;
jim's avatar
jim committed
27 28
    padding-top: 8px;
    padding-bottom: 8px;
陈帅's avatar
陈帅 committed
29 30
    .title {
      font-size: 20px;
31
      color: @heading-color;
陈帅's avatar
陈帅 committed
32
      line-height: 28px;
33
      font-weight: 500;
jim's avatar
jim committed
34
      margin-bottom: 12px;
陈帅's avatar
陈帅 committed
35 36
    }
  }
jim's avatar
jim committed
37 38 39 40
  :global {
    .ant-list-split .ant-list-item:last-child {
      border-bottom: 1px solid #e8e8e8;
    }
jim's avatar
jim committed
41 42 43 44
    .ant-list-item {
      padding-top: 14px;
      padding-bottom: 14px;
    }
jim's avatar
jim committed
45
  }
陈帅's avatar
陈帅 committed
46 47 48 49 50 51 52 53 54
}
:global {
  .ant-list-item-meta {
    // 账号绑定图标
    .taobao {
      color: #ff4000;
      display: block;
      font-size: 48px;
      line-height: 48px;
55
      border-radius: @border-radius-base;
陈帅's avatar
陈帅 committed
56 57 58 59 60 61 62 63
    }
    .dingding {
      background-color: #2eabff;
      color: #fff;
      font-size: 32px;
      line-height: 32px;
      padding: 6px;
      margin: 2px;
64
      border-radius: @border-radius-base;
陈帅's avatar
陈帅 committed
65 66 67 68 69
    }
    .alipay {
      color: #2eabff;
      font-size: 48px;
      line-height: 48px;
70
      border-radius: @border-radius-base;
陈帅's avatar
陈帅 committed
71 72 73 74 75
    }
  }

  // 密码强度
  font.strong {
76
    color: @success-color;
陈帅's avatar
陈帅 committed
77 78
  }
  font.medium {
79
    color: @warning-color;
陈帅's avatar
陈帅 committed
80 81
  }
  font.weak {
82
    color: @error-color;
陈帅's avatar
陈帅 committed
83 84
  }
}
85 86 87 88 89 90 91 92 93 94 95 96 97

@media screen and (max-width: @screen-md) {
  .main {
    flex-direction: column;
    .leftmenu {
      width: 100%;
      border: none;
    }
    .right {
      padding: 40px;
    }
  }
}