I am trying to implement breadcrumbs with triangles using before / after in CSS, as shown in this tutorial:
http://css-tricks.com/triangle-breadcrumbs/
Relevant fragments:
<ul class="breadcrumb"> <li><a href="#">Home</a></li> </ul> .breadcrumb li a { color: white; text-decoration: none; padding: 10px 0 10px 65px; background: hsla(34,85%,35%,1); position: relative; display: block; float: left; } .breadcrumb li a:after { content: " "; display: block; width: 0; height: 0; border-top: 50px solid transparent; border-bottom: 50px solid transparent; border-left: 30px solid hsla(34,85%,35%,1); position: absolute; top: 50%; margin-top: -50px; left: 100%; z-index: 2; }
However, I use it as a directed flow, something like:
Main_Category โ Sub_Category โ Details
This stream begins by highlighting Main_Category and the other two parts of a dark color, and at the bottom you can choose. When selected, Sub_Category becomes highlighted and another pops up.
My question is how to change the colors before / after the border if they are pseudo-elements? Therefore, from the textbook, I think you can do this on the main part:
<li><a href="#" ng-style="background: {{color}}">Home</a></li>
But no, where can I set the ng-style for before / after, and the colors of the triangle do not change.
javascript jquery html angularjs css
Wbc
source share