@import "../variables"; @import '../mixins'; .parcours-container { background-color: rgba($background, 0.5); grid-column: 2; grid-row: 2; margin: 40px; border: 1.5px solid $border; border-radius: 3px; margin-top: 20px; overflow: auto; @include down(840){ grid-column: 1/-1; grid-row: 2; margin: 0; } } .participants-container { background-color: rgba($background, 0.5); grid-column: 1; grid-row: 2; margin: 2%; margin-top: 20px; height: max-content; min-height: 40%; border: 1.5px solid $border; margin-left: 0; @include down(840){ grid-column: 1/-1; grid-row: 3; margin: 0; } & p:not(.partCat) { margin-left: 18px !important; } & > p { &.cat-title { margin-left: 10px !important; } &.owner { font-weight: 600; } margin-left: 10px; margin-bottom: 2%; margin-top: 2%; display: flex; align-items: center; width: max-content; cursor: pointer; & span.nick:not(.isOwner) { transition: 0.1s; &:hover { text-decoration: line-through; color: $red; font-weight: 700; } } & span.admin { background-color: #2364aa; padding: 1%; border-radius: 8px; font-size: 0.8em; font-weight: 700; margin-left: 3%; } } } .nick { white-space: nowrap; } .title-form { & input { font-size: 2rem; font-family: inherit; font-weight: 700; padding: 10px 0; @include down(840){ text-align: center; } } } .head { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; @include down(840){ flex-direction: column; justify-content: center; } & > h1 { & p { margin-top: 0; } cursor: pointer; font-size: 2em; display: flex; align-items: baseline; @include down(840){ flex-direction: column; align-items: center; margin-bottom: 0; } & span { opacity: 0.8; font-size: 1.5rem; } } } .icons-container { margin: 0 40px; & svg { width: 30px; height: 30px; transition: 0.2s; vertical-align: middle; margin: 5px; cursor: pointer; &.refresh:hover { transform: rotate(360deg); } &:hover { transform: scale(1.1); } } } .exit { fill: $red; } .edit { fill: $green; } .refresh { fill: $contrast; } .full-container { min-height: 100%; display: grid; grid-template-columns: 1fr 3fr; grid-template-rows: 1fr 9fr; overflow: scroll; @include down(840){ grid-template-rows: max-content 1fr 1fr; gap: 10px; } } .no-parcours { width: 100%; text-align: center; font-style: italic; } .cat-title { font-size: 1.1em; font-weight: 900; border-bottom: 1px solid $background; margin: 4%; padding-bottom: 2%; display: flex; align-items: center; justify-content: space-between; padding: 10px; & > * { margin: 0; } & > button { padding: 0 5%; } } .parcours-item { display: flex; justify-content: space-between; padding: 3%; border-bottom: 1px solid $background; // padding: 1.5%; align-items: center; cursor: pointer; transition: 0.3s; margin: 0 10px; & > * { margin: 0; } & > div { display: flex; align-items: center; gap: 10px; & p { margin: 0; } & svg { width: 20px; height: 20px; opacity: 1; fill: $green; &:hover { transform: none; } } } & svg { opacity: 0; fill: $red; width: 20px; height: 20px; transition: 0.3s; &:hover { transform: scale(1.15); } } &:hover { background-color: rgba($contrast, 0.3); & svg { opacity: 1; } } } .parcours-btn { width: 40%; justify-content: flex-end; } .refuse { fill: $red; } .accept { fill: $green; } .accept, .refuse { width: 18px; height: 18px; transition: 0.2s; margin: 0 3px; &:hover { transform: scale(1.15); } } .code { opacity: 0.7; font-size: 0.9em; } .red-indicator, .green-indicator { width: 15px; height: 15px; display: block; border-radius: 50%; margin: 0 10px; } .red-indicator { background-color: $red; } .green-indicator { background-color: $green; } .parcours-title { display: flex; align-items: center; gap: 10px; & svg { width: 20px; height: 20px; cursor: pointer; } } .lock { cursor: pointer; width: 20px; height: 20px; } .title { cursor: text; white-space: nowrap; user-select: none; }