Created
March 30, 2019 17:47
-
-
Save niktariy/c5c7d22373e1d91c5ae2beb13aaa2c59 to your computer and use it in GitHub Desktop.
@extend exemple
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
.error { | |
border: 1px #ff0; | |
background-color: #fdd; | |
} | |
.fatal-error { | |
@extend .error; // в CSS будет взят .fatal-error и дописан через запятую к .error | |
border-width: 5px; | |
} |
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
.error, .fatal-error { | |
border: 1px #ff0; | |
background-color: #fdd; | |
} | |
.fatal-error { | |
border-width: 5px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment