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

.pageHeader {
  background: @component-background;
ddcat1115's avatar
ddcat1115 committed
5
  padding: 16px 32px 0 32px;
6 7 8 9 10 11 12 13 14 15 16
  border-bottom: @border-width-base @border-style-base @border-color-split;

  .detail {
    display: flex;
  }

  .row {
    display: flex;
  }

  .breadcrumb {
ddcat1115's avatar
ddcat1115 committed
17
    margin-bottom: 16px;
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
  }

  .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;
  }

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

  .action {
    margin-left: 56px;
    min-width: 266px;
ddcat1115's avatar
ddcat1115 committed
45 46 47 48 49 50 51 52 53 54 55

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

      .ant-btn-group > .ant-btn {
        margin-right: 0;
      }
    }
56 57 58 59 60 61 62 63 64 65 66
  }

  .title, .action, .content, .extraContent, .main {
    flex: auto;
  }

  .title, .action {
    margin-bottom: 16px;
  }

  .logo, .content, .extraContent {
afc163's avatar
afc163 committed
67
    margin-bottom: 16px;
68 69 70 71 72 73 74 75 76 77 78 79
  }

  .action, .extraContent {
    text-align: right;
  }

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

ddcat1115's avatar
ddcat1115 committed
80
@media screen and (max-width: @screen-xl) {
81 82 83 84 85 86 87
  .pageHeader {
    .extraContent {
      margin-left: 44px;
    }
  }
}

ddcat1115's avatar
ddcat1115 committed
88
@media screen and (max-width: @screen-lg) {
89 90
  .pageHeader {
    .extraContent {
ddcat1115's avatar
ddcat1115 committed
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
      margin-left: 20px;
    }
  }
}

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

    .action, .extraContent {
      margin-left: 0;
      text-align: left;
    }
  }
}

@media screen and (max-width: @screen-sm) {
  .pageHeader {
    .detail {
      display: block;
113 114 115 116 117 118
    }
  }
}

@media screen and (max-width: @screen-xs) {
  .pageHeader {
ddcat1115's avatar
ddcat1115 committed
119 120
    .action {
      :global {
ddcat1115's avatar
ddcat1115 committed
121
        .ant-btn-group, :not(.ant-btn-group) .ant-btn {
ddcat1115's avatar
ddcat1115 committed
122 123 124 125
          display: block;
          margin-bottom: 8px;
        }
      }
126 127 128
    }
  }
}