open-nomad/website/source/assets/stylesheets/_utilities.scss

211 lines
3 KiB
SCSS
Raw Normal View History

2015-09-12 00:01:02 +00:00
//
// Utility classes
// --------------------------------------------------
//
// -------------------------
@mixin anti-alias() {
2015-11-10 21:58:56 +00:00
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
2015-09-12 00:01:02 +00:00
}
@mixin open-light() {
2015-11-10 21:58:56 +00:00
font-family: $font-family-open-sans;
font-weight: 300;
2015-09-12 00:01:02 +00:00
}
@mixin open() {
2015-11-10 21:58:56 +00:00
font-family: $font-family-open-sans;
font-weight: 400;
2015-09-12 00:01:02 +00:00
}
@mixin open-sb() {
2015-11-10 21:58:56 +00:00
font-family: $font-family-open-sans;
font-weight: 600;
2015-09-12 00:01:02 +00:00
}
@mixin open-bold() {
2015-11-10 21:58:56 +00:00
font-family: $font-family-open-sans;
font-weight: 700;
2015-09-12 00:01:02 +00:00
}
@mixin skewY($skew) {
2015-11-10 21:58:56 +00:00
-webkit-transform: skewY($skew);
-moz-transform: skewY($skew);
-ms-transform: skewY($skew);
-o-transform: skewY($skew);
transform: skewY($skew);
2015-09-12 00:01:02 +00:00
}
@mixin v-nav-style-core{
2015-11-10 21:58:56 +00:00
color: $gray-darker;
font-family: $font-family-blanc-reg;
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.0625em;
2015-09-12 00:01:02 +00:00
}
@mixin v-nav-style{
2015-11-10 21:58:56 +00:00
margin: 0 15px;
padding: 0;
line-height: 22px;
@include v-nav-style-core();
@include transition( color 0.3s ease );
&:hover{
color: $green-dark;
2015-09-12 00:01:02 +00:00
@include transition( color 0.3s ease );
2015-11-10 21:58:56 +00:00
background-color: transparent;
}
2015-09-12 00:01:02 +00:00
}
@mixin bez-1-transition{
2015-11-10 21:58:56 +00:00
@include transition( all 300ms ease-in-out );
2015-09-12 00:01:02 +00:00
}
@keyframes press {
0% {
opacity: 1;
}
50% {
opacity: .55
}
100% {
opacity: 1;
}
}
@-webkit-keyframes press {
0% {
opacity: 1;
}
50% {
opacity: .55
}
100% {
opacity: 1;
}
}
#demo-app .loading-bar{
2015-11-10 21:58:56 +00:00
display: block;
-webkit-animation: shift-rightwards 2s ease-in-out infinite;
-moz-animation: shift-rightwards 2s ease-in-out infinite;
-ms-animation: shift-rightwards 2s ease-in-out infinite;
-o-animation: shift-rightwards 2s ease-in-out infinite;
animation: shift-rightwards 2s ease-in-out infinite;
-webkit-animation-delay: .4s;
-moz-animation-delay: .4s;
-o-animation-delay: .4s;
animation-delay: .4s;
2015-09-12 00:01:02 +00:00
}
.loading-bar{
2015-11-10 21:58:56 +00:00
position: fixed;
display: none;
bottom: 0;
left: 0;
right: 0;
height: 2px;
z-index: 800;
background: $blue;
-webkit-transform: translateX(100%);
-moz-transform: translateX(100%);
-o-transform: translateX(100%);
transform: translateX(100%);
2015-09-12 00:01:02 +00:00
}
@-webkit-keyframes shift-rightwards
{
2015-11-10 21:58:56 +00:00
0%
{
@include translate(-100%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
40%
{
@include translate(0%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
60%
{
@include translate(0%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
100%
{
@include translate(100%, 0);
}
2015-09-12 00:01:02 +00:00
}
@-moz-keyframes shift-rightwards
{
2015-11-10 21:58:56 +00:00
0%
{
@include translate(-100%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
40%
{
@include translate(0%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
60%
{
@include translate(0%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
100%
{
@include translate(100%, 0);
}
2015-09-12 00:01:02 +00:00
}
@-o-keyframes shift-rightwards
{
2015-11-10 21:58:56 +00:00
0%
{
@include translate(-100%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
40%
{
@include translate(0%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
60%
{
@include translate(0%, 0);
}
2015-09-12 00:01:02 +00:00
2015-11-10 21:58:56 +00:00
100%
{
@include translate(100%, 0);
}
2015-09-12 00:01:02 +00:00
}
@keyframes shift-rightwards
{
2015-11-10 21:58:56 +00:00
0%
{
@include translate(-100%, 0);
}
40%
{
@include translate(0%, 0);
}
60%
{
@include translate(0%, 0);
}
100%
{
@include translate(100%, 0);
}
2015-09-12 00:01:02 +00:00
}