首页 > 其他 > 详细

Ant Design Mobile 覆盖默认的样式。

时间:2020-07-01 22:35:04      阅读:238      评论:0      收藏:0      [点我收藏+]

直接在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 ==

Ant Design Mobile 覆盖默认的样式。

原文:https://www.cnblogs.com/graphics/p/13221636.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!