index.less 3.05 KB
@import "~@/mixins.less";

.prenatalReminderInfo {
  .size();
  // border: 1px solid red;
  display: grid;
  /* 创建两列,每列宽度自动分配 */
  grid-template-columns: repeat(2, 1fr);
  /* 创建三行,每行最小高度为100px,自动扩展 */
  grid-template-rows: repeat(3, minmax(100px, auto));
  /* 设置行列间距均为10px */
  gap: 10px;


  >div {
    display: flex;
    flex-direction: column;
    padding: 0 10px 10px 10px;
    background-color: #FFF;

    .title {
      .size(100%, 40px);
      .flex(center);
      font-size: 20px;
      font-weight: bold;
      background-color: #FFF;
      color: #1890FF;
      padding-left: 25px;
    }

    .content {
      .size(100%, calc(100% - 40px));
      background: #F0F0F0;

      :global {
        .ant-input[disabled] {
          background: #F0F0F0;
        }

        *:not(.ant-form-item-control-input-content) {
          padding: 0 !important;
        }
      }
    }

    .content1 {
      .size(100%, calc(100% - 40px));
      background: #F0F0F0;

      .flex();

      :global {
        .ant-input[disabled] {
          background: #F0F0F0;
        }

        *:not(.ant-form-item-control-input-content) {
          padding: 0 !important;
        }
      }

    }
  }

  >div:first-child {
    grid-column: span 2;
  }

  >div:nth-child(1) .title {
    background: url(./assets/1.png) no-repeat;
    background-position-x: -10px;
  }

  >div:nth-child(2) .title {
    background: url(./assets/2.png) no-repeat;
    background-position-x: -10px;
  }

  >div:nth-child(3) .title {
    background: url(./assets/3.png) no-repeat;
    background-position-x: -10px;
  }

  >div:nth-child(4) .title {
    background: url(./assets/4.png) no-repeat;
    background-position-x: -10px;
  }

  >div:nth-child(5) .title {
    background: url(./assets/5.png) no-repeat;
    background-position-x: -10px;
  }

  >div:nth-child(6) .title {
    background: url(./assets/6.png) no-repeat;
    background-position-x: -10px;
  }

  >div:nth-child(7) .title {
    background: url(./assets/7.png) no-repeat;
    background-position-x: -10px;
  }

  >div:nth-child(8) .title {
    background: url(./assets/1.png) no-repeat;
    background-position-x: -10px;
  }
  >div:nth-child(9) .title {
    background: url(./assets/1.png) no-repeat;
    background-position-x: -10px;
  }

  .showType {
    .size();
  }

  :global {
    .ant-form-item-label {
      display: none;
    }

    .input24 {
      .size();

      .ant-form-item[class*='formItemMargin'],
      .ant-form-item-row,
      .ant-form-item-control,
      .ant-form-item-control-input,
      .ant-form-item-control-input-content,
      textarea {
        .size();
        text-indent: 0;
        color: #000;
        padding: 10px;
        height: 94%!important;
      }

      .ant-form-item {
        border: 1px solid #AAA;
      }
    }
  }
}

.hideRightBorder {
  :global {
    .ant-form-item[class*="formItemMargin"] {
      border-right: 0 !important;
    }
  }
}

.hideLeftBorder {
  :global {
    .ant-form-item[class*="formItemMargin"] {
      border-left: 0 !important;
    }
  }
}