Created
March 24, 2018 19:12
-
-
Save letanure/6f41ff97bacf4a95dc22cee25d083714 to your computer and use it in GitHub Desktop.
demo stylus
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
/* | |
Core | |
Here you'll find the list of all elements available in the project. | |
Styleguide: Elements | |
*/ | |
@import 'buttons' | |
@import 'label' |
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
/* | |
# Core/labels | |
Basic definitions of how use the grid and its containers | |
.label - Main container | |
Markup: | |
<label class="label {{modifier_class}}"> | |
label | |
</label> | |
<label class="label {{modifier_class}}" disabled="disabled"> | |
Disabled | |
</label> | |
## Layout Modifiers | |
.is-primary - Main actions (submit, buy, activate) | |
.is-danger - Main actions, destructive (delete, leave, clear) | |
.is-info - Navigation actions (open modal, show tooltip) | |
... | |
## Size Modifiers | |
.is-small - Small size | |
.is-medium - Regular size | |
.is-large - Large size | |
*/ | |
.label | |
align-items center | |
background $color__gray--dark | |
border 1px solid transparent | |
border-radius ($baseline / 8) | |
white-space nowrap | |
// ETC ... | |
&:hover | |
background $color__gray--darker | |
&:active | |
background $color__gray--darkest | |
&[disabled] | |
background none | |
+tablet() | |
line-height 2.5rem | |
+desktop() | |
line-height 2rem | |
&.is-primary | |
background $color__white | |
color $color__gray--dark | |
// ETC ... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment