viewpoints.scss 1.62 KB
Newer Older
Rushikesh Padsala's avatar
Rushikesh Padsala committed
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
@import "../../../../css/variables.scss";
@import "../../../../css/mixins.scss";

#appDiv .viewpoints {
  width: 300px;
  margin-left: -100px;
  pointer-events: all;

  h2.slash-title {
    margin-bottom: 20px;
  }

  & > div > div {
    height: 30px;
  }

  a {
    color: $viewpointItemColor;
    margin-left: 8px;
    text-decoration: none;
  }

  svg {
    width: 15px;
    opacity: 0.5;
    vertical-align: -2px;
  }

  .viewpoint {
    @include transition(all 0.5s);
    margin-left: 200px;
    font-family: 'Roboto Condensed', sans-serif; // import font!
    cursor: pointer;
    list-style: none;
    display: block;
    pointer-events: all;
    width: 100%;
    font-size: $viewpointItemFontSize;
    text-align: right;

    &:first-child {
      margin-top: 0;
    }

    &.active {
      font-size: $viewpointItemActiveFontSize;
      color: $viewpointItemActiveColor;

      &:first-child {
        margin-top: 0;
      }

      &:hover {
        color: $viewpointItemActiveColor;
      }
    }

    &:hover {
      font-size: $viewpointItemOverFontSize;
      color: $viewpointItemOverColor;
    }
  }
}


#appDiv .active .viewpoints {
  .viewpoint {
    margin-left: 0;
  }

  .viewpoint:nth-child(1) {
      @include transition(all 0.5s, margin-left 0.8s 0.1s);
  }

  .viewpoint:nth-child(2) {
      @include transition(all 0.5s, margin-left 0.8s 0.2s);
  }

  .viewpoint:nth-child(3) {
      @include transition(all 0.5s, margin-left 0.8s 0.3s);
  }

  .viewpoint:nth-child(4) {
      @include transition(all 0.5s, margin-left 0.8s 0.4s);
  }

  .viewpoint:nth-child(5) {
      @include transition(all 0.5s, margin-left 0.8s 0.5s);
  }
}