Last active
July 18, 2016 17:07
-
-
Save briansokol/417c4974d5428be26ffb281d02f06032 to your computer and use it in GitHub Desktop.
CSS Modules Examples
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
@keyframes text__blue-green-text___1AJCb { | |
0% {color: blue;} | |
100% {color: green;} | |
} | |
.text__blue-green-text___1AJCb { | |
animation: text__blue-green-text___1AJCb 5s infinite linear alternate; | |
} | |
.text__flashy-text___YkPNd { | |
/* Other rules */ | |
} |
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
@keyframes blue-green-text { | |
0% {color: blue;} | |
100% {color: green;} | |
} | |
.blue-green-text { | |
animation: blue-green-text 5s infinite linear alternate; | |
} | |
.flashy-text { | |
composes: blue-green-text; | |
/* Other rules */ | |
} |
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
.button { | |
/* Rules common to all buttons */ | |
} | |
.button.large { | |
/* Specific size rules */ | |
} | |
.button.small { | |
/* Specific size rules */ | |
} | |
.button.primary, | |
.button.large.primary, | |
.button.small.primary { | |
/* Rules for primary buttons */ | |
} | |
.button.cancel, | |
.button.large.cancel, | |
.button.small.cancel { | |
/* Rules for cancel buttons */ | |
} |
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
.title { | |
/* Global title class rules */ | |
} | |
.heading .button__avatar___2hVJ5 { | |
/* Modular avatar class rules inside any heading class */ | |
} |
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
:global .title { | |
/* Global title class rules */ | |
} | |
:global .heading :local .avatar { | |
/* Modular avatar class rules inside any heading class */ | |
} |
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
.button__primary___1XCfD { | |
/* Rules for primary buttons */ | |
} | |
.button__cancel___2N3Rv { | |
/* Rules for cancel buttons */ | |
} |
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
.button { | |
/* Basic button rules */ | |
} | |
.button.primary { | |
/* Primary button rules inherit from .button */ | |
} | |
.button.cancel { | |
/* Cancel button rules inherit from .button */ | |
} |
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
.button__common___3qwUd { | |
/* Very basic rules common to all buttons */ | |
} | |
.buttonSize__large___13I8z { | |
/* Specific size rules */ | |
} | |
.buttonSize__small___C-VmZ { | |
/* Specific size rules */ | |
} | |
.buttonColor__green___1sgDW { | |
/* Rules for green buttons */ | |
} | |
.buttonColor__red___2hEGB { | |
/* Rules for red buttons */ | |
} | |
.largeButton__primary___34_hf { | |
/* Empty! */ | |
} | |
.largeButton__cancel___3Lbw9 { | |
/* Empty! */ | |
} | |
.smallButton__primary___3WUIN { | |
/* Empty! */ | |
} | |
.smallButton__cancel___8v8Mv { | |
/* Empty! */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment