import { Component, ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'app-info-icon', template: `
`, styles: [` :host { position: relative; display: inline-block; width: 13px; height: 13px; vertical-align: middle; } .app-info-icon { cursor: pointer; } .app-info-icon svg { fill: #bec2c9; width: 100%; height: 100%; } .app-info-icon:hover svg { fill: #7f7f7f; } .app-info-icon__popup { position: absolute; display: none; border: 1px solid #dddddd; width: auto; height: auto; min-width: 250px; bottom: 25px; left: -14px; padding: 5px 5px 0; border-radius: 3px; background-color: #ffffff; box-shadow: -1px 2px 13px -3px rgba(0,0,0,0.75); } .app-info-icon__popup:after { position: absolute; bottom: 0; transform: translateY(100%); left: 11px; display: inline-block; border-left: 8px solid transparent; border-top: 8px solid #ffffff; border-right: 8px solid transparent; content: ""; } .app-info-icon__popup:before { position: absolute; bottom: 0; transform: translateY(100%); left: 10px; display: inline-block; border-left: 9px solid transparent; border-top: 9px solid #dddddd; border-right: 9px solid transparent; content: ""; } .app-info-icon:hover .app-info-icon__popup { display: inline-block; } `], changeDetection: ChangeDetectionStrategy.OnPush }) export class InfoIconComponent { }