sass-site/source/code-snippets/_homepage-extend-scss.md

23 lines
251 B
Markdown
Raw Normal View History

2013-02-24 07:04:16 +01:00
```scss
.message {
border: 1px solid #ccc;
2013-02-24 07:04:16 +01:00
padding: 10px;
color: #333;
}
.success {
@extend .message;
border-color: green;
}
.error {
@extend .message;
border-color: red;
}
.warning {
@extend .message;
border-color: yellow;
}
```