Last active
August 29, 2015 14:05
-
-
Save weirongxu/631d7b1ef991075dc685 to your computer and use it in GitHub Desktop.
My stylus
This file contains hidden or 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
.pagination | |
@extend .clearfix | |
> li | |
display inline | |
float left | |
a, span | |
+xs-layout() | |
padding 3px 7px | |
font-size 14px | |
+sm-layout() | |
padding 5px 12px | |
margin-left -1px | |
border 1px solid #ddd | |
color #428bca | |
&:hover, &:active | |
background-color #eee | |
color #2a6496 | |
&:first-child | |
a, span | |
border-top-left-radius 4px | |
border-bottom-left-radius 4px | |
&:last-child | |
a, span | |
border-top-right-radius 4px | |
border-bottom-right-radius 4px | |
&.active | |
a, span | |
background-color #428bca | |
border-color #428bca | |
color white |
This file contains hidden or 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
@import nib | |
@import variable | |
@import mixin | |
@import components |
This file contains hidden or 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
.clearfix | |
clearfix() | |
.f-left | |
float left | |
.f-right | |
float right |
This file contains hidden or 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
xs-layout() | |
@media (max-width: $screen-xs-max) | |
{block} | |
sm-layout() | |
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) | |
{block} | |
md-layout() | |
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) | |
{block} | |
lg-layout() | |
@media (min-width: $screen-lg-min) | |
{block} |
This file contains hidden or 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
$screen-xs-min = 480px | |
// Small screen / tablet | |
$screen-sm-min = 768px | |
// Medium screen / desktop | |
$screen-md-min = 992px | |
// Large screen / wide desktop | |
$screen-lg-min = 1200px | |
// So media queries don't overlap when required, provide a maximum | |
$screen-xs-max = ($screen-sm-min - 1) | |
$screen-sm-max = ($screen-md-min - 1) | |
$screen-md-max = ($screen-lg-min - 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment