1
0
зеркало из https://github.com/karl0ss/homepage.git synced 2025-11-24 12:04:29 +00:00

Merge pull request #1443 from davidsmejia/davidsmejia/fix-service-group-icons

fallback for --tw-text-opacity
Этот коммит содержится в:
shamoon 2023-05-01 15:06:30 -07:00 коммит произвёл GitHub
родитель 6867258449 1de940dd90
Коммит dcb9d9e45c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -48,7 +48,7 @@ export default function ResolvedIcon({ icon, width = 32, height = 32, alt = "log
maxWidth: '100%',
maxHeight: '100%',
background: settings.iconStyle === "theme" ?
`rgb(var(--color-${ theme === "dark" ? 300 : 900 }) / var(--tw-text-opacity))` :
`rgb(var(--color-${ theme === "dark" ? 300 : 900 }) / var(--tw-text-opacity, 1))` :
"linear-gradient(180deg, rgb(var(--color-logo-start)), rgb(var(--color-logo-stop)))",
mask: `url(${iconSource}) no-repeat center / contain`,
WebkitMask: `url(${iconSource}) no-repeat center / contain`,