当前位置:网站首页>在按钮禁用时消除hover效果
在按钮禁用时消除hover效果
2022-06-29 01:57:00 【wam923259736】
在正常情况下, 鼠标悬停到按钮上会触发hover效果, 背景颜色和文字颜色都发生变化, 当我们给按钮添加禁用效果时需要消除hover效果
解决方案: 使用:not(.is-disabled) 来给没有被禁用(样式类名中不包含is-disabled)的按钮添加hover效果
.one-button-primary {
background: #409eff;
color: #fff;
border-color: #409eff;
&:hover {
&:not(.is-disabled) {
color: #fff;
background: #66b1ff;
}
}
}
.one-button.is-disabled {
opacity: 0.6;
cursor: not-allowed;
}
边栏推荐
- Blog publishing test 3
- SQL splits strings into tables
- [從零開始學習FPGA編程-49]:視野篇 - 芯片是如何被設計出來的?
- The left toolbar of hbuilder is missing
- 7-29 delete substring in string (non KMP)
- 为什么要在网站上安装SSL证书?
- RISC CPU design based on FPGA (4) 36 questions about the project and their answers
- Three tips from small video app source code developers on small video platforms
- 如何成为一名高级数字 IC 设计工程师(4-5)脚本篇:Shell 脚本实现的文件比较操作
- 【Redis】SortedSet类型
猜你喜欢

【内网穿透】Frp 自建跳板-两个内网通讯上线-反弹shell

【Redis】List类型

PR FAQ: how to retrieve accidentally deleted video and audio in PR?
Scala 基礎 (三):運算符和流程控制

独家分析 | 软件测试关于简历和面试的真实情况

ASP. Net based on LAN

In simple terms, server intrusion prevention

How to prevent virus

How to use PN junction to measure temperature?

SAP ui5 beginner tutorial 22 - development and use of filter
随机推荐
Introduction to super dongle scheme
Typescript (7) generic
Typescript (5) class, inheritance, polymorphism
为什么建议大家尽可能选择自研公司
Typescript (4) interface
Server antivirus
Query any field of any table in JPA to the util method of entity class dto
独家分析 | 软件测试关于简历和面试的真实情况
C language course design - food warehouse management system
[從零開始學習FPGA編程-49]:視野篇 - 芯片是如何被設計出來的?
7-29 delete substring in string (non KMP)
Business system anti-virus
Why install an SSL certificate on a web site?
Use kubernetes resource lock to complete your own ha application
Pat grade a real problem 1165
How to become a senior digital IC Design Engineer (4-5) script: file comparison operation implemented by shell script
Near's storage stacking
How to become a senior digital IC Design Engineer (4-2) script: file read / write operation realized by Verilog HDL code
PHP hospital network reservation management system source code, hospital consultation reservation registration OA system (commercial or graduation design)
大三下期末考試