pager styles jsx to css
This commit is contained in:
1 parent
0ba0d74ea7
commit
4bf3b55557
2 files changed
+13
-14
No files matched your search
@@ -1,3 +1,5 @@
|
|||||||
|
import './styles.css'
|
||||||
|
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
|
||||||
const text = ['↑', '↓']
|
const text = ['↑', '↓']
|
||||||
@@ -14,20 +16,8 @@ export type PagerProps = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const Pager: React.FC<PagerProps> = ({ url, position }) => (
|
export const Pager: React.FC<PagerProps> = ({ url, position }) => (
|
||||||
<div>
|
<div className={'pager'}>
|
||||||
<style jsx>{`
|
<span className={'pager icon'}>
|
||||||
div {
|
|
||||||
text-align: center;
|
|
||||||
margin-top: var(--size-m);
|
|
||||||
margin-bottom: var(--size-m);
|
|
||||||
}
|
|
||||||
|
|
||||||
span {
|
|
||||||
margin: 0 var(--size-s);
|
|
||||||
}
|
|
||||||
`}</style>
|
|
||||||
|
|
||||||
<span>
|
|
||||||
{text[i(position)]}
|
{text[i(position)]}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
.pager {
|
||||||
|
text-align: center;
|
||||||
|
margin-top: var(--size-m);
|
||||||
|
margin-bottom: var(--size-m);
|
||||||
|
}
|
||||||
|
|
||||||
|
.pager .icon {
|
||||||
|
margin: 0 var(--size-s);
|
||||||
|
}
|
||||||
Reference in new issue
Block a user