filteredListPage.less 4.15 KB
Newer Older
1
2
3
4
5
@import './colors.less';

.filtered-list {
  min-height: 100%;
  display: grid;
6
  grid-template-columns: 17em 1fr auto;
7
8

  @media @tablet {
9
    grid-template-columns: 17em 1fr;
10
11
12
13
14
15
16
17
18
19
20
21
22
  }

  @media @mobile {
    display: block;
    padding: 0;
  }

  &.no-details {
    grid-template-columns: 20% auto;
  }

  &.mobile-show-details {
    @media @mobile, @tablet {
lic's avatar
lic committed
23
      div.filter {
24
25
26
27
28
29
30
31
32
33
34
        display: none;
      }

      .content {
        display: none;
      }
    }
  }

  &.mobile-show-filter {
    @media @mobile {
lic's avatar
lic committed
35
      div.filter {
36
        display: grid;
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
      }
    }
  }

  .action-button {
    display: none;
    cursor: pointer;
    padding: .5em;
    text-align: center;
    background-color: @color-grey;
    line-height: 1.5em;
    height: 1.5em;
    z-index: 100;

    @media @mobile {
      display: block;
    }

    &:hover {
      color: @color-red;
    }

    img {
      height: 100%;
      margin-right: .5em;
    }

    span {
      vertical-align: super;
    }
  }

69
70
71
72
  .filter {
    display: grid;
    align-content: start;
    grid-gap: 20px;
73
74
    padding: 1.5em;
    overflow-y: scroll;
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98

    @media @mobile {
      display: none;
      border-bottom: 1em solid @color-grey;
      padding: 1em;
    }

    h4 {
      margin: 0;
    }

    form {
      display: grid;
      grid-row: auto auto;
    }

    .check,.drop,.radio {
      display: grid;
      grid-row: auto auto;
      grid-gap: 10px;
    }
  }

  .content {
99
    overflow-y: scroll;
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121

    @media @mobile {
      border: none;
    }

    div.list-header {
      position: sticky;
      top: 0;
      z-index: 10;
      background-color: @color-dark-blue;
      color: @color-white;
    }

    div.list-placeholder {
      display: inline-block;
      width: 100%;
      padding: 2em 0;
      text-align: center;
      background-color: @color-white;
    }

    div.list-item {
122
      overflow: hidden;
123
124
      border-bottom: 1px solid @color-grey;
      cursor: pointer;
125
126
127
      display: flex;
      flex-direction: row;
      align-items: center;
128
129
130
131

      &:last-of-type {
        border: none;
      }
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

      .list-title {
        width: 100%;
        padding: 1em .4em;
      }

      .list-title h2 {
        display: inline-block;
        margin: 0;
        padding: 0;
        font-size: 1em;
        color: #004398;
      }

      .list-title span {
        margin: .5em 1em 0 0;
        font-size: .8em;
        font-weight: 100;
        color: rgb(107, 108, 119);
      }

      .list-title div {
        display: flex;
        justify-content: space-between;
      }

      img {
        width: 25%;
160
161
        object-fit: cover;
        object-position: 0 100%;
162
      }
163
164
165
166
167
168
169
170
171
172
173
174
175
    }

    h2,h4 {
      margin: 0;
      padding: 1em;
    }
  }

  div.load-more-items {
    display: inline-block;
    width: 100%;
    padding: 1em 0;
    text-align: center;
parethe's avatar
parethe committed
176
177
    background-color: #f2f2f2;
    font-weight: bold;
178
179
180
181
182
183

    &.active {
      cursor: pointer;
    }
  }

184
185
186
187
188
189
190
191
  .details-animation {
    @media @desktop, @wide {
      max-width: 0;
      transition: max-width 350ms ease-in-out;
      overflow-x: hidden;
    }
  }

lic's avatar
lic committed
192
  .details {
Luzian Bieri's avatar
Luzian Bieri committed
193
194
    overflow-y: auto;
    overflow-x: hidden;
195

196
197
198
    @media @tablet {
      grid-column: ~'1 / 3';
    }
ilyas's avatar
ilyas committed
199

Ilya's avatar
Ilya committed
200
    a {
ilyas's avatar
ilyas committed
201
      color: #005dbe;
Ilya's avatar
Ilya committed
202
    }
ilyas's avatar
ilyas committed
203

Ilya's avatar
Ilya committed
204
205
206
207
208
209
210
    h1 {
      margin: 0;
      font-size: 1.3em;
      color: #004398;
    }

    h2 {
ilyas's avatar
ilyas committed
211
      font-size: .8em;
Ilya's avatar
Ilya committed
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
      font-weight: 100;
      color: rgb(107, 108, 119);
    }

    h3 {
      color: #004398;
      text-transform: capitalize;
    }

    ul {
      list-style-type: none;
      margin-left: 0;
      padding-left: 2em;
      text-indent: -1em;
    }

    li {
      line-height: 1.4em;
ilyas's avatar
ilyas committed
230
231
232
      padding: .4em 0;
      padding-left: 0;
      text-indent: -.4em;
Ilya's avatar
Ilya committed
233
234
235
236
237
    }

    li:before {
      content: '-';
      position: relative;
ilyas's avatar
ilyas committed
238
      left: -.5em;
Ilya's avatar
Ilya committed
239
    }
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257

    @media @mobile, @tablet {
      &.mobile-hide {
        display: none;
      }
    }
  }

  .tablet-show {
    @media @tablet {
      display: block;
      grid-column: ~'1 / 3';
      background-color: @color-white;
      border-top: 3px solid @color-white;
      border-bottom: 3px solid @color-grey;
    }
  }
}
lic's avatar
lic committed
258
259
260
261
262
263
264
265
266
267
268

.registration {
  background-color: #fff;
}

.upcoming {
  background-color: #ddd;
}

.past {
  background-color: #bbb;
269
}