.example {
background-color: red;
font-size: 3rem;
&__title {
font-weight: bold;
}
p {
color: red;
}
&--disabled {
color: grey;
}
}
.container {
flex: {
direction: column;
wrap: nowrap;
}
}
$border-default: 0.05rem solid black;
$colors: (main: #267543, secondary: #2C9DD4);
.example { color: map-get($colors, main); }
.example { @extend .previous-style; margin-bottom: 1rem; }
@mixin nombre-del-mixin() { display: flex; justify-content:
center; align-items: center; }
.clase-ejemplo { @include nombre-del-mixin(); margin-top:
2rem; }
Declaración: @mixin media-min-width($width) { @media (min-width: $width)
{ @content;
}
}
Importación: @include media-min-width(40rem) { font-size: 125%;
}