小编Si7*_*ius的帖子

How to change the opacity of the border without changing its color

I'm going to change opacity of input's border when it's disabled using SCSS. But border color is coming from variable:

$borderColor: #5985dc;

.my-input {
  border: 1px solid $borderColor;
}
.my-input:disabled {
  border-color: ???;
}
Run Code Online (Sandbox Code Playgroud)

... or is there any way to change the color to half-transparent version?

html css sass

0
推荐指数
1
解决办法
45
查看次数

标签 统计

css ×1

html ×1

sass ×1