repeat-task.component.scss 3.54 KB
Newer Older
Romain DELEAU's avatar
Romain DELEAU committed
1 2 3 4 5 6 7 8 9 10 11 12
.piece {
    --piece-background-color: #abbcc6;

    width: 400px;
    height: 400px;
    position: relative;
    background-color: var(--piece-background-color);
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;

    &-menu {
        position: absolute;
13
        width: 220px;
Romain DELEAU's avatar
Romain DELEAU committed
14 15 16 17
        height: 50px;
        background-color: #f7f7f7;
        z-index: -1;
        top: -50px;
Romain DELEAU's avatar
Romain DELEAU committed
18
        left: 35%;
Romain DELEAU's avatar
Romain DELEAU committed
19 20 21 22 23 24 25
        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;
26
        justify-content: space-between;
Romain DELEAU's avatar
Romain DELEAU committed
27 28 29 30 31 32 33 34 35

        mat-icon {
            cursor: pointer;
            transform: scale(1.1);
        }

        mat-icon:hover {
            opacity: 0.75;
        }
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

        &-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
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
    }

    &-menu.show {
        transform: translateX(-50%) translateY(0);
    }

    &-menu.hide {
        transform: translateX(-50%) translateY(100%);
    }

    &-attach {
        z-index: 1;

        &-left {
            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;

        label {
Romain DELEAU's avatar
Romain DELEAU committed
89
            margin-top: 10%;
Romain DELEAU's avatar
Romain DELEAU committed
90 91 92 93
            font-family: 'Glacial Indifference Bold';
            margin-bottom: 10px;
            text-align: center;
            width: 70%;
Romain DELEAU's avatar
Romain DELEAU committed
94
            font-size: 23px;
Romain DELEAU's avatar
Romain DELEAU committed
95 96 97 98 99
        }

        textarea {
            width: 80%;
            border: none;
100
            border-radius: 20px;
Romain DELEAU's avatar
Romain DELEAU committed
101 102
            resize: none;
            height: 50%;
103 104 105 106
            padding: 10px;
            background-position: center;
            background-repeat: no-repeat;
            background-size: 100px;
Romain DELEAU's avatar
Romain DELEAU committed
107
        }
Romain DELEAU's avatar
Romain DELEAU committed
108 109 110 111

        &-comment {
            transform: scale(1.2);
            position: absolute;
112
            bottom: 35px;
113
            left: 50px;
114 115 116
            background-color: white;
            padding: 4px;
            border-radius: 50%;
117 118 119 120 121
        }

        &-repeat {
            transform: scale(1.2);
            position: absolute;
122
            bottom: 35px;
123
            left: 100px;
124 125 126
            background-color: white;
            padding: 4px;
            border-radius: 50%;
127 128 129 130 131
        }

        &-character {
            transform: scale(1.2);
            position: absolute;
132
            bottom: 35px;
133
            left: 150px;
134 135
            padding: 4px;
            border-radius: 50%;
136 137 138 139 140
        }

        &-interrupt {
            transform: scale(1.2);
            position: absolute;
141
            bottom: 35px;
142
            left: 200px;
143 144 145
            background-color: white;
            padding: 4px;
            border-radius: 50%;
Romain DELEAU's avatar
Romain DELEAU committed
146
        }
Romain DELEAU's avatar
Romain DELEAU committed
147 148 149
    }
}

150
.isActive::after, .border::after {
Romain DELEAU's avatar
Romain DELEAU committed
151 152
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
Romain DELEAU's avatar
Romain DELEAU committed
153
}