.studip-selection { display: flex; flex-direction: row; flex-wrap: wrap; // General list item styles and placeholders ul, li { list-style: none; margin: 0; padding: 0; } li { display: inline-block; vertical-align: top; } li:not(.empty-placeholder) { color: var(--color--highlight); cursor: pointer; margin: 1px 0; padding-right: 0.5em; } li.empty-placeholder { color: var(--color--font-secondary); &:not(:only-child) { display: none; } } .studip-selection-selectable li.empty-placeholder { color: var(--text-color); padding-left: 20px; position: relative; @include icon(before, info-circle, info); &::before { position: absolute; left: 0; top: 3px; } } // Selected and selectable lists .studip-selection-image { img { transition: opacity var(--transition-duration); } display: inline-block; vertical-align: top; width: $avatar-small; } .studip-selection-selected .studip-selection-label { @include icon(before, radiobutton-checked, $padding: 5px, $align: top); } .studip-selection-selectable .studip-selection-label { @include icon(before, radiobutton-unchecked, $padding: 5px, $align: top); } .studip-selection-image + .studip-selection-label { &::before { display: none; } } .studip-selection-selected li:hover { .studip-selection-label { @include icon(before, remove-circle-full, $padding: 5px, $align: top); } } .studip-selection-selectable li:hover { .studip-selection-label { @include icon(before, add-circle-full, $padding: 5px, $align: top); } } .studip-selection-selected, .studip-selection-selectable { flex: 1 1 300px; padding-top: 0; position: relative; h2 { margin-top: 0; } li:hover { .studip-selection-image { background-position: center; background-repeat: no-repeat; background-size: contain; position: absolute; img { opacity: 0; } } .studip-selection-label { color: var(--color--highlight-hover); } } } }