CSS hexadecimal RGBA?

I know you can write … background-color: #ff0000; … if you want something that is red. And you can write … background-color: rgba(255, 0, 0, 0.5); … if you want something red and translucent. Is there any terse way of writing partially transparent colors in hexadecimal? I want something like: background-color: #ff000088; <— the 88 … Read more

Sass – Converting Hex to RGBa for background opacity

I have the following Sass mixin, which is a half complete modification of an RGBa example: @mixin background-opacity($color, $opacity: .3) { background: rgb(200, 54, 54); /* The Fallback */ background: rgba(200, 54, 54, $opacity); } I have applied $opacity ok, but now I am a stuck with the $color part. The colors I will be … Read more