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

217 lines
4.3 KiB
SCSS
Raw Normal View History

$turquoise: #08d58f;
$off_white: #F5F5F5;
2017-06-19 08:15:48 +12:00
$faint_grey: #f4f2f0;
2017-07-24 06:03:09 +12:00
$light_grey: #cecac4;
2017-06-19 08:15:48 +12:00
$mid_grey: #a3a19f;
2017-07-23 10:15:02 +12:00
$grey: #383734;
$dark_grey: #181818;
$darkest_grey: #121212;
2016-10-25 14:09:53 +13:00
$secondary_grey: #888888;
$white: #FFFFFF;
$black: #000000;
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;
2017-02-21 08:35:24 +13:00
$orange: #f16f19;
$overlay_dark: rgba(0, 0, 0, 0.88);
2017-07-20 09:34:21 +12:00
$overlay_light: rgba(255, 255, 255, 0.70);
2016-11-22 11:10:30 +13:00
$bp_wide: 1000px;
$bp_medium: 800px;
$bp_small: 500px;
2016-11-22 11:10:30 +13:00
$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
}
@mixin bullet {
padding-left: 14px;
&:before {
display: inline-block;
content: '\2022';
margin-left: -8px;
padding-right: 6px;
}
}
/**
* General animations
**/
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;
}
2017-02-12 21:11:50 +13:00
@mixin noanimate(){
-webkit-transition: none !important;
-moz-transition: none !important;
-o-transition: none !important;
transition: none !important;
}
@keyframes shrink_from_right {
from { width: 100%; }
to { width: 0%; }
2016-10-27 16:58:11 +13:00
}
@mixin animate_timeout( $duration: 0.2s ){
2017-02-12 21:11:50 +13:00
animation-name: shrink_from_right;
2016-10-27 16:58:11 +13:00
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;
}
@keyframes pulse {
0% { opacity: 0; }
50% { opacity: 1; }
100% { opacity: 0; }
}
@mixin pulse( $duration: 0.5s ){
animation-name: pulse;
animation-duration: $duration;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
2017-05-29 16:29:49 +12:00
@keyframes fadein {
0% { opacity: 0; }
100% { opacity: 1; }
}
@mixin fadein( $duration: 0.2s ){
animation-name: fadein;
animation-duration: $duration;
animation-timing-function: linear;
animation-iteration-count: 1;
}
@keyframes slideloader {
0% { left: 0%; right: 100%; }
50% { left: 0%; right: 0%; }
100% { left: 100%; right: 0%; }
}
/**
* Grid layout
* Produces most album/playlist/artist grids
**/
@mixin grid_item( $cols, $gap: 2% ){
width: ( 0% + ( 100 / $cols ) - ( $gap * 2 ) + ( ( $gap * 2 ) / $cols ) );
box-sizing: border-box;
margin: 0 $gap 3%;
&:nth-child(#{$cols}n-#{$cols}) {
margin-right: 0;
@include clearfix;
}
&:nth-child(#{$cols}n-#{$cols - 1}) {
margin-left: 0;
}
}
/**
* Responsive rules
* Creates @media wrappers
**/
@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;
}
}@else if $min_height {
@media( min-height: $min_height ){
@content;
}
}
}
2017-06-19 16:53:27 +12:00
@mixin blur( $size: 10px ) {
-webkit-filter: blur( $size );
filter: blur( $size );
}
2017-06-19 16:53:27 +12:00
@mixin feature_font(){
font-family: "Overpass";
letter-spacing: -0.04em;
font-weight: 600;
}
@mixin invert(){
-webkit-filter: invert(1);
filter: invert(1);
}
@mixin gradient_overlay($radius: 0, $opacity: 0){
position: relative;
2017-06-20 19:55:47 +12:00
border-radius: $radius;
&:before {
@include animate();
content: '';
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: $opacity;
z-index: 9;
pointer-events: none;
2017-07-26 15:24:18 +12:00
background: -webkit-linear-gradient(to bottom right, rgba(255,255,255,.75), rgba(0,0,0,1));
background: -moz-linear-gradient(to bottom right, rgba(255,255,255,.75), rgba(0,0,0,1));
background: -o-linear-gradient(to bottom right, rgba(255,255,255,.75), rgba(0,0,0,1));
background: linear-gradient(to bottom right, rgba(255,255,255,.75), rgba(0,0,0,1));
}
}