2013-02-24 07:04:16 +01:00
|
|
|
```scss
|
2017-10-30 22:27:16 +01:00
|
|
|
// This CSS won't print because %equal-heights is never extended.
|
|
|
|
%equal-heights {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This CSS will print because %message-shared is extended.
|
|
|
|
%message-shared {
|
2013-10-19 23:24:10 +02:00
|
|
|
border: 1px solid #ccc;
|
2013-02-24 07:04:16 +01:00
|
|
|
padding: 10px;
|
|
|
|
color: #333;
|
|
|
|
}
|
|
|
|
|
2017-10-30 22:27:16 +01:00
|
|
|
.message {
|
|
|
|
@extend %message-shared;
|
|
|
|
}
|
|
|
|
|
2013-02-24 07:04:16 +01:00
|
|
|
.success {
|
2017-10-30 22:27:16 +01:00
|
|
|
@extend %message-shared;
|
2013-02-24 07:04:16 +01:00
|
|
|
border-color: green;
|
|
|
|
}
|
|
|
|
|
|
|
|
.error {
|
2017-10-30 22:27:16 +01:00
|
|
|
@extend %message-shared;
|
2013-02-24 07:04:16 +01:00
|
|
|
border-color: red;
|
|
|
|
}
|
|
|
|
|
|
|
|
.warning {
|
2017-10-30 22:27:16 +01:00
|
|
|
@extend %message-shared;
|
2013-02-24 07:04:16 +01:00
|
|
|
border-color: yellow;
|
|
|
|
}
|
2013-10-19 23:24:10 +02:00
|
|
|
```
|