In an attempt to utilize nested classes with Sass, I am working on a styling code that displays a button on hover. Here is the structure of my SCSS:
.item{
border-bottom: 1px dotted #ccc;
text-indent: 50px;
height: 81%;
padding: 2px;
text-transform: capitalize;
color: green;
.Button{
visibility: hidden;
&:hover{
visibility: visible;
}
}
}
After compilation, this code translates to the following CSS:
.item {
border-bottom: 1px dotted #ccc;
text-indent: 50px;
height: 81%;
padding: 2px;
text-transform: capitalize;
color: green; }
.item .Button {
visibility: hidden; }
.item .Button:hover {
visibility: visible; }
Despite the implementation, it seems that the hover effect is not functioning as intended.