Skip to content

Instantly share code, notes, and snippets.

@letanure
Created March 24, 2018 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letanure/6f41ff97bacf4a95dc22cee25d083714 to your computer and use it in GitHub Desktop.
Save letanure/6f41ff97bacf4a95dc22cee25d083714 to your computer and use it in GitHub Desktop.
demo stylus
/*
# Core/Buttons
Basic definitions of how use the grid and its containers
.button - Main container
Markup:
<button class="button {{modifier_class}}">
Button
</button>
<button class="button {{modifier_class}}" disabled="disabled">
Disabled
</button>
## 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
*/
.button
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 ...
/*
Core
Here you'll find the list of all elements available in the project.
Styleguide: Elements
*/
@import 'buttons'
@import 'label'
/*
# 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