ScoDoc/app/static/css/partition_editor.css

639 lines
9.9 KiB
CSS
Raw Permalink Normal View History

2023-01-08 17:31:15 +01:00
html {
overflow-x: hidden;
}
2022-07-23 11:17:29 +02:00
.wait {
position: fixed;
width: 50px;
height: 10px;
background: #424242;
top: calc(50% - 50px);
left: 50%;
margin-left: -25px;
animation: wait 0.6s ease-out alternate infinite;
}
@keyframes wait {
100% {
transform: translateY(-30px) rotate(360deg)
}
}
2022-07-25 22:17:46 +02:00
@keyframes message {
20%,
80% {
transform: translate(-50%, 100%)
}
}
2022-07-26 11:14:36 +02:00
.edition {
2022-07-25 22:17:46 +02:00
background: #ddd;
border-radius: 8px;
padding: 8px 32px 8px 8px;
margin-bottom: 16px;
display: inline-block;
cursor: pointer;
2023-01-08 17:31:15 +01:00
pointer-events: none;
}
.loaded .edition {
pointer-events: initial;
}
.filtres>label {
display: none;
}
.editionActivated .valider {
display: block;
width: fit-content;
margin-left: auto;
padding: 8px 32px;
background: #90c;
color: #fff;
box-shadow: 0 2px 2px rgb(0, 0, 0, 0.25);
border-radius: 4px;
cursor: pointer;
2022-07-25 22:17:46 +02:00
}
2022-07-23 11:17:29 +02:00
main {
font-family: Verdana, Geneva, Tahoma, sans-serif;
display: flex;
flex-wrap: wrap;
2023-01-08 17:31:15 +01:00
gap: 8px;
2022-08-14 17:11:34 +02:00
margin-right: 16px;
2023-01-08 17:31:15 +01:00
padding: 8px;
border-radius: 12px;
background: #717171;
2022-07-23 11:17:29 +02:00
}
main h2 {
border-bottom: 4px solid #09c;
2023-01-08 17:31:15 +01:00
font-size: 150% !important;
2022-07-23 11:17:29 +02:00
}
main h2,
main h3 {
font-weight: 400;
}
2023-01-08 17:31:15 +01:00
section {
background: #dbccb8;
2023-01-08 17:31:15 +01:00
padding: 8px;
border-radius: 8px;
}
2022-07-24 21:52:26 +02:00
body:not(.editionActivated) .editing {
2023-01-08 17:31:15 +01:00
display: none;
2022-07-24 21:52:26 +02:00
}
2023-01-08 17:31:15 +01:00
.nonEditable .editing {
display: none;
}
2023-01-08 17:31:15 +01:00
.editionActivated #zoneChoix,
.editionActivated #zoneGroupes {
2022-07-24 21:52:26 +02:00
pointer-events: none;
opacity: 0.2;
}
.highlight {
animation: boing 0.12s alternate;
animation-iteration-count: 4;
display: inline-block;
}
@keyframes boing {
2023-01-08 17:31:15 +01:00
100% {
2023-07-22 22:40:09 +02:00
transform: translateY(-20px);
2023-01-08 17:31:15 +01:00
}
2022-07-24 21:52:26 +02:00
}
/****************/
.ajoutPartition,
.ajoutGroupe {
background: #0c9 !important;
padding: 8px 16px !important;
cursor: pointer;
2023-01-08 17:31:15 +01:00
color: #fff;
box-shadow: 0 2px 2px rgb(0, 0, 0, 0.25);
border-radius: 4px;
text-align: center;
margin-bottom: 4px;
width: fit-content;
2022-07-24 21:52:26 +02:00
}
.move,
.modif,
.suppr {
color: #000;
2023-01-08 17:31:15 +01:00
padding: 0 4px;
2022-07-24 21:52:26 +02:00
cursor: pointer;
}
.move {
cursor: grab;
2022-07-25 22:17:46 +02:00
letter-spacing: -2px;
margin-right: 4px;
2022-07-24 21:52:26 +02:00
}
.move:active {
cursor: grabbing;
}
body.editionActivated .filtres>div>div>div>div {
padding: 8px 16px;
position: relative;
}
.editingText {
background: #FFF;
color: #000;
border-radius: 4px;
outline: 4px solid #FFF;
2023-07-22 22:40:09 +02:00
padding: 2px;
2022-07-24 21:52:26 +02:00
}
/* Suppression */
.confirm {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 100;
background: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
align-items: center;
}
.confirm span {
color: #09c;
}
.confirm>div {
background: #FFF;
margin: 32px;
padding: 32px 64px;
border-radius: 8px;
text-align: center;
}
.confirm>div>div {
display: flex;
gap: 32px;
justify-content: center;
}
.confirm>div>div>div {
padding: 16px 32px;
border-radius: 8px;
color: #FFF;
cursor: pointer;
}
.confirm .ok {
background: #0c9;
}
.confirm .nok {
background: #c44;
}
/* Déplacements */
.moving {
opacity: 0.8;
pointer-events: none;
}
.grabbing>.hidenDropZone {
pointer-events: auto !important;
}
.grabbing>div[data-idpartition]:not([data-idgroupe]):hover:before,
.grabbing>.hidenDropZone:hover:before {
2023-01-08 17:31:15 +01:00
content: "";
position: absolute;
left: -4px !important;
right: -4px !important;
bottom: calc(100% + 1px) !important;
height: 2px !important;
width: auto !important;
2023-01-08 17:31:15 +01:00
background: #c44;
animation: insertPartion 0.2s infinite alternate ease-in-out !important;
2023-01-08 17:31:15 +01:00
}
@keyframes insertPartion {
0% {
transform: translateX(-4px)
}
100% {
transform: translateX(4px)
}
}
.grabbing>*:not([data-idgroupe="aucun"]):hover:before {
2022-07-24 21:52:26 +02:00
content: "";
position: absolute;
bottom: -4px;
top: -4px;
right: calc(100% + 1px);
width: 2px;
background: #c44;
2023-01-08 17:31:15 +01:00
animation: insertGroupe 0.2s infinite alternate ease-in-out;
2022-07-24 21:52:26 +02:00
}
2023-01-08 17:31:15 +01:00
@keyframes insertGroupe {
2022-07-24 21:52:26 +02:00
0% {
transform: translateY(-4px)
}
100% {
transform: translateY(4px)
}
}
2022-07-23 11:17:29 +02:00
/*****************************/
2023-01-08 17:31:15 +01:00
/* Zone Filtres */
2022-07-23 11:17:29 +02:00
/*****************************/
2022-08-14 17:11:34 +02:00
#zonePartitions {
width: 100%;
}
2023-01-08 17:31:15 +01:00
#zonePartitions>div {
width: fit-content;
2022-08-14 17:11:34 +02:00
}
#zonePartitions h3 {
2023-01-08 17:31:15 +01:00
display: flex;
}
#zonePartitions h3 .onoff {
2023-01-08 17:31:15 +01:00
margin-left: auto;
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
font-size: 16px;
padding-left: 8px;
padding-right: 2px;
2023-01-08 17:31:15 +01:00
}
#zonePartitions .filtres {
width: fit-content;
position: relative;
2023-01-08 17:31:15 +01:00
}
#zonePartitions .filtres>div {
background: #eee;
2022-07-23 11:17:29 +02:00
padding: 8px;
border-radius: 8px;
margin-bottom: 8px;
2023-01-08 17:31:15 +01:00
position: relative;
2023-02-15 21:27:00 +01:00
display: grid;
grid-template-columns: 1fr auto;
}
#zonePartitions .filtres .config {
grid-row: 1 / span 2;
grid-column: 2 / 3;
background: #424242;
color: #fff;
border-radius: 4px;
margin-left: 4px;
padding: 4px;
display: none;
}
#zonePartitions span.editing a {
text-decoration: none;
}
2023-02-15 21:27:00 +01:00
.editionActivated #zonePartitions .filtres .config {
display: block;
}
#zonePartitions .filtres .config label {
2023-02-15 21:27:00 +01:00
display: block;
background: #ddd;
border-radius: 4px;
padding: 2px;
color: #000;
margin-top: 2px;
cursor: pointer;
2022-07-23 11:17:29 +02:00
}
2023-01-08 17:31:15 +01:00
#zonePartitions .filtres .groupes {
2022-07-23 11:17:29 +02:00
display: flex;
flex-wrap: wrap;
gap: 4px;
row-gap: 2px;
2023-01-08 17:31:15 +01:00
margin: 4px 0 0 0;
2022-07-23 11:17:29 +02:00
}
#zonePartitions .filtres .groupes>button {
transition: none;
position: relative;
overflow: visible;
outline: none;
border: none;
2023-12-28 22:43:35 +01:00
text-shadow: none !important;
}
#zonePartitions .filtres .hidenDropZone {
height: 100px;
position: absolute;
left: 0;
right: 0;
pointer-events: none;
background: transparent;
}
2023-01-08 17:31:15 +01:00
#zonePartitions .filtres .groupes>div {
position: relative;
2022-07-23 11:17:29 +02:00
background: #09c;
color: #FFF;
border-radius: 4px;
padding: 8px 32px;
2023-01-08 17:31:15 +01:00
margin: 0;
2022-07-23 11:17:29 +02:00
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
2022-07-24 21:52:26 +02:00
}
2023-12-28 22:43:35 +01:00
#zonePartitions .filtres .actif {
background: #0c9;
border-radius: 6px;
}
2023-01-08 17:31:15 +01:00
body:not(.editionActivated) .filtres .groupes>div {
2022-07-23 11:17:29 +02:00
cursor: pointer;
}
2023-01-08 17:31:15 +01:00
body:not(.editionActivated) .filtres .groupes>div:hover {
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6) !important;
2022-07-23 11:17:29 +02:00
}
2023-01-08 17:31:15 +01:00
body:not(.editionActivated) .filtres .groupes>div:active {
box-shadow: 0 0 0 #000 !important;
2022-07-23 11:17:29 +02:00
transform: translateY(2px);
}
body.editionActivated .filtres [data-idgroupe=aucun] {
display: none !important;
2023-01-08 17:31:15 +01:00
}
body.editionActivated .filtres .nonEditable .move {
2023-01-08 17:31:15 +01:00
display: initial;
}
2022-07-23 11:17:29 +02:00
.groupe:has(.etudiants:empty) {
2023-07-22 22:40:09 +02:00
display: none;
}
/* .filtres .unselect {
2023-01-08 20:39:26 +01:00
background: rgba(0, 153, 204, 0.5) !important;
} */
2022-07-23 11:17:29 +02:00
2022-08-14 17:11:34 +02:00
/*****************************/
/* Zone Etudiants */
/*****************************/
2023-07-24 21:24:44 +02:00
#zoneChoix summary{
margin: 0 0 16px;
cursor: pointer;
}
2023-07-22 22:40:09 +02:00
#zoneChoix .autoAffectation>a {
text-decoration: underline;
}
#zoneChoix .dropZone {
background: #FFF;
border-radius: 8px;
border: 2px dashed #09C;
margin-bottom: 4px;
padding: 4px;
transition: 0.2s;
}
.fileOver {
transform: scale(0.9);
}
2023-07-24 21:24:44 +02:00
#zoneChoix .autoAffectation {
background: #c9c9c9;
color: #141414;
2023-01-08 17:31:15 +01:00
padding: 4px 8px;
margin-bottom: 16px;
border-radius: 4px;
2023-07-31 19:57:47 +02:00
position: relative;
2023-01-08 17:31:15 +01:00
}
2023-07-24 21:24:44 +02:00
#zoneChoix .autoAffectation>select {
2023-01-08 17:31:15 +01:00
border: none;
2023-01-08 20:39:26 +01:00
padding: 4px;
2023-01-08 17:31:15 +01:00
border-radius: 4px;
}
2023-07-24 21:24:44 +02:00
#zoneChoix .autoAffectation>.affectationGo {
2023-01-08 17:31:15 +01:00
display: inline-block;
background: #0c9;
padding: 8px 16px;
cursor: pointer;
color: #fff;
box-shadow: 0 2px 2px rgb(0 0 0 / 25%);
border-radius: 4px;
text-align: center;
margin-top: 4px;
margin-bottom: 4px;
width: fit-content;
2023-01-08 17:31:15 +01:00
}
2023-07-31 19:57:47 +02:00
#zoneChoix .autoAffectation .progress {
position: absolute;
top: 100%;
left: 0;
right: 0;
height: 4px;
background: #717171;
}
#zoneChoix .autoAffectation .progress>div {
position: absolute;
top: 0;
left: 0;
width: calc(100% * var(--nombre) / var(--reference));
bottom: 0;
background: #0c9;
}
2022-07-23 11:17:29 +02:00
#zoneChoix .etudiants>div {
background: #FFF;
border: 1px solid #aaa;
border-radius: 4px;
padding: 4px 8px;
2023-01-08 17:31:15 +01:00
margin: -1px 0;
2022-07-23 11:17:29 +02:00
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 8px;
}
#zoneChoix .etudiants .nom {
flex: 1;
}
#zoneChoix a {
color: #000;
text-decoration: none;
}
#zoneChoix a:hover {
text-decoration: underline;
color: #09c;
}
2023-01-08 17:31:15 +01:00
#zoneChoix .small {
2022-07-23 11:17:29 +02:00
color: #444;
2023-01-08 17:31:15 +01:00
font-size: 8px;
2022-07-23 11:17:29 +02:00
font-style: italic;
}
2023-01-08 17:31:15 +01:00
#zoneChoix .etudiants .grpPartitions {
display: flex;
flex-direction: column;
gap: 2px;
}
2022-07-23 11:17:29 +02:00
#zoneChoix .etudiants .partition {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
#zoneChoix label {
cursor: pointer;
2022-07-24 00:18:32 +02:00
display: flex;
align-items: center;
}
#zoneChoix span.aucun {
font-size: 10px;
background: #ddd;
2022-07-23 11:17:29 +02:00
}
#zoneChoix .etudiants .partition>div,
#zoneChoix .etudiants .partition span {
display: block;
padding: 4px 8px;
border: 1px solid #aaa;
border-radius: 4px;
}
#zoneChoix .etudiants .partition input {
display: none;
}
#zoneChoix .etudiants .partition input:checked:not([value=aucun])+span {
background: rgb(165, 6, 59);
border-color: rgb(165, 6, 59);
2022-07-23 11:17:29 +02:00
color: #fff;
}
#zoneChoix .etudiants .partition>:nth-child(1) {
background: #09c;
border-color: #09c;
color: #fff;
}
2023-01-08 17:31:15 +01:00
section:not(#zonePartitions) .hide {
2022-07-23 11:17:29 +02:00
display: none !important;
}
#zonePartitions .hide {
2023-01-08 17:31:15 +01:00
opacity: 0.4;
}
2022-07-23 11:17:29 +02:00
.saved+span {
position: relative;
}
.saving+span {
outline: 2px solid orange;
}
.saved+span::before {
content: '✔️';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.5);
border-radius: 4px;
}
/*****************************/
/* Zone Groupes */
/*****************************/
#zoneGroupes {
flex: 1;
}
2023-01-08 17:31:15 +01:00
#zoneGroupes h3 {
width: 100%;
2022-07-23 11:17:29 +02:00
}
#zoneGroupes .partition {
background: #ddd;
padding: 8px;
border-radius: 8px;
display: flex;
2023-01-08 17:31:15 +01:00
flex-wrap: wrap;
2022-07-23 11:17:29 +02:00
gap: 8px;
2023-01-08 17:31:15 +01:00
margin-bottom: 8px;
2022-07-23 11:17:29 +02:00
}
h3 {
margin: 0;
}
#zoneGroupes .groupe {
background: #FFF;
border-radius: 8px;
}
#zoneGroupes .groupe>div {
padding: 8px 16px;
}
#zoneGroupes .groupe>div:nth-child(1) {
color: #09c;
border-bottom: 1px solid #aaa;
}
#zoneGroupes .etudiants {
counter-reset: cpt;
}
#zoneGroupes .etudiants>*::before {
counter-increment: cpt;
content: counter(cpt) " - ";
}
#zoneGroupes [data-idgroupe=aucun] {
background: #453f3b !important;
2023-01-08 17:31:15 +01:00
color: #fff;
}
#zoneGroupes .groupe[data-idgroupe=aucun]>div:nth-child(1) {
color: red;
}
2023-12-29 02:48:23 +01:00
#zonePartitions button span.editing:not(:first-child) {
margin-left: 8px;
}