members-space-shifts-exchange.css 5 KB
Newer Older
1
.shifts_exchange_page_content {
2 3
    width: 95%;
    margin: 3rem auto;
4 5
    display: flex;
    flex-direction: column;
Damien Moulard committed
6
    position: relative;
7 8
}

9 10
/* -- Suspended screen */

11
#suspended_content, #unsuscribed_content {
12 13 14 15
    align-items: center;
    text-align: center;
}

16
#shifts_exchange .select_makeups, #shifts_exchange .unsuscribed_form_link, .cant_have_delay_form_link {
17
    margin: 1.5rem 0;
18 19
}

20 21 22 23 24 25 26
/* -- Suspended can't have delay screen */

#suspended_cant_have_delay_content {
    align-items: center;
    text-align: center;
    width: 50%;
}
Damien Moulard committed
27
@media screen and (max-width:992px) {
28 29 30 31 32 33 34
    #suspended_cant_have_delay_content {
        align-items: center;
        text-align: center;
        width: 90%;
    }
}

Damien Moulard committed
35 36 37 38 39 40 41
/* -- Calendar screen, area on top of the calendar */

#calendar_top_info {
    display: flex;
    justify-content: space-between;
}

42

Damien Moulard committed
43
@media screen and (max-width:992px) {
Damien Moulard committed
44 45 46 47 48 49 50
    #calendar_top_info {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }  
}

51 52
/* -- Calendar screen, shifts list */

53 54 55
#shifts_list {
    flex-direction: column;
    display: none;
56
    max-width: 100%;
57
    white-space: nowrap;
58 59
}

Damien Moulard committed
60
@media screen and (max-width:992px) {
61 62 63 64 65
    #partner_shifts_list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
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
.shift_line_container {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.shift_line_extra_actions {
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

@media screen and (max-width:768px) {
    .shift_line_container {
        flex-direction: column;
    }

    .shift_line_extra_actions {
        width: 100%;
    }
    
    .affect_associate_registered {
        margin: 0.5rem 0;
    }
}


96
.selectable_shift_line {
Etienne Freiss committed
97
    min-width: 325px;
98 99 100 101 102 103 104 105 106
    display: flex;
    align-items: center;
    border-radius: 5px;
}

.selectable_shift_line .checkbox {
    margin-right: 10px;
}

107 108 109 110
.selectable_shift_line.btn {
    cursor: not-allowed;
}

Etienne Freiss committed
111 112 113 114 115 116
.affect_associate_registered {
    display: flex;
    align-items: center;
    border-radius: 5px;
}

117 118 119 120 121 122 123 124 125 126
@media screen and (min-width:768px) {
    .selectable_shift_line {
        margin: 0 15px;
    }

    .affect_associate_registered {
        margin-left: 15px;
    }
}

Etienne Freiss committed
127 128 129 130
.selectable_shift{
    margin: 1rem 0;
}

131 132 133 134 135 136 137 138
.delete_registration_button {
    justify-content: center;
    align-items: center;
    margin: 0.75rem 15px;
    color: #d9534f;
    cursor: pointer;
    display: none;
}
Etienne Freiss committed
139

140 141
/* -- Calendar screen, makeups message */

142 143 144 145 146
#need_to_select_makeups_message {
    display: none;
    align-self: center;
    background-color: #d9534f;
    color: white;
147
    margin: 0 1rem 2rem 1rem;
148 149 150 151 152 153 154 155
    padding: 1rem 1.25rem;
    text-align: center;
}

.makeups_warning {
    margin-right: 3px;
}

Damien Moulard committed
156
@media screen and (max-width:992px) {
157 158 159 160
    .select_makeups_message_block {
        display: block;
    }
}
161

162 163 164 165
/* -- Calendar screen, can delete registrations message */

#can_delete_future_registrations_area {
    display: none;
166 167
    justify-content: center;
    align-items: center;
168 169 170 171 172 173 174 175 176
    margin: 0 1rem 1rem 1rem;
}

#can_delete_future_registrations_area button {
    white-space: normal;
    word-break: normal;
    margin: 1rem;
}

177 178
/* -- Calendar screen, calendar */

179
#calendar {
180
    margin: 2rem 1rem;
181 182 183 184
}

.loading-calendar {
    margin: 3rem auto;
185
    display: none;
186 187
}

Damien Moulard committed
188
@media screen and (max-width:992px) {
189 190 191 192 193
    #calendar {
        display: none;
    }
}

194 195 196 197 198
.fc .fc-event {
    cursor: pointer;
    margin: 1px 10px !important;
}

199 200 201 202 203
.fc-event {
    background-color: #008AD9;
    border-color: #008AD9;
    color: white;
}
Etienne Freiss committed
204 205 206
td{
    --fc-list-event-hover-bg-color:#005BA6;
}
207

208 209 210 211 212
.fc-event.shift_booked {
    background-color: #585858;
    cursor: auto;
    border-color: #585858;
}
213 214 215
.fc-event.shift_booked td {
    --fc-list-event-hover-bg-color:#585858;
}
216 217 218 219 220

.fc-list-event.shift_booked {
    color: white;
}

Etienne Freiss committed
221 222 223 224 225 226 227 228 229 230 231 232 233
.fc-event.shift_booked_makeup {
    background-color: #f0ad4e;
    cursor: auto;
    border-color: #f0ad4e;
}
.fc-event.shift_booked_makeup td {
    --fc-list-event-hover-bg-color:#f0ad4e;
}

.fc-list-event.shift_booked_makeup {
    color: white;
}

234 235
#calendar .fc-list-table {
    table-layout: auto;
236 237 238 239 240 241 242 243 244 245 246 247 248 249
}

.resp-header-toolbar {
    display: flex;
    flex-direction: column;
}

.resp-header-toolbar .fc-toolbar-chunk {
    text-align: center;
    margin: 0.25rem;
}

.date_old_shift, .time_old_shift, .date_new_shift, .time_new_shift {
    font-weight: bold;
Damien Moulard committed
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
}

/* -- Explainations */

#calendar_explaination_area {
    max-width: 33%;
    border: 2px solid #585858;
    border-radius: 15px;
    padding: 1rem;
}

.example-event {
    max-width: 200px;
    margin: 2rem 0 0.5rem 0;
    font-size: 1.4rem !important;
    padding: 0 !important;
}

Damien Moulard committed
268
@media screen and (max-width:992px) {
Damien Moulard committed
269 270 271 272 273 274 275 276 277 278 279
    .example-event {
        margin: 2rem auto 0.5rem auto;
    }
}

.arrow_explanation_numbers {
    margin: 0 3px;
}

#calendar_explaination_button {
    max-width: 60%;
280
    margin: 2rem auto 0.5rem auto;
281 282 283 284 285 286 287 288 289 290
}

/* -- Assign shift modal */

.modal_affect_shift_buttons {
    margin: 1rem 0;
}

.assign_shift_button {
    margin: 0.25rem;
291
}