aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/stylesheets/modules/_vj_collection.sass
blob: b230991fba98b42cc441425e992e36dd6c5ec49c (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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
//-----------------//
//  VJ Collection  //
//-----------------//

#vehicle_journeys_wip, .consolidated-view
  .table-2entries
    .t2e-head
      > .td
        position: relative
        padding-left: 25px

        .fa
          margin-left: 5px

        > .headlined
          &:before
            margin-left: -25px
            padding-left: 25px

        > div > span
          position: relative
          display: block
          height: 100%

          > span:not(.small)
            position: absolute
            display: block
            line-height: 1em
            top: 50%
            transform: translateY(-50%)
            margin-top: -2px

          &:before
            content: ''
            display: block
            width: 10px
            height: 10px
            background-color: #fff
            border: 2px solid $blue
            border-radius: 50%
            position: absolute
            z-index: 5
            left: -20px
            top: 50%
            margin-top: -5px

          &:after
            content: ''
            display: block
            width: 4px
            margin: 0 3px
            background-color: rgba($grey, 0.5)
            position: absolute
            z-index: 3
            top: -6px
            left: -20px
            bottom: 0

        > .headlined > span
          height: calc(100% - (1.4em + 12px))

          &:after
            top: calc((1.4em + 18px) * -1)

        &:last-child > div > span
          &:after
            bottom: 50%

        &:nth-child(2) > div > span
          &:after
            top: 50%

    &.no_result
      .t2e-head > .td > div > span,
      .t2e-head > .td > .headlined > span
        > span
          position: relative
          top: 0
          transform: none
          margin-top: 0

        &:after
          bottom: -6px

      .t2e-head > .td:last-child > div > span
        &:after
          bottom: 50%


  .table-2entries .t2e-head
    .detailed-timetables, .detailed-purchase-windows
      &:after
        left: 0
      .fa
        margin-right: 5px
    .detailed-timetables-bt, .detailed-purchase-windows-bt
      text-decoration: none
      .fa
        margin-right: 5px
        color: $red
        transition: transform 0.1s
      &.active .fa
        transform: rotate(180deg)

  .table-2entries .t2e-head > .td:nth-child(2) > div,
  .table-2entries .t2e-head > .td:last-child > div,
  .table-2entries.no_result .t2e-head > .td:last-child > div
    > span:before
      content: '•'
      color: $blue
      text-align: center
      font-size: 28px
      letter-spacing: 0
      text-indent: -0.01em
      line-height: 12px
      width: 15px
      height: 15px
      left: -23px
      top: 50%
      margin-top: -8px

  .detailed-timetables, .detailed-purchase-windows
    padding-top: 10px
    text-align: left
    margin-bottom: -5px

    & > div
      position: relative
      border-left: 1px solid $lightgrey
      padding-left: 10px
      a
        text-decoration: none
        border: none
        white-space: nowrap
        overflow: hidden
        text-overflow: ellipsis
        display: inline-block
        margin: 0
        line-height: 1em
        max-width: 100%
      &:before
        position: absolute
        left: 0px
        top: 0
        right: -8px
        content: ""
        border-top: 1px solid $lightgrey
      font-size: 0.8em
      height: 44px
      position: relative
      padding-bottom: 5px

      p
        margin: 0
      p:first-child
        padding-top: 8px
        font-weight: bold

  .detailed-purchase-windows
    margin-bottom: 12px
    position: relative
    &:after
      position: absolute
      left: -8px
      bottom: 0
      right: -8px
      content: ""
      border-top: 1px solid $lightgrey

  .t2e-item-list .detailed-timetables > div,
  .t2e-item-list .detailed-purchase-windows > div,
    border-left: none
    &:after
      top: 50%
      left: 50%
      content: ""
      border: 1px solid black
      width: 20px
      height: 20px
      margin-left: -10px
      margin-top: -10px
      position: absolute
      border-radius: 20px
    &.active:after
      background: black
    &:before
      left: -8px

  // Errors
  .table-2entries .t2e-item-list
    .t2e-item
      position: relative

      .th .vj_tt
        display: inline-block
        vertical-align: top

        + .vj_tt
          margin-left: 5px

      &.has-error
        .errors
          color: $red
          font-size: 0.8em
        &:before
          content: ''
          position: absolute
          top: 0
          left: 0
          right: 0
          bottom: 0
          border: 2px solid $red

        > .th
          > div:first-child, > div:first-child + div
            color: $red

        // Reset default behaviour
        .form-control
          border-color: #ccc

.consolidated-view
  $highlighted: #d4ba32
  .togglable
    &.ready
      transition: all 0.5s
      &:not(.open)
        min-height: 0 !important
        padding: 0 !important
        margin: 0 !important
        border: none

  .line
    & > .head
      font-size: 2em
      text-transform: capitalize
      border-top: 3px solid black
      border-bottom: 3px solid black
      padding-left: 10px
      margin-top: 10px
    .routes
      .route
        background: #F9F9F9
        & > .head
          &.highlighted
            .pull-right, span.fa
              color: $highlighted !important
          a
            padding: 15px
            color: black
            font-size: 1.2em
            text-transform: capitalize
            display: block
            text-decoration: none
            &:hover
              background-color: #F0F0F0
            .fa
              color: $red
              transition: transform 0.1s
            &.active .fa
              transform: rotate(180deg)
            .pull-right
              font-size: 0.9em
              text-transform: lowercase
        .vehicle-journeys
          display: block
          overflow: hidden
          margin-bottom: 0px
          & > *
            display: inline-block
          .t2e-item-list
            overflow: scroll
            & > *
              overflow: hidden
              min-width: 0
              max-width: none
          &.open
            margin-bottom: 40px

          .highlighted
            background-color: lighten($highlighted, 20%) !important
          .disabled
            color: #bbb
          .t2e-item-list .t2e-item
            .th
              min-width: 100px
              max-width: 150px
              & > div
                text-overflow: ellipsis
                overflow: hidden
                white-space: nowrap
            .td
              text-align: center
              &:hover:after
                position: absolute
                height: 100%
                bottom: 0
                left: -10000px
                right: -10000px
                content: ""
                background-color: $red
                opacity: 0.1
                z-index: 10
              &.headlined:hover:after
                height: 50%


  .table-2entries > .t2e-head > .td > div > span::after
    bottom: -6px !important

  .table-2entries > .t2e-head > .td > div > span
    text-overflow: ellipsis
    overflow: hidden
    white-space: nowrap

  .table.table-2entries .t2e-item-list .t2e-item
    background-color: #F9F9F9

  .table.table-2entries .td > div.headlined::before
    border-right: none