@randstad-design/orbit-multitheme
Version:
multitheme Front-end code based on Randstad Human Forward components
270 lines (231 loc) • 7.38 kB
CSS
.selector-box {
max-height: 0;
opacity: 0;
pointer-events: none;
-webkit-transform: translateY(-5px);
transform: translateY(-5px);
visibility: hidden; }
.selector-box--active {
background: currentColor;
border-radius: 8px;
border: 1px solid;
color: #fff;
margin-top: 15px;
max-height: 180px;
opacity: 1;
padding: 15px 0;
pointer-events: auto;
position: absolute;
-webkit-transform: translateY(0);
transform: translateY(0);
-webkit-transition: opacity 0.2s, visibility 0.2s, -webkit-transform 0.2s;
transition: opacity 0.2s, visibility 0.2s, -webkit-transform 0.2s;
transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
transition: opacity 0.2s, visibility 0.2s, transform 0.2s, -webkit-transform 0.2s;
visibility: visible;
width: 100%;
z-index: 6; }
.selector-box--active.selector-box--header {
font-size: 18px;
letter-spacing: 0;
line-height: 30px;
border: none;
color: #f7f5f0;
padding: 20px 0;
width: 100%; }
@media (min-width: 941px) {
.selector-box--active.selector-box--header {
font-size: 26px;
letter-spacing: -1px;
line-height: 30px; } }
.selector-box--active.selector-box--header .selector-box__pointer {
border: none; }
.selector-box--active.selector-box--header .selector-box__pointer:after {
content: none; }
@media (min-width: 941px) {
.selector-box--active.selector-box--header {
margin-top: 21px;
max-height: 250px; }
.selector-box--active.selector-box--header .selector-box__list {
max-height: 190px;
padding: 0 30px; }
.selector-box--active.selector-box--header .selector-box__item {
padding: 10px 0; } }
.selector-box__pointer {
background: currentColor;
border-radius: 4px;
border: 1px solid;
display: block;
height: 26px;
position: absolute;
top: -6px;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
width: 26px; }
.selector-box__pointer:after {
background-color: #fff;
content: '';
height: 25px;
left: -4px;
position: absolute;
top: 4px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
width: 40px; }
.selector-box__list {
-webkit-overflow-scrolling: touch;
border-radius: 4px;
max-height: 135px;
overflow-y: scroll;
padding: 0 20px;
-webkit-transition: max-height 0s ease;
transition: max-height 0s ease; }
.selector-box__item {
padding: 5px 0; }
a.selector-box__option {
text-decoration: none;
-webkit-transition: color 0.2s;
transition: color 0.2s; }
a.selector-box__option:hover {
text-decoration: none; }
.selector-box-trigger .icon {
-webkit-transition: -webkit-transform 0.2s;
transition: -webkit-transform 0.2s;
transition: transform 0.2s;
transition: transform 0.2s, -webkit-transform 0.2s;
-webkit-transform-origin: center;
transform-origin: center; }
.selector__dropdown--active .icon {
-webkit-transform: rotate(180deg);
transform: rotate(180deg); }
.bg-brand--off-white .selector__content--active {
color: #fff; }
.bg-brand--dark-blue .selector__option:hover,
.bg-brand--blue .selector__option:hover,
.bg-brand--off-white .selector__option:hover {
color: #2175d9; }
.bg-brand--red .selector__option:hover {
color: #e74536; }
.bg-brand--turquoise .selector__option:hover {
color: #6ba5b4; }
.bg-brand--yellow .selector__option:hover {
color: #ffb511; }
.bg-brand--yellow .content-block .selector__option.selector__option {
color: #0f1941; }
.bg-brand--yellow .content-block .selector__option.selector__option:hover {
color: #ffb511; }
.bg-brand--yellow .selector__dropdown--active.text-ellipsis {
opacity: 1; }
.bg-brand--off-white .selector__dropdown--active.text-ellipsis {
opacity: 1; }
a.selector-box__option {
color: var(--color-brand-secondary-alpha-70); }
a.selector-box__option:hover {
color: var(--color-brand-secondary); }
.selector-box--active {
border-color: var(--color-brand-tertiary-tint-80); }
.selector-box__pointer {
border-color: var(--color-brand-tertiary-tint-80); }
.header--selector .header__content {
z-index: initial; }
.header--selector .content-block__title {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap; }
.header--selector .modal__overlay {
z-index: 5; }
.selector__title {
margin-right: 10px; }
.selector__dropdown {
cursor: pointer;
display: block;
height: 40px;
padding-right: 20px;
z-index: 100;
position: relative; }
@media (min-width: 941px) {
.selector__dropdown {
padding-right: 40px; } }
.selector__dropdown .icon {
color: currentColor;
-webkit-flex-shrink: 0;
-ms-flex-negative: 0;
flex-shrink: 0;
-webkit-transition: -webkit-transform 0.2s;
transition: -webkit-transform 0.2s;
transition: transform 0.2s;
transition: transform 0.2s, -webkit-transform 0.2s;
-webkit-transform-origin: center;
transform-origin: center;
position: absolute;
top: calc(50% + 4px);
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
right: 0; }
@media (min-width: 941px) {
.selector__dropdown .icon {
top: calc(50% + 8px); } }
.selector__dropdown--active {
z-index: 6; }
.selector__dropdown--active .icon {
-webkit-transform: rotate(180deg) translateY(50%);
transform: rotate(180deg) translateY(50%); }
.selector__dropdown--active.text-ellipsis {
opacity: 0.7; }
.selector__dropdown svg {
fill: currentColor; }
.selector__text {
font-size: 32px;
letter-spacing: -1px;
line-height: 40px;
padding-right: 10px;
position: relative; }
@media (min-width: 941px) {
.selector__text {
font-size: 60px;
letter-spacing: -3px;
line-height: 60px; } }
@media (min-width: 941px) {
.header--selector .content-block__description {
margin-top: 15px; }
.header--selector .media-block:not(.media-block--full-width) img {
left: 50%;
-webkit-transform: translateX(-50%);
transform: translateX(-50%); }
.selector__title {
margin-right: 15px; }
.selector__dropdown {
height: 65px; } }
.bg-brand--off-white .selector__content--active {
color: #fff; }
.bg-brand--dark-blue .selector__option:hover,
.bg-brand--blue .selector__option:hover,
.bg-brand--off-white .selector__option:hover {
color: #2175d9; }
.bg-brand--red .selector__option:hover {
color: #e74536; }
.bg-brand--turquoise .selector__option:hover {
color: #6ba5b4; }
.bg-brand--yellow .selector__option:hover {
color: #ffb511; }
.bg-brand--yellow .content-block .selector__option.selector__option {
color: #0f1941; }
.bg-brand--yellow .content-block .selector__option.selector__option:hover {
color: #ffb511; }
.bg-brand--yellow .selector__dropdown--active.text-ellipsis {
opacity: 1; }
.bg-brand--off-white .selector__dropdown--active.text-ellipsis {
opacity: 1; }
a.selector-box__option {
color: var(--color-brand-secondary-alpha-70); }
a.selector-box__option:hover {
color: var(--color-brand-secondary); }
.selector-box--active {
border-color: var(--color-brand-tertiary-tint-80); }
.selector-box__pointer {
border-color: var(--color-brand-tertiary-tint-80); }
/*# sourceMappingURL=selector.css.map */