task.component.scss 13.5 KB
Newer Older
Romain DELEAU's avatar
Romain DELEAU committed
1 2 3 4 5 6 7
.piece {
    --piece-background-color: #b9dfe3;

    width: 400px;
    height: 400px;
    position: relative;

Romain DELEAU's avatar
Romain DELEAU committed
8 9
    &-menu {
        position: absolute;
Romain DELEAU's avatar
Romain DELEAU committed
10
        width: 260px;
Romain DELEAU's avatar
Romain DELEAU committed
11 12 13
        height: 50px;
        background-color: #f7f7f7;
        z-index: -1;
Romain DELEAU's avatar
Romain DELEAU committed
14
        top: -50px;
Romain DELEAU's avatar
Romain DELEAU committed
15 16 17 18 19 20 21 22
        left: 50%;
        transform: translateX(-50%);
        transition: transform 0.5s ease;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        border: solid black 1px;
        display: flex;
        padding: 15px 20px 15px 20px;
23
        justify-content: space-between;
24

Romain DELEAU's avatar
Romain DELEAU committed
25 26 27 28
        mat-icon {
            cursor: pointer;
            transform: scale(1.1);
        }
29

Romain DELEAU's avatar
Romain DELEAU committed
30 31 32
        mat-icon:hover {
            opacity: 0.75;
        }
Romain DELEAU's avatar
Romain DELEAU committed
33 34 35 36 37 38 39 40 41

        &-changeMenuButton {
            border-radius: 10px;
            margin-bottom: 5px;
        }

        &-changeMenuButton:hover {
            opacity: 0.75;
        }
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59

        &-directioncross {
            display: flex;
            flex-direction: row;

            &-updownarrows {
                display: flex;
                flex-direction: column;
                position: relative;
                top: -10px;

                &-down {
                    position: relative;
                    top: -8px;
                }
            }            
        }

Romain DELEAU's avatar
Romain DELEAU committed
60
    }
61

Romain DELEAU's avatar
Romain DELEAU committed
62 63 64
    &-menu.show {
        transform: translateX(-50%) translateY(0);
    }
65

Romain DELEAU's avatar
Romain DELEAU committed
66 67 68 69
    &-menu.hide {
        transform: translateX(-50%) translateY(100%);
    }

Romain DELEAU's avatar
Romain DELEAU committed
70 71 72 73 74 75 76 77
    &-symbolchoice {
        position: absolute;
        background-color: #f7f7f7;
        width: 300px;
        height: 100px;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        border: solid black 1px;
Romain DELEAU's avatar
Romain DELEAU committed
78
        border-left: none;
Romain DELEAU's avatar
Romain DELEAU committed
79 80 81 82 83
        padding: 10px;
        right: 0;
        top: 5px;
        z-index: -1;
        transition: transform 0.5s ease;
84

Romain DELEAU's avatar
Romain DELEAU committed
85 86 87
        label {
            font-size: 14px;
        }
88

Romain DELEAU's avatar
Romain DELEAU committed
89 90 91 92
        mat-icon {
            cursor: pointer;
            transform: scale(1.2);
        }
93

Romain DELEAU's avatar
Romain DELEAU committed
94 95 96 97
        mat-icon:hover {
            opacity: 0.75;
        }

98 99 100 101 102
        mat-icon.disable {
            opacity: 0.2;
            cursor: not-allowed;
        }

103 104 105 106 107 108
        &-header {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }

Romain DELEAU's avatar
Romain DELEAU committed
109 110 111 112 113 114 115
        &-symbols {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            margin-top: 10px;
        }
    }
116

Romain DELEAU's avatar
Romain DELEAU committed
117 118 119 120
    &-symbolchoice.show {
        transform: translateX(100%);
    }

Romain DELEAU's avatar
Romain DELEAU committed
121 122 123 124 125 126
    &-prerequires {
        position: absolute;
        width: 350px;
        height: 150px;
        background-color: #f7f7f7;
        z-index: -1;
Romain DELEAU's avatar
Romain DELEAU committed
127
        bottom: 10px;
Romain DELEAU's avatar
Romain DELEAU committed
128
        right: 0;
Romain DELEAU's avatar
Romain DELEAU committed
129
        border: solid black 1px;
Romain DELEAU's avatar
Romain DELEAU committed
130
        border-top-right-radius: 10px;
Romain DELEAU's avatar
Romain DELEAU committed
131 132
        border-bottom-right-radius: 10px;
        transition: transform 0.5s ease;
Romain DELEAU's avatar
Romain DELEAU committed
133
        border-left: none;
Romain DELEAU's avatar
Romain DELEAU committed
134 135
        display: flex;
        flex-direction: row;
Romain DELEAU's avatar
Romain DELEAU committed
136
        padding-left: 2px;
Romain DELEAU's avatar
Romain DELEAU committed
137 138 139 140 141

        &-title {
            margin-left: auto;
            margin-right: auto;
            font-family: 'Glacial Indifference Bold';
142
            font-size: 13px;
Romain DELEAU's avatar
Romain DELEAU committed
143
        }
144

Romain DELEAU's avatar
Romain DELEAU committed
145 146 147
        &-form {
            display: flex;
            flex-direction: column;
Romain DELEAU's avatar
Romain DELEAU committed
148 149
            overflow-x: hidden;
            overflow-y: auto;
Romain DELEAU's avatar
Romain DELEAU committed
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
        }

        &-prerequires {
            position: relative;
            border-right: solid #a3a3a3 1px;
            top: 50%;
            transform: translateY(-50%);
            width: 50%;
            height: 90%;
            display: flex;
            flex-direction: column;
        }

        &-ressources {
            width: 50%;
            height: 90%;
            border-bottom-right-radius: 10px;
            position: relative;
            top: 50%;
            transform: translateY(-50%);
            border-bottom-left-radius: 10px;
            display: flex;
            flex-direction: column;

            &-element {
                display: flex;
                flex-direction: row;
                margin-top: 5px;
178

Romain DELEAU's avatar
Romain DELEAU committed
179 180 181 182 183 184 185 186 187 188 189 190
                &-checkbox {
                    position: relative;
                    width: 50%;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                }

                &-quantity {
                    position: relative;
                    width: 50%;
                    display: flex;
Romain DELEAU's avatar
Romain DELEAU committed
191
                    margin-right: 10px;
Romain DELEAU's avatar
Romain DELEAU committed
192
                    justify-content: flex-end;
193

Romain DELEAU's avatar
Romain DELEAU committed
194 195 196 197 198 199
                    input {
                        width: 20px;
                        border: none;
                        border-radius: 10px;
                        text-align: center;
                    }
200

Romain DELEAU's avatar
Romain DELEAU committed
201 202 203 204 205 206 207 208 209 210 211
                    select {
                        width: 40px;
                        background-color: white;
                        border: none;
                        border-radius: 10px;
                        margin-right: 5px;
                    }
                }
            }
        }
    }
212

Romain DELEAU's avatar
Romain DELEAU committed
213
    &-prerequires.show {
Romain DELEAU's avatar
Romain DELEAU committed
214
        transform: translateX(100%);
Romain DELEAU's avatar
Romain DELEAU committed
215 216
    }

Romain DELEAU's avatar
Romain DELEAU committed
217 218
    &-attach {
        z-index: 1;
219

220
        &-right {
Romain DELEAU's avatar
Romain DELEAU committed
221 222 223 224 225 226 227 228 229 230
            border-top: solid black 1px;
            border-right: solid black 1px;
            width: 40px;
            height: 40px;
            transform: translateY(-50%) rotate(45deg);
            position: absolute;
            right: -20px;
            top: 200px;
        }

231
        &-left {
Romain DELEAU's avatar
Romain DELEAU committed
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251
            border-top: solid black 1px;
            border-right: solid black 1px;
            width: 40px;
            height: 40px;
            background-color: var(--background-color);
            transform: translateY(-50%) rotate(45deg);
            position: absolute;
            left: -20px;
            top: 200px;
        }
    }

    &-form {
        height: 100%;
        padding: 0px 10px 0px 35px;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        z-index: 2;
252

Romain DELEAU's avatar
Romain DELEAU committed
253 254 255 256 257 258
        input {
            height: 40px;
            border-radius: 10px;
            border: none;
            padding: 5px 10px 5px 10px;
        }
259

Romain DELEAU's avatar
Romain DELEAU committed
260 261 262 263 264 265
        textarea {
            border-radius: 20px;
            padding: 10px;
            border: none;
            resize: none;
            flex-grow: 1;
266 267
            background-position: center;
            background-repeat: no-repeat;
268
            background-size: 100px;
Romain DELEAU's avatar
Romain DELEAU committed
269
        }
270

Romain DELEAU's avatar
Romain DELEAU committed
271 272 273 274 275 276 277
        select {
            background-color: white;
            border: none;
            height: 50px;
            border-radius: 10px;
            padding: 5px 10px 5px 10px;
        }
278

Romain DELEAU's avatar
Romain DELEAU committed
279 280 281 282
        &-top {
            margin-top: 20px;
            display: flex;
            flex-direction: row;
283

Romain DELEAU's avatar
Romain DELEAU committed
284 285
            &-identifier {
                width: 50px;
Romain DELEAU's avatar
Romain DELEAU committed
286
                text-align: center;
Romain DELEAU's avatar
Romain DELEAU committed
287
            }
288

Romain DELEAU's avatar
Romain DELEAU committed
289 290
            &-title {
                font-size: 25px;
291
                font-family: 'Glacial Indifference Bold';
292 293
                position: relative;
                margin-left: 10px;
Romain DELEAU's avatar
Romain DELEAU committed
294
            }
295

Romain DELEAU's avatar
Romain DELEAU committed
296 297 298
            &-comment {
                transform: scale(1.2);
                position: absolute;
299
                top: 8px;
300
                right: 100px;
301 302 303
                border-radius: 50%;
                background-color: white;
                padding: 4px;
304 305 306 307 308
            }

            &-repeat {
                transform: scale(1.2);
                position: absolute;
309
                top: 42px;
310
                right: 100px;
311 312 313
                border-radius: 50%;
                background-color: white;
                padding: 4px;
314 315 316 317 318 319 320 321 322 323

                &-off {
                    height: 3px;
                    width: 35px;
                    background-color: black;
                    top: 57px;
                    right: 99px;
                    position: absolute;
                    transform: rotateZ(45deg);
                }
Romain DELEAU's avatar
Romain DELEAU committed
324 325
            }

Romain DELEAU's avatar
Romain DELEAU committed
326 327
            &-symbol {
                width: 50px;
328
                height: 50px;
Romain DELEAU's avatar
Romain DELEAU committed
329 330
                background-color: white;
                border-radius: 10px;
Romain DELEAU's avatar
Romain DELEAU committed
331
                cursor: pointer;
332 333
                position: absolute;
                right: 10px;
334

Romain DELEAU's avatar
Romain DELEAU committed
335
                mat-icon {
336
                    transform: scale(1.3);
Romain DELEAU's avatar
Romain DELEAU committed
337 338 339
                    overflow: visible;
                }
            }
Romain DELEAU's avatar
Romain DELEAU committed
340
        }
341

Romain DELEAU's avatar
Romain DELEAU committed
342 343 344 345
        &-content {
            margin-top: 10px;
            height: 100%;
            margin-bottom: 10px;
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 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 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

            &-unity {
                display: flex;
                flex-direction: column;
                max-width: 355px;

                select {
                    width: 80%;
                    height: 35px;
                }

                input {
                    width: 74%;
                    height: 25px;
                }

                textarea {
                    flex-grow: 0;
                    width: 74%;
                    border-radius: 10px;
                    height: 40px;
                }

                &-type, &-typeContent {
                    display: flex;
                    justify-content: space-between;

                }

                &-typeContent {
                    height: 109px;
                    margin-top: 2px;
                    margin-bottom: 5px;
                    overflow-y: auto;
                    justify-content: right;

                    &-button {
                        background-color: white;
                        width: 64px;
                        height: 35px;
                        margin-right: 5px;
                        border-radius: 10px;

                        &-add {
                            position: relative;
                            left: 100%;
                            transform: translateX(-100%);
                        }
                    }

                    &-getObject, &-depositObject, &-combineObjects-element-object, &-exchangeObjects-element-object {
                        width: 80%;
                        display: flex;
                        justify-content: space-between;

                        input {
                            width: 10%;
                        }
                    }

                    &-character, &-talkWithRole, &-askToSeeRole, &-other {
                        display:  flex;
                        justify-content: right;
                        width: 100%;
                    }

                    &-combineObjects, &-exchangeObjects {
                        display: flex;
                        flex-direction: column;


                        &-element {
                            display: flex;
                            justify-content: right;

                        }
                    }

                    &-exchangeObjects {

                        &-give {
                            padding-bottom: 2px;
                            border-bottom: solid 1px black;
                        }

                        &-receive {
                            padding-top: 2px;
                            display: flex;
                            flex-direction: column;
                        }
                    }

                    &-interactObject {
                        display: flex;
                        flex-direction: column;
                        justify-content: right;
                        width: 100%;

                        &-select {
                            display: flex;
                            justify-content: right;
                            margin-bottom: 2px;
                        }

                        &-name {
                            display: flex;
                            justify-content: right;
                        }
                    }
                }

                &-infos {
                    display: flex;
                    flex-direction: column;

                    &-name, &-desc {
                        display: flex;
                        justify-content: space-between;
                        width: 100%;
                    }

                    &-name {
                        margin-bottom: 2px;
                    }
                }
            }
Romain DELEAU's avatar
Romain DELEAU committed
472
        }
473

Romain DELEAU's avatar
Romain DELEAU committed
474 475 476
        &-bottom {
            display: flex;
            flex-direction: row;
Romain DELEAU's avatar
Romain DELEAU committed
477
            margin-bottom: 10px;
Romain DELEAU's avatar
Romain DELEAU committed
478
            justify-content: space-between;
479

Romain DELEAU's avatar
Romain DELEAU committed
480
            &-duration {
481 482
                display: flex;

Romain DELEAU's avatar
Romain DELEAU committed
483 484 485
                input {
                    border-top-right-radius: 0px;
                    border-bottom-right-radius: 0px;
Romain DELEAU's avatar
Romain DELEAU committed
486
                    width: 50px;
Romain DELEAU's avatar
Romain DELEAU committed
487
                    text-align: center;
Romain DELEAU's avatar
Romain DELEAU committed
488 489
                    z-index: 2;
                }
490

Romain DELEAU's avatar
Romain DELEAU committed
491
                select {
Romain DELEAU's avatar
Romain DELEAU committed
492
                    width: 86px;
Romain DELEAU's avatar
Romain DELEAU committed
493 494 495 496 497
                    border-top-left-radius: 0px;
                    border-bottom-left-radius: 0px;
                    z-index: 1;
                }
            }
498

Romain DELEAU's avatar
Romain DELEAU committed
499 500 501 502 503 504 505 506 507 508
            &-prerequires {
                width: 100px;
                height: 50px;
                background-color: white;
                border-radius: 10px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
            }
509 510 511 512

            &-interrupt {
                transform: scale(1.2);
                position: absolute;
513
                right: 120px;
514
                bottom: 25px;
515 516 517
                border-radius: 50%;
                background-color: white;
                padding: 4px;
518 519 520 521 522
            }

            &-character {
                transform: scale(1.2);
                position: absolute;
523
                right: 165px;
524
                bottom: 25px;
525 526
                border-radius: 50%;
                padding: 4px;
527
            }
Romain DELEAU's avatar
Romain DELEAU committed
528 529 530
        }
    }
}