|
/*********************************** |
|
** variables ** |
|
***********************************/ |
|
|
|
// causely icons |
|
@import url(http://i.icomoon.io/public/188ac2dd2d/SLURP/style.css); |
|
|
|
//@import url(http://i.icomoon.io/public/188ac2dd2d/CAUSELY/style.css); |
|
|
|
// Exo 2 webfonts |
|
@import url(http://fonts.googleapis.com/css?family=Exo+2:700,300italic,500italic,700italic,300,500,200); |
|
|
|
// Lato webfonts |
|
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic); |
|
|
|
// text variables |
|
@type-copy: 'Lato', 'Helvetica Neue', 'Arial', sans-serif; // body copy stack |
|
@type-title: 'Exo 2', 'Helvetica Neue', 'Arial Narrow', sans-serif; // header font stack stack |
|
@icons: 'slurp'; // icon font |
|
|
|
// effects variables |
|
@rounding: 0.1rem; // rounded corner control |
|
@shadowing: 0 0.2rem 0.3rem @shadow; |
|
|
|
// interface palette |
|
@text: #fff; |
|
@neutral: #eee; |
|
@neutral-alt: #ddd; |
|
@outline: #fff; |
|
@shim: rgba(0,0,0,0.7); |
|
@shadow: rgba(0,0,0,0.1); |
|
@glow: rgba(255,255,255,0.5); |
|
|
|
// action palette |
|
@action: @causely-blue; // change @action to your main color |
|
@action-alt: lighten(@action, 18%); |
|
@action-hot: lighten(@action, 99%); |
|
|
|
// causely palette |
|
@causely-blue: #57b9fc; |
|
@causely-navy: #03303d; |
|
@causely-plum: #280537; |
|
@causely-salmon: #ff6060; |
|
@causely-yellow: #fffc62; |
|
@causely-green: #94ff99; |
|
@causely-emerald: #06563d; |
|
@causely-white: #f9f9f9; |
|
@causely-black: #010101; |
|
@causely-clouds: desaturate(@causely-blue, 70%); |
|
|
|
// sojo palette |
|
@sojo-blue: #05aed9; |
|
@sojo-orange: #f79d20; |
|
@sojo-green: #a4cc39; |
|
@sojo-magenta: #d91376; |
|
|
|
// blue gradient palette |
|
@signup-100: @causely-navy; |
|
@signup-80: mix(@signup-100, @signup-0, 80%); |
|
@signup-60: mix(@signup-100, @signup-0, 60%); |
|
@signup-40: mix(@signup-100, @signup-0, 40%); |
|
@signup-20: mix(@signup-100, @signup-0, 20%); |
|
@signup-0: @causely-blue; |
|
|
|
/*********************************** |
|
** overall styles ** |
|
***********************************/ |
|
|
|
// text selection |
|
::selection { |
|
background: @causely-plum; |
|
color: @action-hot; |
|
} |
|
|
|
* { |
|
box-sizing: border-box; |
|
-webkit-font-smoothing: antialiased; |
|
transition: 180ms ease-in-out; |
|
vertical-align: baseline; |
|
} |
|
|
|
/*********************************** |
|
** layout ** |
|
***********************************/ |
|
|
|
body { |
|
background-color: @causely-blue; |
|
font-family: @type-copy; |
|
font-size: 16px; |
|
line-height: 1.5; |
|
} |
|
|
|
header { |
|
background-color: @causely-black; |
|
box-shadow: @shadowing; |
|
color: @causely-white; |
|
font-family: @type-title; |
|
font-size: 1.3rem; |
|
font-weight: 500; |
|
line-height: 3; |
|
padding: 0 2rem; |
|
position: fixed; |
|
top: 0; |
|
width: 100%; |
|
z-index: 400; |
|
a.brand { |
|
background-color: transparent; |
|
border: none; |
|
color: @causely-white; |
|
font-weight: 700; |
|
} |
|
} |
|
|
|
nav { |
|
background: transparent; |
|
color: @causely-white; |
|
display: inline-block; |
|
position: absolute; |
|
right: 0; |
|
top: 0; |
|
user-select: none; |
|
ul { |
|
padding: 0; |
|
margin: 0; |
|
li { |
|
padding: 0 1rem; |
|
} |
|
&.hotdog { |
|
background-color: @causely-plum; |
|
cursor: pointer; |
|
text-align: right; |
|
position: relative; |
|
} |
|
&.menu { |
|
background-color: @causely-plum; |
|
color: @causely-white; |
|
display: none; |
|
overflow: scroll; |
|
position: absolute; |
|
right: 0; |
|
top: 4rem; |
|
width: 15rem; |
|
li { |
|
border-bottom: 0.2rem solid darken(@causely-plum, 2%); |
|
} |
|
} |
|
} |
|
a, |
|
a:hover, |
|
a:focus, |
|
a:active { |
|
background: none; |
|
color: @causely-white; |
|
} |
|
} |
|
|
|
section { |
|
display: block; |
|
height: 100%; |
|
width: 100%; |
|
overflow: visible; |
|
padding: 6rem 2rem; |
|
position: relative; |
|
top: 0; |
|
left: 0; |
|
} |
|
|
|
main { |
|
padding: 1rem 0; |
|
} |
|
|
|
article { |
|
display: block; |
|
} |
|
|
|
footer { |
|
background-color: @causely-black; |
|
bottom: 0; |
|
color: @causely-white; |
|
font-size: 1rem; |
|
line-height: 3; |
|
padding: 0 2rem; |
|
position: fixed; |
|
text-align: center; |
|
width: 100%; |
|
z-index: 999; |
|
} |
|
|
|
img { |
|
max-width: 100%; |
|
width: 100%; |
|
} |
|
|
|
|
|
|
|
/*********************************** |
|
** typography ** |
|
***********************************/ |
|
|
|
/* |
|
|
|
special styles from type-scale.com |
|
p {margin-bottom: 1.3em;} |
|
|
|
h1, h2, h3, h4 { |
|
margin: 1.414em 0 0.5em; |
|
font-weight: inherit; |
|
line-height: 1.2; |
|
} |
|
|
|
h1 { |
|
margin-top: 0; |
|
font-size: 3.998em; |
|
} |
|
|
|
h2 {font-size: 2.827em;} |
|
|
|
h3 {font-size: 1.999em;} |
|
|
|
h4 {font-size: 1.414em;} |
|
|
|
small, .font_small {font-size: 0.707em;} |
|
*/ |
|
|
|
h1, |
|
h2, |
|
h3, |
|
h4, |
|
h5, |
|
h6 { |
|
font-family: @type-title; |
|
line-height: 1; |
|
margin-bottom: 1rem; |
|
} |
|
|
|
h1 { |
|
font-size: 6vw; |
|
font-weight: 200; |
|
line-height: 1; |
|
} |
|
|
|
h2 { |
|
font-size: 3rem; |
|
font-weight: 500; |
|
} |
|
|
|
h3 { |
|
font-size: 2rem; |
|
font-weight: 700; |
|
} |
|
|
|
h4 { |
|
font-size: 1.8rem; |
|
font-weight: 500; |
|
} |
|
|
|
h5 { |
|
font-family: @type-copy; |
|
font-size: 1.6rem; |
|
font-weight: 300; |
|
} |
|
|
|
h6 { |
|
font-family: @type-copy; |
|
font-size: 1.5rem; |
|
font-weight: 700; |
|
} |
|
|
|
p { |
|
margin: 1rem 0; |
|
} |
|
|
|
b, strong { |
|
font-weight: 700; |
|
} |
|
|
|
i, em { |
|
// font-style: italic; |
|
} |
|
|
|
big { |
|
font-size: 1.8rem; |
|
line-height: 1rem; |
|
} |
|
|
|
small { |
|
font-size: 0.8rem; |
|
line-height: 1rem; |
|
} |
|
|
|
blockquote { |
|
font-size: 1.6rem; |
|
font-weight: 400; |
|
font-style: italic; |
|
} |
|
|
|
blockquote:before { |
|
content: "\e611"; // icon-double-quote |
|
display: inline-block; |
|
font-family: @icons; |
|
font-style: normal; |
|
margin-left: -2rem; |
|
opacity: 0.3; |
|
width: 1.8rem; |
|
|
|
} |
|
|
|
address { |
|
|
|
} |
|
|
|
|
|
|
|
/*********************************** |
|
** links ** |
|
***********************************/ |
|
|
|
a, |
|
a:visited { |
|
border-bottom: 0.2rem solid ; |
|
color: inherit; |
|
text-decoration: none; |
|
} |
|
|
|
a:hover { |
|
background-color: @action-alt; |
|
color: inherit; |
|
} |
|
|
|
a:focus { |
|
background-color: @action-hot; |
|
color: @action; |
|
} |
|
|
|
|
|
/*********************************** |
|
** lists ** |
|
***********************************/ |
|
|
|
ul { |
|
margin: 1rem 0; |
|
li { |
|
border-bottom: 0.1rem solid @shadow; |
|
padding: 0.5rem; |
|
} |
|
} |
|
|
|
dl { |
|
margin: 1rem 0; |
|
dt { |
|
font-family: @type-title; |
|
font-size: 2rem; |
|
font-weight: 200; |
|
} |
|
dd { |
|
padding-bottom: 2rem; |
|
vertical-align: baseline; |
|
&:last-child { |
|
padding-bottom: 0; |
|
} |
|
} |
|
} |
|
|
|
/*********************************** |
|
** forms ** |
|
***********************************/ |
|
|
|
form { |
|
user-select: none; |
|
.validation { |
|
display: inline-block; |
|
float: left; |
|
font-weight: normal; |
|
line-height: 3rem; |
|
margin-right: -2rem; |
|
height: 3rem; |
|
text-align: center; |
|
width: 2rem; |
|
position: relative; |
|
top: 0; |
|
left: 0; |
|
z-index: 10; |
|
} |
|
.help { |
|
display: block; |
|
ul { |
|
display: inline-block; |
|
margin: 0; |
|
li { |
|
display: inline-block; |
|
opacity: 0.4; |
|
padding: 0; |
|
&.selected { |
|
opacity: 0.9; |
|
} |
|
img { |
|
float: left; |
|
line-height: 1rem; |
|
width: 3rem; |
|
} |
|
} |
|
} |
|
} |
|
} |
|
|
|
// some radio and checkboxes |
|
// yay |
|
// http://jsfiddle.net/YB8UW/8/ |
|
|
|
fieldset { |
|
padding: 0.5rem 0; |
|
&:disabled { |
|
filter: blur(0.1rem); |
|
opacity: 0.7; |
|
} |
|
} |
|
|
|
label { |
|
background-color: transparent !important; |
|
color: inherit !important; |
|
display: block; |
|
margin-bottom: 1rem; |
|
} |
|
|
|
legend { |
|
font-size: 2rem; |
|
font-family: @type-title; |
|
font-weight: 300; |
|
margin-bottom: 1rem; |
|
} |
|
|
|
select { |
|
-webkit-appearance: none; |
|
background-color: @action-hot; |
|
border: 0.2rem solid @action-hot; |
|
border-radius: @rounding; |
|
font-family: @type-copy; |
|
font-size: 1rem; |
|
font-weight: 700; |
|
height: 3rem; |
|
width: 15rem; |
|
padding-left: 2.5rem; |
|
|
|
} |
|
|
|
input { |
|
background-color: @action-hot; |
|
border: 0.2rem solid @action-hot; |
|
border-radius: @rounding; |
|
color: @causely-black; |
|
font-family: @type-copy; |
|
font-size: 1rem; |
|
height: 3rem; |
|
} |
|
|
|
input[type=text], |
|
input[type=url], |
|
input[type=tel], |
|
input[type=number], |
|
input[type=color], |
|
input[type=email] { |
|
font-weight: 700; |
|
padding: 0 1rem 0 2.5rem; |
|
line-height: 3rem; |
|
} |
|
|
|
input:focus, |
|
select:focus { |
|
border: 0.2rem solid @action; |
|
outline: none; |
|
} |
|
|
|
::-webkit-input-placeholder { |
|
color: @action; |
|
} |
|
|
|
button { |
|
background-color: @action; |
|
border: 0.2rem solid @action; |
|
border-radius: @rounding; |
|
box-shadow: @shadowing; |
|
box-sizing: border-box; |
|
color: @action-hot; |
|
cursor: pointer; |
|
display: inline-block; |
|
font-family: @type-title; |
|
font-size: 1rem; |
|
font-weight: 700; |
|
line-height: 2rem; |
|
padding: 0.5rem 2rem; |
|
&:focus { |
|
background-color: @action-alt; |
|
color: @action-hot; |
|
outline: none; |
|
} |
|
&:hover { |
|
border-color: @action-alt; |
|
box-shadow: none; |
|
text-shadow: none; |
|
} |
|
&:disabled { |
|
background-color: @causely-clouds; |
|
border-color: @causely-clouds; |
|
color: @action-hot; |
|
cursor: default; |
|
} |
|
&.signin { |
|
font-size: 3rem; |
|
font-weight: 200; |
|
line-height: 3rem; |
|
padding: 2rem; |
|
} |
|
&.submit { |
|
border-radius: 2rem; |
|
height: 4rem; |
|
width: 4rem; |
|
box-shadow: @shadowing; |
|
font-size: 2rem; |
|
padding: 0; |
|
:hover { |
|
box-shadow: none; |
|
text-shadow: none; |
|
} |
|
> .text { |
|
display: none; |
|
} |
|
> .icon:before { |
|
font-family: @icons; |
|
content: "\e116"; //icon-check |
|
//content: "\e095"; //icon-arrow-right |
|
} |
|
} |
|
&.return { // back arrow button |
|
background: transparent; |
|
border-radius: 2rem; |
|
box-shadow: none; |
|
color: @action; |
|
height: 4rem; |
|
width: 4rem; |
|
border: 0; |
|
font-size: 2rem; |
|
float:left; |
|
padding: 0; |
|
text-shadow: @shadowing; |
|
&:active { |
|
background: inherit; |
|
color: inherit; |
|
} |
|
> .text { |
|
display: none; |
|
} |
|
> .icon:before { |
|
font-family: @icons; |
|
//content: "\e117"; //icon-cross |
|
content: "\e039"; //icon-arrow-right |
|
} |
|
} |
|
&.busy { // busy state |
|
> .text { |
|
// display : none; |
|
} |
|
> .icon:before { |
|
font-family: @icons; |
|
content: "\e105"; // icon-loader |
|
} |
|
} |
|
// failure state |
|
&.failed { |
|
background-color: @causely-salmon!important; |
|
border-color: @causely-salmon!important; |
|
color: @causely-white!important; |
|
> .text { |
|
display : none; |
|
} |
|
> .icon:before { |
|
font-family: @icons; |
|
content: "\e107"; // icon-ban |
|
} |
|
} |
|
} |
|
|
|
|
|
|
|
//validation states |
|
label { |
|
//input default |
|
&.default { |
|
> span.validation { |
|
background-color: @action; |
|
color: spin(darken(@action, 50%), -10%); |
|
> span.icon:before { |
|
font-family: @icons; |
|
content: "\e114"; /* icon-plus */ |
|
} |
|
} |
|
&::-webkit-input-placeholder { |
|
color: @action; |
|
} |
|
} |
|
//input error |
|
&.error { |
|
:focus { |
|
border-color: @causely-salmon; |
|
} |
|
span.validation { |
|
background-color: @causely-salmon; |
|
color: spin(darken(@causely-salmon, 50%), -10%); |
|
> span.icon:before { |
|
font-family: @icons; |
|
content: "\e117"; /* icon-cross */ |
|
} |
|
} |
|
::-webkit-input-placeholder { |
|
color: @causely-salmon; |
|
} |
|
} |
|
//input success |
|
&.success { |
|
:focus { |
|
border-color: @causely-green; |
|
} |
|
span.validation { |
|
background-color: @causely-green; |
|
color: spin(darken(@causely-green, 50%), -10%); |
|
> span.icon:before { |
|
font-family: @icons; |
|
content: "\e116";// icon-check |
|
} |
|
} |
|
::-webkit-input-placeholder { |
|
color: spin(darken(@causely-green, 50%), -10%); |
|
} |
|
} |
|
} |
|
|
|
/*********************************** |
|
** alerts, wells ** |
|
***********************************/ |
|
|
|
.alert { |
|
border-radius: @rounding; |
|
box-shadow: @shadowing; |
|
font-size: 1rem; |
|
font-weight: 700; |
|
margin-bottom: 1rem; |
|
opacity: 0.8; |
|
padding: 0.5em 1rem; |
|
.dismiss { |
|
background-color: transparent; |
|
border: none; |
|
color: inherit; |
|
float: right; |
|
&:active, &:focus, &:hover { |
|
background-color: transparent; |
|
} |
|
&:before { |
|
font-family: @icons; |
|
content: "\e117"; /* icon-cross */ |
|
} |
|
} |
|
a, |
|
a:visited { |
|
background-color: transparent; |
|
border-bottom: 0.2rem solid; |
|
color: inherit; |
|
margin: 0 0.5rem; |
|
} |
|
a:active, |
|
a:focus, |
|
a:hover { |
|
background-color: @causely-white; |
|
} |
|
} |
|
|
|
.well { |
|
background-color: @causely-white; |
|
color: @causely-black; |
|
border-radius: @rounding; |
|
box-shadow: @shadowing; |
|
padding: 1rem; |
|
ul { |
|
margin: 0; |
|
} |
|
} |
|
|
|
/*********************************** |
|
** shared colors ** |
|
***********************************/ |
|
|
|
.ink { |
|
background-color: @causely-navy; |
|
color: @causely-white; |
|
} |
|
.sky { |
|
background-color: @causely-blue; |
|
color: @causely-white; |
|
} |
|
.leaf { |
|
background-color: spin(desaturate(darken(@causely-green, 20%), 40%), 10%); |
|
color: spin(lighten(@causely-green, 60%), -10%); |
|
} |
|
.clouds { |
|
background-color: @causely-clouds; |
|
color: @causely-white; |
|
} |
|
.night { |
|
background-color: darken(@causely-blue, 65%); |
|
color: @causely-white; |
|
} |
|
.day { |
|
background-color: lighten(@causely-clouds, 31%); |
|
color: darken(@causely-blue, 45%); |
|
} |
|
.error { |
|
background-color: @causely-salmon; |
|
color: spin(darken(@causely-salmon, 50%), -10%); |
|
} |
|
.warning { |
|
background-color: @causely-yellow; |
|
color: spin(darken(@causely-yellow, 50%), -20%); |
|
} |
|
.success { |
|
background-color: @causely-green; |
|
color: spin(darken(@causely-green, 50%), -10%); |
|
} |
|
.default { |
|
background-color: @causely-blue; |
|
color: spin(darken(@causely-blue, 50%), -10%); |
|
} |
|
|
|
/*********************************** |
|
** playground ** |
|
***********************************/ |
|
|
|
.heart { |
|
color: @causely-salmon; |
|
} |
|
|
|
.soupcans { |
|
background-color: yellow; |
|
color: magenta; |
|
font-family: "Comic Sans MS"; |
|
} |
|
|
|
/*********************************** |
|
** spinner ** |
|
***********************************/ |
|
|
|
// this needs to be a mixin |
|
// http://lesscss.org/features/#mixins-feature |
|
|
|
.spinner { |
|
animation: spinner 3s infinite linear; |
|
} |
|
@-webkit-keyframes spinner { |
|
0% { |
|
transform: rotate(0deg); |
|
} |
|
100% { |
|
transform: rotate(359deg); |
|
} |
|
} |
|
@keyframes spinner { |
|
0% { |
|
transform: rotate(0deg); |
|
} |
|
100% { |
|
transform: rotate(359deg); |
|
} |
|
} |
|
|
|
/*********************************** |
|
** column system ** |
|
***********************************/ |
|
|
|
// based on https://kopepasah.com |
|
// /tutorial/use-a-less-loop-to-create-your-css-columns/ |
|
// |
|
// to use, add "column-row" to parent element |
|
// and "column ratio-X-Y" to children |
|
|
|
@maxColumns: 12; // sets the number of columns in the grid |
|
|
|
#columns (@i) when (@i > 0) { |
|
&.ratio-@{i}-@{maxColumns} { |
|
width: round( percentage( ( @i/@maxColumns ) ), 7 ); |
|
box-sizing: border-box; |
|
padding-right: 1rem; |
|
&:last-child { |
|
padding-right: 0; |
|
} |
|
// 480 pseudopixel break point padding fix |
|
@media (max-width: 30rem) { |
|
margin-bottom: 1rem; |
|
padding: 1rem; |
|
} |
|
} |
|
#columns (@i - 1); // recurses for each column |
|
} |
|
|
|
#columns (0) {} // when column index reaches 0, do nothing |
|
|
|
.column { |
|
float: left; |
|
&-row { |
|
//overflow: hidden; |
|
display: flex; |
|
flex-flow: row wrap; |
|
justify-content: space-around; |
|
} |
|
#columns (@maxColumns); |
|
} |
|
|
|
/*********************************** |
|
** media queries ** |
|
***********************************/ |
|
|
|
// 480 pseudopixel break point |
|
@media (max-width: 30rem) { |
|
.column { |
|
width: 100% !important; |
|
} |
|
} |
|
|
|
@media (min-width: 30rem) { |
|
|
|
} |
|
|
|
// 960 pseudopixel break point |
|
@media (min-width: 60rem) { |
|
body { |
|
font-size: 1.1em; |
|
} |
|
form { |
|
.help { |
|
display: inline-block; |
|
padding-left: 1rem; |
|
} |
|
} |
|
} |
|
|
|
// 1200 pseudopixel break point |
|
@media (min-width: 75rem) { |
|
body { |
|
font-size: 1.2em; |
|
} |
|
section { |
|
overflow: none; |
|
padding: 6em 4em; |
|
position: absolute; |
|
} |
|
} |
|
|
|
/* large screen menu |
|
// 960px break point |
|
@media (min-width: 60rem) { |
|
header { |
|
background-color: @causely-white; |
|
box-shadow: @shadowing; |
|
color: @causely-black; |
|
} |
|
nav { |
|
ul { |
|
&.hotdog { |
|
display: none; |
|
} |
|
&.menu { |
|
background-color: @causely-white !important; |
|
width: 100% !important; |
|
li { |
|
border-bottom: none !important; |
|
color: @causely-black; |
|
display: inline-block; |
|
&:nth-child(odd), |
|
&:nth-child(even) { |
|
background-color: inherit; |
|
} |
|
a { |
|
color: @action; |
|
} |
|
} |
|
} |
|
} |
|
&.hotdog { |
|
cursor: pointer; |
|
text-align: right; |
|
} |
|
&.menu { |
|
|
|
color: @causely-white; |
|
} |
|
} |
|
} */ |
|
|
|
/*********************************** |
|
** demo sections ** |
|
***********************************/ |
|
|
|
#forms { |
|
background-color: @neutral; |
|
top: 0%; |
|
} |
|
|
|
#typography { |
|
background-color: @causely-blue; |
|
color: @causely-white; |
|
top: 100%; |
|
} |
|
|
|
#lists { |
|
background-color: @causely-navy; |
|
color: @causely-white; |
|
top: 200%; |
|
} |
|
|
|
#demo { |
|
background-color: @causely-white; |
|
top: 300%; |
|
} |
|
|
|
#connect { |
|
background-color: @causely-white; |
|
color: @causely-clouds; |
|
top: 400%; |
|
} |
|
|
|
/*********************************** |
|
** uilang controls ** |
|
***********************************/ |
|
|
|
.shrink { |
|
display: none; |
|
} |
|
|
|
.grow { |
|
opacity: 1; |
|
} |
|
|
|
.squish { |
|
filter: blur(0.5rem) brightness(0.5); |
|
// left: -18rem; |
|
position: relative; |
|
user-select: none; |
|
} |
|
|
|
/*******************************fin*/ |
|
|
|
.connect .background { |
|
background: url(http://lorempixel.com/g/400/400/city/4/) no-repeat; |
|
filter: blur(0.5rem); |
|
transform: scale(1.2); |
|
transition: all 0.2s ease-in-out; |
|
} |
|
|
|
.text-center { |
|
text-align: center; |
|
} |
|
|
|
.text-right { |
|
text-align: right; |
|
} |
|
|
|
.text-justify { |
|
text-align: justify; |
|
} |
|
|
|
|
|
/*********************************** |
|
** special loader ** |
|
***********************************/ |
|
|
|
.centered { |
|
position: absolute; |
|
left: 50%; |
|
top: 50%; |
|
transform: translate(-50%, -50%); |
|
} |
|
|
|
.loader { |
|
border-radius: 100%; |
|
height:6rem; |
|
overflow: hidden; |
|
width: 6rem; |
|
animation:loader 4800ms infinite; |
|
} |
|
.anim { |
|
color: white; |
|
height: 6rem; |
|
width: 6rem; |
|
animation: anim 1200ms infinite; |
|
font-size: 4rem; |
|
line-height: 6rem; |
|
span { |
|
&:nth-child(1) { animation:impression 4800ms infinite; } |
|
&:nth-child(2) { animation:share 4800ms infinite; } |
|
&:nth-child(3) { animation:referral 4800ms infinite; } |
|
&:nth-child(4) { animation:heart 4800ms infinite; } |
|
} |
|
} |
|
|
|
@keyframes impression { |
|
0% { opacity: 1; } |
|
25% { opacity: 0; } |
|
50% { opacity: 0; } |
|
75% { opacity: 0; } |
|
100% { opacity: 1; } |
|
} |
|
|
|
@keyframes share { |
|
0% { opacity: 0; } |
|
25% { opacity: 1; } |
|
50% { opacity: 0; } |
|
75% { opacity: 0; } |
|
100% { opacity: 0; } |
|
} |
|
|
|
@keyframes referral { |
|
0% { opacity: 0; } |
|
25% { opacity: 0; } |
|
50% { opacity: 1; } |
|
75% { opacity: 0; } |
|
100% { opacity: 0; } |
|
} |
|
|
|
@keyframes heart { |
|
0% { opacity: 0; } |
|
25% { opacity: 0; } |
|
50% { opacity: 0; } |
|
75% { opacity: 1; } |
|
100% { opacity: 0; } |
|
|
|
} |
|
|
|
@keyframes anim { |
|
from { transform: rotate(0deg); } |
|
to { transform: rotate(360deg); } |
|
} |
|
|
|
@keyframes loader { |
|
0% { background-color: #d91376; } |
|
25% { background-color: #f79d20; } |
|
50% { background-color: #a4cc39; } |
|
75% { background-color: #05aed9; } |
|
100% { background-color: #d91376; } |
|
} |