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>

最新文章

  1. Android 学习之异常总结--java.lang.IllegalStateException:Could not execute method of the activity
  2. 转:Teach Yourself Programming in Ten Years——用十年教会自己编程
  3. SMTP Failed on Process Scheduler
  4. Python多线程学习笔记
  5. 导入Excel表格到SharePoint站点
  6. 支付宝小程序PHP全栈开发--前端样式的设计.acss样式详解
  7. python︱Anaconda安装、简介(安装报错问题解决、Jupyter Notebook)
  8. ElasticSearch权威指南学习(索引管理)
  9. 406 UDP协议是面向非连接的协议
  10. 20155312 实验一《Java开发环境的熟悉》实验报告
  11. js 语法高亮插件之 Prism.js
  12. docker commit 制作镜像
  13. “The operation cannot be completed because the DbContext has been disposed” exception with lazy load disabled
  14. 每日英语:4G in China: A bigger deal than the iPhone
  15. 【node.js】Stream(流)
  16. Linux之chmod使用
  17. windows服务安装记录
  18. PIGCMS 关闭聊天机器人(小黄鸡)
  19. luoguP3750 [六省联考2017]分手是祝愿 概率期望DP + 贪心
  20. hdu1814

热门文章

  1. understand软件使用教程(转)
  2. home.pl 正在促销,一些域名免费(终止于2017.4.4)
  3. RingtoneManager-获得系统当前的铃声
  4. collapse折叠
  5. Python 极简教程(一)前言
  6. BeautifulSoup的高级应用 之 contents children descendants string strings stripped_strings
  7. 21.Spring Boot 使用Java代码创建Bean并注册到Spring中
  8. 自己动手开发jQuery插件全面解析 jquery插件开发方法
  9. 关于hive里安装mysql出现错误,如何删除指定的主机或用户?(解决Access denied)
  10. JQuery操作数组函数 push(),pop(),unshift(),shift()