Files
Iris/src/scss/global/_variables.scss

94 lines
1.8 KiB
SCSS
Raw Normal View History

$turquoise: #08d58f;
$off_white: #F5F5F5;
2016-10-31 16:49:42 +13:00
$faint_grey: #EEEEEE;
2016-10-25 21:36:33 +13:00
$light_grey: #DDDDDD;
2016-10-26 21:20:48 +13:00
$mid_grey: #AAAAAA;
2016-10-26 16:55:47 +13:00
$dark_grey: #333333;
$darkest_grey: #111111;
2016-10-25 14:09:53 +13:00
$secondary_grey: #888888;
2016-10-26 21:20:48 +13:00
$red: #cf2d2d;
2016-11-06 15:47:37 +13:00
$green: #47af2a;
2016-11-10 16:17:10 +13:00
$blue: #32b5f2;
2016-12-13 11:08:13 +13:00
$yellow: #FFF39C;
2016-11-22 11:10:30 +13:00
$bp_wide: 1000px;
$bp_medium: 800px;
$bp_narrow: 350px;
$bp_shallow: 650px;
2016-11-22 11:10:30 +13:00
@mixin one_line_text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
2016-10-25 14:09:53 +13:00
}
2016-10-25 21:36:33 +13:00
@mixin clearfix {
&::after {
content: '';
clear: both;
display: block;
}
2016-10-26 16:55:47 +13:00
}
2016-10-27 16:58:11 +13:00
@mixin animate( $duration: 0.2s, $easing: ease-in-out ){
-webkit-transition: all $duration $easing;
-moz-transition: all $duration $easing;
-o-transition: all $duration $easing;
transition: all $duration $easing;
}
@keyframes fill_from_left {
from { width: 0%; }
to { width: 100%; }
}
@mixin animate_timeout( $duration: 0.2s ){
animation-name: fill_from_left;
animation-duration: $duration;
animation-timing-function: linear;
2016-10-27 10:02:12 +13:00
}
2017-01-27 08:15:59 +13:00
@keyframes spin {
from { transform: rotate(0); }
to { transform: rotate(360deg); }
}
@mixin spin( $duration: 0.5s ){
animation-name: spin;
animation-duration: $duration;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
2016-10-27 10:02:12 +13:00
@mixin blur( $size: 10px ) {
-webkit-filter: blur( $size );
filter: blur( $size );
}
@mixin responsive( $max_width: null, $min_width: null, $max_height: null, $min_height: null ){
@if $max_width and $max_height {
@media( max-width: $max_width ), ( max-height: $max_height ){
2016-11-22 11:10:30 +13:00
@content;
}
}@else if $max_width and $min_width {
@media( max-width: $max_width ) and ( min-width: $min_width ){
2016-11-22 11:10:30 +13:00
@content;
}
}@else if $max_width {
@media( max-width: $max_width ){
@content;
}
}@else if $max_height {
@media( max-height: $max_height ){
@content;
}
}@else if $min_width {
@media( min-width: $min_width ){
2016-11-22 11:10:30 +13:00
@content;
}
}
}