【发布时间】:2017-12-25 21:49:09
【问题描述】:
我正在开发可重复使用的按钮。我面临的问题是按钮在被点击后没有得到它的原始样式。这是 LESS 文件的快照:
.some-company-primary-button {
.material;
color: @some-company-primary-button-text-color;
background: @some-company-primary-button-color;
&:hover,
&:focus,
&:active,
&.focus,
&.active {
color: @some-company-primary-button-text-color;
background: @some-company-primary-button-hover-color;
}
}
感谢您的任何想法!
编辑我在 Bootstrap btn 类中使用它
【问题讨论】:
标签: html css less frontend web-frontend