index.less 2.26 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 7 8 9 10 11 12 13
  border-bottom: @border-width-base @border-style-base @border-color-split;

  .detail {
    display: flex;
  }

  .row {
    display: flex;
jim's avatar
jim committed
14
    width: 100%;
15 16 17
  }

  .breadcrumb {
ddcat1115's avatar
ddcat1115 committed
18
    margin-bottom: 16px;
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
  }

  .tabs {
    margin: 0 0 -17px -8px;

    :global {
      .ant-tabs-bar {
        border-bottom: @border-width-base @border-style-base @border-color-split;
      }
    }
  }

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

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

  .action {
    margin-left: 56px;
    min-width: 266px;
ddcat1115's avatar
ddcat1115 committed
52 53 54 55 56 57 58 59 60 61 62

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

      .ant-btn-group > .ant-btn {
        margin-right: 0;
      }
    }
63 64
  }

jim's avatar
jim committed
65
  .title,
66 67 68 69
  .content {
    flex: auto;
  }

jim's avatar
jim committed
70 71 72
  .action,
  .extraContent,
  .main {
jim's avatar
jim committed
73 74
    flex: 0 1 auto;
  }
75

jim's avatar
jim committed
76 77
  .main {
    width: 100%;
78
  }
79

jim's avatar
jim committed
80 81
  .title,
  .action {
82 83 84
    margin-bottom: 16px;
  }

jim's avatar
jim committed
85 86 87
  .logo,
  .content,
  .extraContent {
afc163's avatar
afc163 committed
88
    margin-bottom: 16px;
89 90
  }

jim's avatar
jim committed
91 92
  .action,
  .extraContent {
93 94 95 96 97 98 99 100 101
    text-align: right;
  }

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

ddcat1115's avatar
ddcat1115 committed
102
@media screen and (max-width: @screen-xl) {
103 104 105 106 107 108 109
  .pageHeader {
    .extraContent {
      margin-left: 44px;
    }
  }
}

ddcat1115's avatar
ddcat1115 committed
110
@media screen and (max-width: @screen-lg) {
111 112
  .pageHeader {
    .extraContent {
ddcat1115's avatar
ddcat1115 committed
113 114 115 116 117 118 119 120 121 122 123
      margin-left: 20px;
    }
  }
}

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

jim's avatar
jim committed
124 125
    .action,
    .extraContent {
ddcat1115's avatar
ddcat1115 committed
126 127 128 129 130 131 132 133 134 135
      margin-left: 0;
      text-align: left;
    }
  }
}

@media screen and (max-width: @screen-sm) {
  .pageHeader {
    .detail {
      display: block;
136 137 138 139 140 141
    }
  }
}

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