timetable.scss 1.13 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
@import "../../../../css/variables.scss";
@import "../../../../css/mixins.scss";

.timetable {
    width: 200px;
    margin-top: -10px;
    pointer-events: all;
    overflow: hidden;

  .daytime {
    @include transition(margin 0.3s ease);
    margin-left: -200px;
    clear: both;
    width: 100%;
    height: 30px;

    h3 {
      float: left;
      display: inline-block; 
      font-size: 18px;
    }

    .schedule, .openstatus {
      float: right;
      display: inline-block;
      font-size: 90%;
      margin-top: 3px;
    }

    &.today {
      color: $orange;
      font-weight: bold;
    }
  }
}

.active .timetable {
  .daytime {
    margin-left: 0;
  }

  .daytime:nth-child(1) {
      @include transition-delay(0.1s);
  }

  .daytime:nth-child(2) {
      @include transition-delay(0.2s);
  }

  .daytime:nth-child(3) {
      @include transition-delay(0.3s);
  }

  .daytime:nth-child(4) {
      @include transition-delay(0.4s);
  }

  .daytime:nth-child(5) {
      @include transition-delay(0.5s);
  }

  .daytime:nth-child(6) {
      @include transition-delay(0.6s);
  }

  .daytime:nth-child(7) {
      @include transition-delay(0.7s);
  }
}