86 lines
1.8 KiB
CSS
86 lines
1.8 KiB
CSS
.provider-container {
|
||
display: flex;
|
||
gap: 16px;
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
margin: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.provider-container a {
|
||
display: inline-block;
|
||
text-align: center;
|
||
transition: transform 0.3s ease-in-out, filter 0.3s ease;
|
||
border-radius: 50%;
|
||
padding: 8px;
|
||
}
|
||
|
||
.provider-icon {
|
||
object-fit: contain;
|
||
user-select: none;
|
||
cursor: pointer;
|
||
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease, filter 0.3s ease;
|
||
border-radius: 50%;
|
||
}
|
||
|
||
.provider-container a:hover .provider-icon {
|
||
transform: scale(1.1); /* Slight zoom-in effect on hover */
|
||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Adding shadow for effect */
|
||
}
|
||
|
||
.provider-container .provider-item.disabled {
|
||
pointer-events: none; /* Disables click */
|
||
opacity: 0.5; /* Dims the icon to indicate it is disabled */
|
||
}
|
||
|
||
.provider-container .provider-item.disabled .provider-icon {
|
||
filter: grayscale(100%) contrast(100%); /* Desaturates image if disabled */
|
||
}
|
||
|
||
.provider-item {
|
||
width: 48px;
|
||
height: 48px;
|
||
position: relative;
|
||
}
|
||
|
||
.provider-item.provider-unlink {
|
||
filter: grayscale(50%) contrast(60%);
|
||
transition: filter 0.3s ease;
|
||
}
|
||
|
||
.provider-item.provider-unlink:hover {
|
||
filter: grayscale(0%) contrast(100%);
|
||
}
|
||
|
||
.provider-item.provider-unlink::after {
|
||
content: '×';
|
||
position: absolute;
|
||
top: 10%;
|
||
left: 90%;
|
||
transform: translate(-100%, 0%) scale(0.0);
|
||
font-size: 24px;
|
||
color: white;
|
||
background-color: red;
|
||
width: 24px;
|
||
height: 24px;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
border-radius: 50%;
|
||
cursor: pointer;
|
||
|
||
transition: transform 0.15s ease;
|
||
}
|
||
|
||
.provider-item.provider-unlink:hover::after {
|
||
transform: translate(-50%, -50%) scale(1.0);
|
||
}
|
||
|
||
.provider-item .provider-spinner {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform: translate(-50%, -50%) scale(1.0);
|
||
border-radius: 50%;
|
||
}
|