.pxblock--courses { .text-button { appearance: none; text-decoration: underline; font-size: 18px; color: $green-d; transition: color $speed $easing; &:hover, &:focus { color: $orange; } } .course-filters-buttons { padding: 30px 0 50px; text-align: center; display: block; form { width: 100%; display: flex; flex-flow: row nowrap; justify-content: flex-end; align-items: center; } .btn, select { font-size: 16px; padding: 5px 15px; width: 150px; margin: 0 10px !important; height: 40px; padding-right: 50px !important; text-align: left; margin: 0px; color: $green-d; border-width: 1px; } .btn { background: #fff url(../assets/images/icon-filter.svg) no-repeat center right 20px; display: none; } select { line-height: 1; width: auto; } } .text { .btn { margin-right: 0; } } &__container { @include bp($l) { display: flex; flex-flow: row nowrap; align-items: flex-start; } } .courses-filters { @include bp($l) { flex: 0 0 300px; margin-right: 80px; } .close-filters { display: none; } .filter__heading { margin-bottom: 40px; display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: flex-end; .btn { display: none; } } #datepicker { margin-top: 10px; .air-datepicker { --adp-font-size: 16px; } .air-datepicker-nav { padding: 0; border: 0; } .air-datepicker--content { padding: 0; } .air-datepicker.-inline- { width: 100%; border: none; } .air-datepicker-body--day-name { color: $blue; } .air-datepicker-cell { margin: 2px 0; &.-in-range-, &.-selected- { background-color: $beige; color: unset; } &.-range-from- { border-radius: 20px 0 0 20px; } &.-range-to- { border-radius: 0 20px 20px 0; } } } .filter { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid $blue; &__title { position: relative; font-weight: 800; padding-right: 50px; .toggle-filter { position: absolute; top: 10px; right: 0; width: 16px; height: 14px; background: url(/wp-content/themes/thinksmall/blocks/assets/images/filter-arrow.svg) no-repeat center right; transform: rotate(180deg); cursor: pointer; &.closed { transform: rotate(0deg); } } } &__list { font-size: 16px; padding-top: 10px; overflow: hidden; .filter__show-more { font-size: 18px; margin-top: 15px; padding: 0; @include bp($m){ font-size: 21px; } } @include bp($m){ font-size: 21px; } li { + li { margin-top: 0.5rem; } display: flex; flex-flow: row nowrap; align-items: flex-start; label { margin: 0; font-size: inherit; } } } } } #toggle-advanced-filters { font-size: 18px; font-weight: 800; margin-bottom: 30px; position: relative; width: 100%; text-align: left; @include bp($l){ font-size: 24px; } .icon { display: block; width: 12px; height: 12px; position: absolute; right: 0; top: 50%; margin-top: -6px; &:before, &:after { content: ""; display: block; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: $green-d; margin-top: -1px; } &:after { transform: rotate(90deg); } } &.open { span:after { display: none; } } } .advanced-filters { display: none; } .courses { @include bp($l) { flex: 1; max-width: 75%; } .posts { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); grid-gap: 3rem 4rem; @include bp($s) { grid-template-columns: repeat(2, minmax(0, 1fr)); } @include bp($xl) { grid-template-columns: repeat(3, minmax(0, 1fr)); } > .card { display: block; margin: 0; width: auto; position: unset; .card__image { width: 100%; background-color: $beige; } } } &--load-more { display: block; margin: 0 auto; margin-top: 4rem; } } @include bpmax($l){ .text { text-align: center; margin-bottom: 0; } .course-filters-buttons { .btn { display: block; } .btn, select { margin: 0 10px; } form { align-items: center; justify-content: center; flex-flow: row nowrap; } } .courses-filters { position: fixed; top: 0; left: 0; width: 100%; padding: 60px 30px; background: #fff; z-index: 99; height: 100vh; overflow: auto; display: none; &.show { display: block; } .close-filters { display: block; width: 18px; height: 18px; position: absolute; right: 30px; top: 30px; cursor: pointer; &:before, &:after { content: ""; display: block; position: absolute; top: 50%; left: 0; width: 100%; height: 2px; background-color: $blue; margin-top: -1px; transform: rotate(45deg); } &:after { transform: rotate(-45deg); } } .filter__heading { align-items: center; .filters-title { display: none; } .btn { display: inline-block; min-width: 250px; } } } } }