mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
Migrate to Mantine v8 and Design Changes (#961)
* mantine v8 migration * various design changes and improvements
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
.control {
|
||||
color: var(--theme-btn-default-fg);
|
||||
background-color: var(--theme-btn-default-bg);
|
||||
border: none;
|
||||
transition:
|
||||
background 0.2s ease-in-out,
|
||||
color 0.2s ease-in-out;
|
||||
|
||||
&[data-active] {
|
||||
color: var(--theme-btn-primary-fg);
|
||||
background-color: var(--theme-btn-primary-bg);
|
||||
}
|
||||
|
||||
&[data-dots] {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--theme-btn-default-fg-hover);
|
||||
background-color: var(--theme-btn-default-bg-hover);
|
||||
|
||||
&[data-active] {
|
||||
color: var(--theme-btn-primary-fg-hover);
|
||||
background-color: var(--theme-btn-primary-bg-hover);
|
||||
}
|
||||
|
||||
&[data-dots] {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import {
|
||||
Pagination as MantinePagination,
|
||||
PaginationProps as MantinePaginationProps,
|
||||
} from '@mantine/core';
|
||||
|
||||
import styles from './pagination.module.css';
|
||||
|
||||
interface PaginationProps extends MantinePaginationProps {}
|
||||
|
||||
export const Pagination = ({ classNames, style, ...props }: PaginationProps) => {
|
||||
return (
|
||||
<MantinePagination
|
||||
classNames={{
|
||||
control: styles.control,
|
||||
...classNames,
|
||||
}}
|
||||
radius="xl"
|
||||
style={{
|
||||
...style,
|
||||
}}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user