[Angular] Alternative Themes - Learn the Host-Context Selector
2024-08-23 15:50:19
To add alernative theme, we can use :host-context() selector from Angular.
//au-fa-input-red-theme.css :host-context(.au-fa-input-red-theme) {
border-color: red;
}
So it will apply 'border-color: red' only when host wrapper element has 'au-fa-input-red-theme' class.
<div class="form-row au-fa-input-red-theme">
<label>Email:</label> <au-fa-input id="email-field" icon="envelope">
<input type="email" name="email" placeholder="Email" autocomplete="off" class="test-class">
</au-fa-input> </div>
最新文章
- Android 学习之异常总结--java.lang.IllegalStateException:Could not execute method of the activity
- 转:Teach Yourself Programming in Ten Years——用十年教会自己编程
- SMTP Failed on Process Scheduler
- Python多线程学习笔记
- 导入Excel表格到SharePoint站点
- 支付宝小程序PHP全栈开发--前端样式的设计.acss样式详解
- python︱Anaconda安装、简介(安装报错问题解决、Jupyter Notebook)
- ElasticSearch权威指南学习(索引管理)
- 406 UDP协议是面向非连接的协议
- 20155312 实验一《Java开发环境的熟悉》实验报告
- js 语法高亮插件之 Prism.js
- docker commit 制作镜像
- “The operation cannot be completed because the DbContext has been disposed” exception with lazy load disabled
- 每日英语:4G in China: A bigger deal than the iPhone
- 【node.js】Stream(流)
- Linux之chmod使用
- windows服务安装记录
- PIGCMS 关闭聊天机器人(小黄鸡)
- luoguP3750 [六省联考2017]分手是祝愿 概率期望DP + 贪心
- hdu1814
热门文章
- understand软件使用教程(转)
- home.pl 正在促销,一些域名免费(终止于2017.4.4)
- RingtoneManager-获得系统当前的铃声
- collapse折叠
- Python 极简教程(一)前言
- BeautifulSoup的高级应用 之 contents children descendants string strings stripped_strings
- 21.Spring Boot 使用Java代码创建Bean并注册到Spring中
- 自己动手开发jQuery插件全面解析 jquery插件开发方法
- 关于hive里安装mysql出现错误,如何删除指定的主机或用户?(解决Access denied)
- JQuery操作数组函数 push(),pop(),unshift(),shift()