Last active
July 10, 2019 12:02
-
-
Save niktariy/d4322fdecb343796ff0bce52b75caf51 to your computer and use it in GitHub Desktop.
Mixins in different CSS-preprocessors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.round-borders(@radius) { | |
-webkit-border-radius: @radius; | |
-moz-border-radius: @radius; | |
border-radius: @radius; | |
} | |
.button { | |
background-color: #adc; | |
.round-borders(15px); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=round-borders($radius) | |
-webkit-border-radius: $radius | |
-moz-border-radius: $radius | |
border-radius: $radius | |
.button | |
background-color: #adc | |
+round-borders(15px) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin round-borders($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
border-radius: $radius; | |
} | |
.button { | |
background-color: #adc; | |
@include round-borders(15px); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
round-borders() { | |
-webkit-border-radius: arguments; | |
-moz-border-radius arguments; | |
border-radius arguments | |
} | |
.button | |
background-color: #adc; | |
round-borders(15px) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment