2017-04-18 07:09:13 +00:00
|
|
|
@mixin clearfix {
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
display: table;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin scrollBar {
|
|
|
|
&::-webkit-scrollbar-track-piece {
|
|
|
|
background: #d3dce6;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: 6px;
|
|
|
|
}
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background: #99a9bf;
|
|
|
|
border-radius: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin relative {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin pct($pct) {
|
|
|
|
width: #{$pct};
|
|
|
|
position: relative;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin triangle($width, $height, $color, $direction) {
|
|
|
|
$width: $width/2;
|
|
|
|
$color-border-style: $height solid $color;
|
|
|
|
$transparent-border-style: $width solid transparent;
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
2017-05-16 03:08:17 +00:00
|
|
|
@if $direction==up {
|
2017-04-18 07:09:13 +00:00
|
|
|
border-bottom: $color-border-style;
|
|
|
|
border-left: $transparent-border-style;
|
|
|
|
border-right: $transparent-border-style;
|
2017-05-16 03:08:17 +00:00
|
|
|
}
|
|
|
|
@else if $direction==right {
|
2017-04-18 07:09:13 +00:00
|
|
|
border-left: $color-border-style;
|
|
|
|
border-top: $transparent-border-style;
|
|
|
|
border-bottom: $transparent-border-style;
|
2017-05-16 03:08:17 +00:00
|
|
|
}
|
|
|
|
@else if $direction==down {
|
2017-04-18 07:09:13 +00:00
|
|
|
border-top: $color-border-style;
|
|
|
|
border-left: $transparent-border-style;
|
|
|
|
border-right: $transparent-border-style;
|
2017-05-16 03:08:17 +00:00
|
|
|
}
|
|
|
|
@else if $direction==left {
|
2017-04-18 07:09:13 +00:00
|
|
|
border-right: $color-border-style;
|
|
|
|
border-top: $transparent-border-style;
|
|
|
|
border-bottom: $transparent-border-style;
|
|
|
|
}
|
2017-04-21 10:50:13 +00:00
|
|
|
}
|