UNPKG

@randstad-design/orbit-multitheme

Version:

multitheme Front-end code based on Randstad Human Forward components

96 lines (91 loc) 2.64 kB
.tooltip { display: inline-block; position: relative; } .tooltip__content { font-family: Montserrat, arial, sans-serif; font-size: 12px; text-transform: none; line-height: 15px; background: #2e2e2e; border-radius: 4px; bottom: 100%; color: #fff; display: block; left: 0; opacity: 0; padding: 5px 10px 7px; position: absolute; top: auto; -webkit-transition: all 0.3s; transition: all 0.3s; visibility: hidden; width: 200px; z-index: 1; } .tooltip__content--primary { background-color: #ff661a; } @supports ((width: -webkit-max-content) or (width: -moz-max-content) or (width: max-content)) { .tooltip__content { width: -webkit-max-content; width: -moz-max-content; width: max-content; } } .tooltip__content--l { width: 250px; } .tooltip__trigger { color: #97999b; fill: #97999b; overflow: visible; position: relative; } .tooltip__trigger:hover, .tooltip__trigger:focus { color: #2e2e2e; } .tooltip__trigger:hover .tooltip__content { bottom: 110%; opacity: 1; -webkit-transition: all 0.2s; transition: all 0.2s; visibility: visible; } .tooltip__trigger:focus .tooltip__content { bottom: 140%; opacity: 1; -webkit-transition: all 0.2s; transition: all 0.2s; visibility: visible; } .tooltip__pointer { background: #2e2e2e; border-radius: 2px; bottom: -3px; content: ''; height: 10px; position: absolute; -webkit-transform: rotate(45deg); transform: rotate(45deg); width: 10px; } .tooltip__pointer--primary { background: #ff661a; } .tooltip.tooltip--left .tooltip__content { left: 0; } .tooltip.tooltip--left .tooltip__pointer { left: 10px; } .tooltip.tooltip--center .tooltip__trigger { display: inline-block; } .tooltip.tooltip--center .tooltip__trigger .tooltip__content { left: 50%; margin: 0; -webkit-transform: translateX(-50%); transform: translateX(-50%); } .tooltip.tooltip--center .tooltip__pointer { left: 50%; -webkit-transform: translateX(-50%) rotate(45deg); transform: translateX(-50%) rotate(45deg); } .tooltip.tooltip--right .tooltip__content { left: inherit; right: -5px; } .tooltip.tooltip--right .tooltip__pointer { right: 10px; } .tooltip--icon .icon--inline { top: 5px; } .tooltip--icon .tooltip__content { bottom: 110%; margin-left: -5px; } .tooltip--icon .tooltip__trigger:hover .tooltip__content { bottom: 140%; } /*# sourceMappingURL=tooltip.css.map */