Welcome to mirror list, hosted at ThFree Co, Russian Federation.

push.scss « sass - github.com/twbs/ratchet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5e31961a0c71e6a0206e632f41ff7260ab25541e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//
// Push styles (to be used with push.js)
// --------------------------------------------------

.content {
  // Fade animation
  &.fade {
    left: 0;
    opacity: 0;

    &.in {
      opacity: 1;
    }
  }

  // Slide animation
  &.sliding {
    z-index: 2;
    -webkit-transition: -webkit-transform .4s;
       -moz-transition: -moz-transform .4s;
            transition: transform .4s;
    @include transform(translate3d(0, 0, 0));

    &.left {
      z-index: 1;
      @include transform(translate3d(-100%, 0, 0));
    }

    &.right {
      z-index: 3;
      @include transform(translate3d(100%, 0, 0));
    }
  }
}

// Add chevrons to elements
.navigate-left,
.navigate-right,
.push-left,
.push-right {
  &:after {
    position: absolute;
    top: 50%;
    display: inline-block;
    font-family: Ratchicons;
    font-size: inherit;
    line-height: 1;
    color: #bbb;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    @include transform(translateY(-50%));
  }
}
.navigate-left:after,
.push-left:after {
  left: 15px;
  content: '\e822';
}
.navigate-right:after,
.push-right:after{
  right: 15px;
  content: '\e826';
}