aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/stylesheets/modules/_jp_collection.sass
blob: 46ea3fb6ef8636ad8de798e5d35ed879c06f264a (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
//-----------------//
//  JP Collection  //
//-----------------//

#journey_patterns
  .table-2entries
    .t2e-head
      > .td
        position: relative
        padding-left: 25px

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

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

          > span
            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%

    .t2e-head > .td:nth-child(2) > div,
    .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

  .table-2entries
    .t2e-item-list
      .td
        overflow: hidden

      .t2e-item
        position: relative

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

          + .vj_tt
            margin-left: 5px

        &.with-costs
          .td
            padding: 15px 8px

          .totals
            color: $blue
            padding-top: 4px
            margin-left: -5px
            margin-right: -5px
            span
              white-space: nowrap
              padding: 0 5px
            i
              padding-right: 3px

          $link-size: 10px
          .link
            position: absolute
            left: 50px
            width: 10px
            top: -15px
            bottom: -15px
            background: $blue
            z-index: 3
            opacity: 0.5
            &:after
              content: ""
              width: $link-size
              height: $link-size
              position: absolute
              top: 50%
              bottom: 50%
              margin-top: -$link-size/2
              border-top: $link-size/2 solid transparent
              border-left: $link-size/2 solid transparent
              border-right: $link-size/2 solid $blue
              border-bottom: $link-size/2 solid $blue
              transform: rotate(135deg)
              left: 0%
              opacity: 0
              transition: left 0.2s, opacity 0.2s

          .headlined .link
            top: 0
            bottom: -15px

            &:after
              top: 75%
              margin-top: -$link-size/2 - 1px

          .activated .link
            &:after
              left: -50%
              opacity: 1

          & > div
            position: relative

          .link
            left: 35px

          .has_radio
            margin-right: 150px

          .costs
            background: $blue
            opacity: 0.5
            padding: 5px
            color: white
            position: absolute
            cursor: not-allowed
            left: 75px
            top: -1px
            transform: translateY(-50%)
            font-size: 0.75em
            transition: background 0.1s
            border: 1px solid white

            &:hover
              opacity: 1
              &:after
                opacity: 1

            &:after
              opacity: 0.5
              content: ""
              height: 2px
              position: absolute
              left: -23px
              background: $blue
              right: 100%
              top: 50%
              transition: background 0.1s

            p
              display: block
              border: none
              margin-bottom: 0
              i
                margin-right: 3px
                width: 12px
              & + p
                position: relative
                z-index: 2
                padding-right: 0
                margin: 0
                border-right: none

              input
                display: inline-block
                width: 50px
                border: none
                margin-right: 5px
                color: black

        .edit-mode
          .costs
            cursor: pointer
            p
              margin-bottom: 5px
              & + p
                margin-bottom: 0

            opacity: 1
            &:after
              opacity: 1

          .link
            opacity: 1

        .with-headline + .costs
          top: 25%

        .deactivated .costs
          display: none

        &.has-error
          &: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

    .t2e-head
      .td.with-costs
        & > div
          &:not(.headlined)
            height: calc(100% + 6px)
          & > span
            &:after
              top: -15px
              bottom: -9px

        div.headlined
          &:before
            margin-bottom: 0
          & > span
            height: calc(100% - (1.4em + 15px))
            &:after
              top: calc((1.4em + 30px) * -1)
              bottom: 0

    .td.with-costs, .with-costs .td
      padding-top: 15px
      padding-bottom: 15px

      & > div
        height: calc(100% + 15px)
        &.headlined
          &:before
            padding-top: 15px
            padding-bottom: 15px
            height: calc(1.4em + 30px)
            margin-top: -15px
            margin-bottom: 15px