index.less 2.33 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
2 3 4

.pageHeader {
  background: @component-background;
ddcat1115's avatar
ddcat1115 committed
5
  padding: 16px 32px 0 32px;
6
  border-bottom: @border-width-base @border-style-base @border-color-split;
陈帅's avatar
陈帅 committed
7 8 9 10
  .wide {
    max-width: 1200px;
    margin: auto;
  }
11 12 13 14 15 16
  .detail {
    display: flex;
  }

  .row {
    display: flex;
jim's avatar
jim committed
17
    width: 100%;
18 19 20
  }

  .breadcrumb {
ddcat1115's avatar
ddcat1115 committed
21
    margin-bottom: 16px;
22 23 24
  }

  .tabs {
陈帅's avatar
陈帅 committed
25
    margin: 0 0 0 -8px;
26 27

    :global {
陈帅's avatar
陈帅 committed
28
      // 1px 可以让选中效果显示完成
29
      .ant-tabs-bar {
陈帅's avatar
陈帅 committed
30 31
        border-bottom: none;
        margin-bottom: 1px;
32 33 34 35 36 37 38 39
      }
    }
  }

  .logo {
    flex: 0 1 auto;
    margin-right: 16px;
    padding-top: 1px;
afc163's avatar
afc163 committed
40 41 42 43 44 45
    > img {
      width: 28px;
      height: 28px;
      border-radius: @border-radius-base;
      display: block;
    }
46 47 48 49 50 51 52 53 54 55 56
  }

  .title {
    font-size: 20px;
    font-weight: 500;
    color: @heading-color;
  }

  .action {
    margin-left: 56px;
    min-width: 266px;
ddcat1115's avatar
ddcat1115 committed
57 58 59 60 61 62 63 64 65 66 67

    :global {
      .ant-btn-group:not(:last-child),
      .ant-btn:not(:last-child) {
        margin-right: 8px;
      }

      .ant-btn-group > .ant-btn {
        margin-right: 0;
      }
    }
68 69
  }

jim's avatar
jim committed
70
  .title,
71 72 73 74
  .content {
    flex: auto;
  }

jim's avatar
jim committed
75 76 77
  .action,
  .extraContent,
  .main {
jim's avatar
jim committed
78 79
    flex: 0 1 auto;
  }
80

jim's avatar
jim committed
81 82
  .main {
    width: 100%;
83
  }
84

jim's avatar
jim committed
85 86
  .title,
  .action {
87 88 89
    margin-bottom: 16px;
  }

jim's avatar
jim committed
90 91 92
  .logo,
  .content,
  .extraContent {
afc163's avatar
afc163 committed
93
    margin-bottom: 16px;
94 95
  }

jim's avatar
jim committed
96 97
  .action,
  .extraContent {
98 99 100 101 102 103 104 105 106
    text-align: right;
  }

  .extraContent {
    margin-left: 88px;
    min-width: 242px;
  }
}

ddcat1115's avatar
ddcat1115 committed
107
@media screen and (max-width: @screen-xl) {
108 109 110 111 112 113 114
  .pageHeader {
    .extraContent {
      margin-left: 44px;
    }
  }
}

ddcat1115's avatar
ddcat1115 committed
115
@media screen and (max-width: @screen-lg) {
116 117
  .pageHeader {
    .extraContent {
ddcat1115's avatar
ddcat1115 committed
118 119 120 121 122 123 124 125 126 127 128
      margin-left: 20px;
    }
  }
}

@media screen and (max-width: @screen-md) {
  .pageHeader {
    .row {
      display: block;
    }

jim's avatar
jim committed
129 130
    .action,
    .extraContent {
ddcat1115's avatar
ddcat1115 committed
131 132 133 134 135 136 137 138 139 140
      margin-left: 0;
      text-align: left;
    }
  }
}

@media screen and (max-width: @screen-sm) {
  .pageHeader {
    .detail {
      display: block;
141 142 143 144 145 146
    }
  }
}

@media screen and (max-width: @screen-xs) {
  .pageHeader {
ddcat1115's avatar
ddcat1115 committed
147 148
    .action {
      :global {
jim's avatar
jim committed
149 150
        .ant-btn-group,
        .ant-btn {
ddcat1115's avatar
ddcat1115 committed
151 152 153
          display: block;
          margin-bottom: 8px;
        }
ddcat1115's avatar
ddcat1115 committed
154 155 156 157
        .ant-btn-group > .ant-btn {
          display: inline-block;
          margin-bottom: 0;
        }
ddcat1115's avatar
ddcat1115 committed
158
      }
159 160 161
    }
  }
}