/** * #.# Styles * * CSS for both Frontend+Backend. */ .wp-block-sno-block-snolab-publications { .filters { margin-bottom: 2.4rem; @media only screen and (min-width:35em) { margin-bottom: 4.4rem; } .filter-title { display: block; font-weight: bold; font-size: 1.6rem; margin-bottom: 1.6rem; } .collaborators { display: flex; flex-wrap: wrap; .filter-tag { position: relative; display: inline-block; input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; &:hover, &:checked { + .label { background-color: $primary; color: white; } } &:focus { + .label { box-shadow: 0 0 0 2px rgba($color: $primary, $alpha: 1) } } } .label { display: inline-block; background-color: $primary-hl9; color: $primary; padding: 0.4rem 1rem; font-size: 1.4rem; border-radius: 0.4rem; transition: 0.1s ease all; margin-right: 0.5rem; margin-bottom: 0.2rem; @media only screen and (min-width:35em) { border-radius: 0.8rem; margin-right: 1rem; margin-bottom: 0.5rem; padding: 0.8rem 1.6rem; font-size: 1.8rem; } } } } } .labels { position: sticky; top: 9rem; padding: 0 2rem; font-size: 1.6rem; font-weight: bold; margin-bottom: 1.6rem; z-index: 5; background-color: white; @media only screen and (max-width:55em) { display: none; } .column { padding: 1rem; } &::after { content: ''; display: block; position: absolute; background-color: $light-grey; width: 100%; margin: 0 1.5rem; height: 1px; bottom: 0; left: 0; } .title { padding-left: 0; } } .publications { &.is-loading { opacity: 0.5; cursor: progress; * { pointer-events: none; } } } .load-more-button { text-align: center; a { &::after { display: none; content: none; } &.is-loading { opacity: 0.5; pointer-events: none; } &.is-done { background-color: transparent; pointer-events: none; cursor: not-allowed; border: 0; color: $grey; } } } .no-publications { max-width: initial; width: 100%; padding: 2rem 2.4rem; background-color: $light-grey; line-height: 1.2; border-radius: 0.8rem; font-size: 1.8rem; } }