scss hover
.class {
margin:20px;
&:hover {
color:yellow;
}
}
scss hover
.class {
margin:20px;
&:hover {
color:yellow;
}
}
scss hover
.button {
&:hover {
opacity: 1;
}
&:active {
position: relative;
top: 7px;
box-shadow: none;
}
}
sass & selector
.alert {
// The parent selector can be used to add pseudo-classes to the outer
// selector.
&:hover {
font-weight: bold;
}
// It can also be used to style the outer selector in a certain context, such
// as a body set to use a right-to-left language.
[dir=rtl] & {
margin-left: 0;
margin-right: 10px;
}
// You can even use it as an argument to pseudo-class selectors.
:not(&) {
opacity: 0.8;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us