ionic-framework - upgrade ionic 3 to ionic 5
问题描述
The old project that I'm trying to upgrade has a custom CSS for the native element
.searchbar-input {
padding: 6px 55px;
border-radius: 2px;
background-position: left 8px center;
height: auto;
font-size: 1.6rem;
font-weight: 400;
line-height: 3rem;
color: #141414;
background-color: #fff;
-webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}
although we can't do something similar with ionic 4/5 because most of the CSS encapsulated inside of the component. is there a possibility to make me edit the native element CSS or importing my old style to the new project?
解决方案
推荐阅读
- sql - 基于 ID 和条件的两个日期之间的差异
- sql - SQL Query 清理 .txt 文件中的混乱数据并将其导出到 excel
- matlab - 在matlab中通过带有未知参数的可变限制积分拟合数据
- android - 在 ViewModel 中应该始终使用 livedata 吗?
- java - spring框架嵌套java.io.FileNotFoundException:
- sqlalchemy - 如何对通过 API 从会话/进程中分发出来并随后通过 API 返回进行更新的实体进行乐观并发控制
- c++ - cpp 函数应如何将“-1”作为 char* 返回?
- sql - 如何在 Hive 中使用 like 和 % 并在字符串中使用反斜杠?
- javascript - 卡被拒绝时未调用 Stripe CLI webhook
- python - 如何在python中进行舍入函数