Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ----
- // libsass (v3.2.5)
- // ----
- // Деректива if
- @mixin module($width) {
- // Интерполяция, экранирование
- //@debug "width = #{$width}";
- //@warn "width = #{$width}";
- @if $width >= 480px and $width < 768px {
- @media all and (min-width: 480px) {
- width: 50%;
- }
- }
- @else {
- width: 100%;
- }
- }
- .module {
- @include module(480px);
- }
- $width: 480px;
- // Функция if
- .module1 {
- background: if($width>200px,green,red);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement