Newer
Older
@import '../base/color';
@import '../base/breakpoint';
// ChallengeCardContainer
.ccc-root {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem 1.5rem;
.ccc-content {
min-height: 9rem;
width: 45.75rem;
@media #{$large-phone} {
width: 100%;
}
.ccc-header {
margin-top: 0.375rem;
margin-bottom: 1.25rem;
color: $text-bright;
}
}
}
.loc-root {
display: flex;
justify-content: center;
.loc-content {
width: 100%;
max-width: 53rem;
display: grid;
@media #{$large-phone} {
display: block;
}
.timeline-line {
background-color: $text-bright;
width: 1px;
margin-left: 3.8rem;
@media #{$tablet} {
height: calc(100vh - 229px);
}
display: block;
position: fixed;
}
}
.list-of-challenge-cards {
padding-top: 1rem;
width: 100%;
grid-column: 1;
grid-row: 1;
@media #{$large-phone} {
display: block;
}
}
}
}
// ChallengeListItem
.cli-link {
color: black;
text-decoration: none;
}
.cli {
cursor: pointer;
display: flex;
flex-direction: row;
@media #{$large-phone} {
margin: 1rem 0.5rem;
}
&.cli-available {
background: $blue-gradient;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
&.cli-ongoing {
border: 1px solid $blue;
background: $dark-light-2;
-webkit-transform: translateZ(0);
transform: translateZ(0);
}
.cli-left {
flex: 1;
display: flex;
flex-direction: column;
padding-left: 1.415rem;
.cli-content {
display: flex;
flex-direction: row;
.cli-content-icon {
margin: 0.5rem 0;
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
}
.cli-content-title {
color: $text-white;
margin: 0 1rem;
align-self: center;
}
.subtitle-finished {
color: $text-dark;
}
.title-finished {
color: $text-bright;
}
.subtitle-ongoing {
color: $text-blue;
}
.title-ongoing {
color: $text-white;
}
.subtitle-available {
color: $dark-light-2;
}
.title-available {
color: $dark-light-2;
}
.title-locked {
color: $text-dark;
opacity: 0.35;
}
}
}
.cli-right {
align-self: center;
padding-right: 1.2rem;
&.cli-right-ongoing {
padding-right: calc(1.2rem + 2px);
}
&.cli-right-available {
padding-right: calc(1.2rem + 2px);
}
}
}
// ChallengeCard
.cc-link {
color: black;
text-decoration: none;
}
.cc {
cursor: pointer;
display: flex;
flex-direction: row;
margin: 0.25rem 0.25rem;
width: 100%;
.cc-content-left {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
width: inherit;
.cc-content-title {
color: $text-white;
&.cc-content-title-padding {
padding-top: 1rem;
}
}
.cc-content-progress {
margin-top: 1rem;
}
.cc-content-timeline {
padding: 0 0.5rem;
}
.cc-content-visu {
padding: 1rem 0;
}
}
.cc-content-right {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
align-self: center;
.cc-notification {
display: flex;
align-items: center;
justify-content: center;
height: 1.8125rem;
width: 1.8125rem;
border-radius: 50%;
background: $blue-radial-gradient;
color: $text-black;
margin-right: 1rem;
}
}
}
// ChallengePage
.cm-content {
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
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
width: 22.125rem;
@media #{$large-phone} {
width: 90%;
}
.win {
background: rgb(238, 213, 130);
background: Linear-gradient(
90deg,
#bf723b 0%,
#dd9a2b 26.04%,
#f6d74c 45.31%,
#d1880d 75%,
#a05b11 100%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.defeat {
background: rgb(238, 213, 130);
background: Linear-gradient(
90deg,
#a66340 0%,
#ae5f38 33.33%,
#9e4e24 51.56%,
#a4573a 66.67%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.cm-title {
text-align: center;
}
.cm-win-badge-star {
display: grid;
align-items: center;
justify-items: center;
Romain CREY
committed
top: 65px;
}
&.--ecolyo-royal {
@extend .cp-content;
top: -38px;
@media #{$large-phone} {
top: 12px;
}
}
.cm-win-badge {
grid-column: 1;
grid-row: 1;
z-index: 1;
}
.cm-win-star {
grid-column: 1;
grid-row: 1;
}
}
.cm-result {
color: $text-bright;
text-align: center;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
margin-bottom: 165px;
.cm-result-positif {
color: $green-2;
}
.cm-result-negatif {
color: $red-no-data;
}
}
top: 135px;
@media #{$large-phone} {
top: 142px;
}
}
.cm-button-valid {
margin-top: 1rem;
width: 100%;
}
.cm-txt {
text-align: center;
margin-bottom: 1rem;
width: 100%;
}
.cm-text-new-available {
margin-top: 1.25rem;
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
321
}
}
// FollowChallengeTimeLine
.list-of-days-duration {
display: flex;
flex-direction: row;
justify-content: center;
margin-top: 1rem;
width: 100%;
.day-solo {
display: flex;
flex-direction: column;
width: 100%;
.day-line-label {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
width: 100%;
.date-dash {
width: 50%;
height: 2px;
background-color: $grey-dark;
}
.past {
background-color: $blue;
}
.futur {
background-color: $grey-dark;
}
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
.date-label {
width: 0.625rem;
height: 0.625rem;
border-radius: 50%;
position: absolute;
}
}
.day-letter {
margin-top: 0.8rem;
text-align: center;
color: $text-dark;
}
.day-date {
margin-top: 0.2rem;
text-align: center;
color: $text-dark;
}
}
}
// OngoingChallengeFirstViewingDate
.view-start-date {
padding: 0.25rem 0;
color: $blue;
}
// OngoingChallengePile
.pile-energy-follow {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
.pile-section {
display: grid;
.filter-pile {
grid-column: 1;
grid-row: 1;
justify-self: flex-end;
align-self: center;
width: 0%;
position: relative;
right: 0;
opacity: 0.8;
background-color: $dark-light-2;
z-index: 1;
}
.pile-icon {
grid-column: 1;
grid-row: 1;
margin: -25px 0;
}
}
.max-energy {
color: $grey-dark;
}
.values-section {
margin-left: 1rem;
}
}
}
// ChallengeDetailsViewContainer
.ongoing-challenge {
min-height: 620px;
}
.cp-root {
width: 100%;
.cp-content {
display: flex;
align-items: center;
flex-direction: column;
color: $text-bright;
justify-content: space-between;
&.--locked {
@extend .cp-content;
justify-content: center;
}
.cp-info {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
background-color: $dark-light-2;
width: 100%;
&.--available {
@extend .cp-info;
height: 74vh;
}
.cp-win-badge-star {
display: grid;
align-items: center;
justify-items: center;
.cp-win-badge {
grid-column: 1;
grid-row: 1;
z-index: 1;
}
.cp-win-star {
grid-column: 1;
grid-row: 1;
}
}
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
.cp-date {
color: $text-dark;
text-align: center;
margin-top: 1rem;
}
.cp-title {
color: $text-bright;
text-align: center;
margin-top: 0.5rem;
}
.cp-result {
color: $text-bright;
text-align: center;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
.cp-result-positif {
color: $green-2;
}
.cp-result-negatif {
color: $red-no-data;
}
}
.cp-description {
text-align: center;
margin-top: 1rem;
margin-bottom: 0.5rem;
margin-left: 1.25rem;
margin-right: 1.25rem;
max-width: 53rem;
}
.cp-valid {
justify-content: center;
display: flex;
flex-direction: row;
width: 90%;
margin-top: 0.75rem;
max-width: 53rem;
&.--ongoing {
@extend .cp-valid;
width: 60%;
}
width: 100%;
}
.cp-right-button {
margin-left: 0.25rem;
width: 100%;
}
}
}
.cp-follow {
width: 90%;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 1rem;
max-width: 53rem;
}
.cp-valid-locked {
margin-top: 2rem;
width: 80%;
max-width: 53rem;
}
.cp-bottom {
padding: 1.25rem 1.25rem;
width: 90%;
display: flex;
flex-direction: column;
justify-content: space-between;
max-width: 53rem;
margin-bottom: 2rem;
@media #{$large-phone} {
margin-bottom: 0;
}