UNPKG

trustlabs-sdk

Version:

Easy-to-use SDK for displaying trust verification badges on websites. Supports React, Vue, vanilla JS, and CDN usage.

53 lines (47 loc) 1.04 kB
.trust-badge { display: inline-block; margin-left: 6px; padding: 2px 6px; font-size: 12px; background: transparent; border-radius: 8px; position: relative; cursor: default; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.2; vertical-align: middle; } .trust-badge .tooltip { display: none; position: absolute; top: 120%; left: 0; background: #fff; border: 1px solid #ccc; padding: 4px 8px; font-size: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.1); white-space: nowrap; border-radius: 4px; z-index: 1000; min-width: 120px; } .trust-badge:hover .tooltip { display: block; } /* Animation for loading state */ .trust-badge.loading { opacity: 0.6; animation: pulse 1.5s ease-in-out infinite; } @keyframes pulse { 0% { opacity: 0.6; } 50% { opacity: 1; } 100% { opacity: 0.6; } } /* Error state */ .trust-badge.error { background: #fff3e0; color: #ef6c00; font-style: italic; }