WowPress-Tailwind/tailwind/custom/components/buttons.css

34 lines
865 B
CSS
Raw Permalink Normal View History

2024-04-15 16:00:49 +02:00
.btn{
@apply p-3 flex flex-row items-center justify-center gap-2 border;
2024-04-17 22:10:17 +02:00
border-color: color-mix(in srgb, var(--btn-color) 80%, white);
2024-04-15 16:00:49 +02:00
background-color: var(--btn-color);
2024-04-17 22:10:17 +02:00
color: black;
2024-04-15 16:00:49 +02:00
&:hover, &.current-menu-item, &.current-page-item, &.current-menu-ancestor ,&.current-menu-parent{
@apply bg-glass;
border-color: color-mix(in srgb, var(--btn-color) 80%, black);
2024-04-17 22:10:17 +02:00
color: var(--btn-color);
2024-04-15 16:00:49 +02:00
}
}
.btn-outline{
@apply bg-glass;
border-color: var(--btn-color);
color: var(--btn-color);
&:hover, &.current-menu-item, &.current-page-item, &.current-menu-ancestor ,&.current-menu-parent{
border-color: color-mix(in srgb, var(--btn-color) 80%, white);
background-color: var(--btn-color);
color: black;
}
}
nav{
--btn-color: white;
}
.nav-btn{
@apply btn btn-outline;
}