mirror of https://github.com/twbs/ratchet.git
Build mobile apps with simple HTML, CSS, and JS components.
http://goratchet.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1012 B
59 lines
1012 B
11 years ago
|
//
|
||
|
// Push styles (to be used with push.js)
|
||
|
// --------------------------------------------------
|
||
12 years ago
|
|
||
11 years ago
|
.content {
|
||
|
// Fade animation
|
||
|
&.fade {
|
||
|
left: 0;
|
||
|
opacity: 0;
|
||
|
|
||
|
&.in {
|
||
|
opacity: 1;
|
||
|
}
|
||
|
}
|
||
|
|
||
11 years ago
|
// Slide animation
|
||
11 years ago
|
&.slide {
|
||
11 years ago
|
z-index: 2;
|
||
11 years ago
|
@include transition(-webkit-transform .4s);
|
||
|
@include transform(translate3d(0, 0, 0));
|
||
11 years ago
|
|
||
|
&.left {
|
||
11 years ago
|
z-index: 1;
|
||
11 years ago
|
@include transform(translate3d(-100%, 0, 0));
|
||
11 years ago
|
}
|
||
|
|
||
|
&.right {
|
||
11 years ago
|
z-index: 3;
|
||
11 years ago
|
@include transform(translate3d(100%, 0, 0));
|
||
11 years ago
|
}
|
||
|
}
|
||
11 years ago
|
}
|
||
11 years ago
|
|
||
|
// Add chevrons to elements
|
||
|
.push-left,
|
||
|
.push-right {
|
||
|
&:after {
|
||
|
position: absolute;
|
||
|
top: 50%;
|
||
|
display: inline-block;
|
||
|
color: #bbb;
|
||
|
font-family: Ratchicons;
|
||
|
font-size: inherit;
|
||
|
text-decoration: none;
|
||
|
line-height: 1;
|
||
|
cursor: default;
|
||
|
-webkit-font-smoothing: antialiased;
|
||
|
@include transform(translateY(-50%));
|
||
|
}
|
||
|
}
|
||
|
.push-left:after {
|
||
|
left: 15px;
|
||
11 years ago
|
content: '\e80d';
|
||
11 years ago
|
}
|
||
|
.push-right:after {
|
||
|
right: 15px;
|
||
11 years ago
|
content: '\e811';
|
||
11 years ago
|
}
|