书法字典:https://www.shufadict.com

Ant Design Mobile 覆盖默认的样式。

直接在css中这样写是不行的,完全没有效果。

.am-list-item.am-input-item {
    height: 36px;
    min-height: 30px;
}

要像下面这样,加上global才有效果。

:global {
  .am-list-body {
    background-color:transparent;
    //border-top: 1px solid #ddd !important;
    //border-bottom: 1px solid #ddd !important;
  }
  .am-list-item {
    height: 36px;
    min-height: 30px;
    .am-list-line {
      .am-list-content {
        font-size: 14px;
      }
      .am-list-extra {
        font-size: 14px;
      }
      .am-list-arrow {
        width: 10px;
        height: 10px;
      }
    }

    .am-input-label {
      font-size: 14px;
    }

    .am-input-control {
      input {
        font-family: SourceHanRegular, serif;
        font-size: 14px;
      }
    }
  }

  .am-list-item.am-input-item {
    height: 36px;
    min-height: 30px;
  }
}

== The End ==

posted on 2020-07-01 21:29  翰墨小生  阅读(1894)  评论(0编辑  收藏  举报

导航

书法字典:https://www.shufadict.com