UNPKG

@randstad-design/orbit-multitheme

Version:

multitheme Front-end code based on Randstad Human Forward components

357 lines (328 loc) 12.8 kB
.popover { opacity: 0; pointer-events: none; position: absolute; -webkit-transform: translateY(-5px); transform: translateY(-5px); -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: hidden; width: 100%; z-index: 3; } .popover::before { border-radius: 4px; content: ''; height: 25px; position: absolute; right: 60px; top: -5px; -webkit-transform: rotate(45deg); transform: rotate(45deg); -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; width: 25px; } .popover--arrow-right::before { right: 35px; } .popover--arrow-center::before { left: 47%; } .popover--arrow-left::before { left: 35px; } .popover__dialog { max-height: 0; padding: 20px 25px 30px; -webkit-transition: max-height 0s 0.2s; transition: max-height 0s 0.2s; } .popover--active { opacity: 1; pointer-events: auto; -webkit-transform: translateY(0); transform: translateY(0); visibility: visible; } .popover--active .popover__dialog { max-height: 600px; -webkit-transition: max-height 0s 0s; transition: max-height 0s 0s; } .popover__title { font-size: 26px; letter-spacing: -1px; line-height: 30px; } .popover__title + .body-copy { margin-top: 20px; } .popover__message { margin-top: 10px; } .popover__message p:last-child { margin: 0; } .popover__description, .popover__description p { margin-bottom: 20px; } .popover__action { -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; margin-top: 30px; } .popover__action.divider { padding-bottom: 30px; } .popover__action .button { margin-left: 0; margin-right: 0; } .popover__action .button + .button { margin-top: 10px; } .popover__footer { margin-top: 20px; } .popover__footer p { margin-bottom: 0; } .popover__footer--link { display: block; text-align: center; } .popover .form-group { margin-top: 30px; } .popover .form-group__input + .form-group__input { margin-top: 10px; } .popover .person-profile { -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; } .popover .person-profile__profile { margin-left: 15px; -webkit-box-flex: 2; -webkit-flex-grow: 2; -ms-flex-positive: 2; flex-grow: 2; } .popover .person-profile__eyebrow { font-size: 12px; letter-spacing: 0; line-height: 15px; display: block; } .popover .link-list { margin-top: 20px; } .popover .link-list.divider { padding-bottom: 30px; } .popover .link-list__item { border: none; margin-top: 15px; width: 100%; } .popover .link-list__item:first-child { border-top: none; margin-top: 0; } .popover .link-list__link { font-size: 18px; letter-spacing: 0; line-height: 30px; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; padding: 0; } .popover .link-list__link .icon { margin-right: 15px; } @media (min-width: 501px) and (max-width: 940px) { .popover::before { right: 80px; } } @media (min-width: 501px) { .popover { border-radius: 8px; width: 385px; } .popover__dialog { border-radius: 8px; padding: 30px; } } .popover--s { font-size: 16px; letter-spacing: 0; line-height: 25px; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: start; -webkit-justify-content: flex-start; -ms-flex-pack: start; justify-content: flex-start; position: relative; } .popover--s .icon__toggler { height: 20px; } .popover--s .icon { cursor: pointer; display: inline-block; position: relative; } .popover--s .popover { border-width: 1px; border-style: solid; max-width: 400px; min-width: 100px; position: absolute; text-align: left; top: 25px; width: auto; } .popover--s .popover::before { display: none; } .popover--s .popover .popover__dialog { padding: 10px 0; } .popover--s .popover .popover__dialog li a { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2175d9; display: block; padding: 5px 15px; text-decoration: none; } .popover--s .popover .popover__dialog li a:hover { background: #ecf3fc; } .popover--s.align-center { -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; margin: 0 auto; } .popover--s.align-right { -webkit-box-pack: end; -webkit-justify-content: flex-end; -ms-flex-pack: end; justify-content: flex-end; } .bg-variant-brand-tertiary.popover::before { background: var(--color-brand-tertiary); } .bg-variant-brand-tertiary.popover .list--checks li:before { background-color: var(--color-brand-primary); } .bg-variant-brand-tertiary.popover .link-list__link { color: var(--color-brand-secondary); } .bg-variant-brand-tertiary.popover .link-list__link:hover { color: var(--color-brand-secondary); } .bg-variant-brand-tertiary.popover .link-list__link .icon { color: var(--color-brand-secondary-tint-80); } .bg-variant-brand-tertiary.popover .divider { border-color: var(--color-gray-20); } .bg-variant-brand-tertiary.popover a { color: var(--color-brand-secondary); } .bg-variant-brand-tertiary.popover a:hover { color: var(--color-brand-secondary); } .bg-variant-brand-tertiary.popover .button.button--filled { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--color-white); } .bg-variant-brand-tertiary.popover .button.button--filled .icon svg { fill: var(--color-white); } .bg-variant-brand-tertiary.popover .button.button--filled:hover, .bg-variant-brand-tertiary.popover .button.button--filled:focus { background-color: var(--color-brand-primary-tint-80); color: var(--color-white); border-color: var(--color-brand-primary-tint-80); } .bg-variant-brand-tertiary.popover .button.button--filled:hover .icon svg, .bg-variant-brand-tertiary.popover .button.button--filled:focus .icon svg { fill: var(--color-white); } .bg-variant-brand-tertiary.popover .button.button--filled:active { background-color: var(--color-brand-primary-shade-130); color: var(--color-white); border-color: var(--color-brand-primary-shade-130); } .bg-variant-brand-tertiary.popover .button.button--filled:active .icon svg { fill: var(--color-white); } .bg-variant-brand-tertiary.popover .button:not(.button--filled) { border-color: var(--color-brand-secondary); color: var(--color-brand-secondary); } .bg-variant-brand-tertiary.popover .button:not(.button--filled) .icon svg { fill: var(--color-brand-secondary); } .bg-variant-brand-tertiary.popover .button:not(.button--filled):hover, .bg-variant-brand-tertiary.popover .button:not(.button--filled):focus { background-color: var(--color-brand-secondary); color: var(--color-white); } .bg-variant-brand-tertiary.popover .button:not(.button--filled):hover .icon svg, .bg-variant-brand-tertiary.popover .button:not(.button--filled):focus .icon svg { fill: var(--color-white); } .bg-variant-brand-tertiary.popover .button:not(.button--filled):active { background-color: var(--color-brand-secondary-shade-180); color: var(--color-white); border-color: var(--color-brand-secondary-shade-180); } .bg-variant-brand-tertiary.popover .button:not(.button--filled):active .icon svg { fill: var(--color-white); } .bg-variant-brand-tertiary.popover .text--emphasis { color: var(--color-brand-primary); } .bg-variant-white.popover::before { background: var(--color-white); } .bg-variant-white.popover .list--checks li:before { background-color: var(--color-brand-primary); } .bg-variant-white.popover .link-list__link { color: var(--color-brand-primary); } .bg-variant-white.popover .link-list__link:hover { color: var(--color-brand-primary); } .bg-variant-white.popover .link-list__link .icon { color: var(--color-brand-secondary-tint-60); } .bg-variant-white.popover .divider { border-color: var(--color-gray-20); } .bg-variant-white.popover a { color: var(--color-brand-primary); } .bg-variant-white.popover a:hover { color: var(--color-brand-primary); } .bg-variant-white.popover .button.button--filled { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--color-white); } .bg-variant-white.popover .button.button--filled .icon svg { fill: var(--color-white); } .bg-variant-white.popover .button.button--filled:hover, .bg-variant-white.popover .button.button--filled:focus { background-color: var(--color-brand-primary-tint-80); color: var(--color-white); border-color: var(--color-brand-primary-tint-80); } .bg-variant-white.popover .button.button--filled:hover .icon svg, .bg-variant-white.popover .button.button--filled:focus .icon svg { fill: var(--color-white); } .bg-variant-white.popover .button.button--filled:active { background-color: var(--color-brand-primary-shade-130); color: var(--color-white); border-color: var(--color-brand-primary-shade-130); } .bg-variant-white.popover .button.button--filled:active .icon svg { fill: var(--color-white); } .bg-variant-white.popover .button:not(.button--filled) { border-color: var(--color-brand-primary); color: var(--color-brand-primary); } .bg-variant-white.popover .button:not(.button--filled) .icon svg { fill: var(--color-brand-primary); } .bg-variant-white.popover .button:not(.button--filled):hover, .bg-variant-white.popover .button:not(.button--filled):focus { background-color: var(--color-brand-primary); color: var(--color-white); } .bg-variant-white.popover .button:not(.button--filled):hover .icon svg, .bg-variant-white.popover .button:not(.button--filled):focus .icon svg { fill: var(--color-white); } .bg-variant-white.popover .button:not(.button--filled):active { background-color: var(--color-brand-primary-shade-130); color: var(--color-white); border-color: var(--color-brand-primary-shade-130); } .bg-variant-white.popover .button:not(.button--filled):active .icon svg { fill: var(--color-white); } .bg-variant-white.popover .text--emphasis { color: var(--color-brand-primary); } .popover, .popover::before { background: var(--color-brand-tertiary); } .popover__title { color: var(--color-brand-secondary); } .popover .link-list__link { color: var(--color-brand-primary); } .popover--s .popover { border-color: var(--color-brand-tertiary-tint-80); } .popover .text--emphasis { color: var(--color-brand-primary); } .bg-brand--dark-blue .popover .list--checks li::before, .bg-brand--blue .popover .list--checks li::before, .bg-brand--turquoise .popover .list--checks li::before, .bg-brand--red .popover .list--checks li::before, .bg-brand--yellow .popover .list--checks li::before { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='20' height='20' fill='%232175d9'%3E%3Cpath d='M7.6472,15.999 C7.3972,15.999 7.1462,15.905 6.9532,15.719 L1.3052,10.265 C0.9082,9.881 0.8972,9.247 1.2802,8.851 C1.6652,8.454 2.2982,8.441 2.6942,8.825 L7.6472,13.608 L17.3052,4.279 C17.7022,3.898 18.3362,3.907 18.7192,4.305 C19.1022,4.701 19.0912,5.335 18.6942,5.719 L8.3412,15.719 C8.1482,15.905 7.8972,15.999 7.6472,15.999'/%3E%3C/svg%3E%0A"); } /*# sourceMappingURL=popover.css.map */