mirror of
https://github.com/danog/sass-site.git
synced 2024-12-13 01:47:44 +01:00
27 lines
513 B
Plaintext
27 lines
513 B
Plaintext
<% example do %>
|
|
@mixin app-background($color) {
|
|
#{if(&, '&.app-background', '.app-background')} {
|
|
background-color: $color;
|
|
color: rgba(#fff, 0.75);
|
|
}
|
|
}
|
|
|
|
@include app-background(#036);
|
|
|
|
.sidebar {
|
|
@include app-background(#c6538c);
|
|
}
|
|
===
|
|
@mixin app-background($color)
|
|
#{if(&, '&.app-background', '.app-background')}
|
|
background-color: $color
|
|
color: rgba(#fff, 0.75)
|
|
|
|
|
|
|
|
@include app-background(#036)
|
|
|
|
.sidebar
|
|
@include app-background(#c6538c)
|
|
<% end %>
|