×
Clear all filters including search bar
Valeri Tandilashvili's Sass Notes
.box {
width: 300px * 2;
}
.box {
width: 500px / 2;
}
.box {
width: 100px + 200px;
}
@mixin for-phone-only {
@media (max-width: 599px) { @content; }
}
After declaring for-phone-only mixin, we can write the following Sass code:.header-title {
font-size: 15px;
@include for-phone-only {
font-size: 18px;
}
}
.btn-b {
@include verticalGradient(white, lighten($beautifulHue, 30%));
}
.btn-b {
@include verticalGradient(white, $beautifulHue);
}
@mixin verticalGradient($fromColor, $toColor) {
background-color: $toColor;
background-image: -moz-linear-gradient(top, $fromColor, $toColor);
...
background-image: linear-gradient(to bottom, $fromColor, $toColor);
}
.btn-b {
@include verticalGradient(blue, red);
}
.btn-a {
background-color: lighten($beautifulHue, 45%);
}
a {
color: $beautifulHue;
}
@import 'header';
.btn-a {
...