Пожалуйста, ищите решение на чистом CSS.
Например, что-то похожее на следующее:
Код: Выделить всё
#outer{
color: rgba(255,0,0,1);
}
.inner{
display: block;
width: 100%;
height: 10px;
margin-bottom: 5px;
border: 2px solid currentColor;
}
#inner2{
/* This is where I want to inherit current color */
/* ... but still set it to 0.25 opacity */
border-color: rgba(255,0,0,0.25);
}
Код: Выделить всё
Подробнее здесь: https://stackoverflow.com/questions/450 ... ng-opacity