| | |
| | | <slot /> |
| | | </div> |
| | | </div> |
| | | <!-- eslint-disable-next-line --> |
| | | <div :style="{backgroundImage: `url(${image})`}" class="pan-thumb"></div> |
| | | <img :src="image" class="pan-thumb"> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | .pan-thumb { |
| | | width: 100%; |
| | | height: 100%; |
| | | background-position: center center; |
| | | background-size: cover; |
| | | background-size: 100%; |
| | | border-radius: 50%; |
| | | overflow: hidden; |
| | | position: absolute; |
| | |
| | | transition: all 0.3s ease-in-out; |
| | | } |
| | | |
| | | /* .pan-thumb:after { |
| | | .pan-thumb:after { |
| | | content: ''; |
| | | width: 8px; |
| | | height: 8px; |
| | |
| | | margin: -4px 0 0 -4px; |
| | | background: radial-gradient(ellipse at center, rgba(14, 14, 14, 1) 0%, rgba(125, 126, 125, 1) 100%); |
| | | box-shadow: 0 0 1px rgba(255, 255, 255, 0.9); |
| | | } */ |
| | | } |
| | | |
| | | .pan-info { |
| | | position: absolute; |