💄(react) make Pagination responsive
We want to adapt the layout of Pagination to take less space when its container is too small.
This commit is contained in:
@@ -1,23 +1,42 @@
|
|||||||
|
@use "../../utils/responsive" as *;
|
||||||
|
|
||||||
.c__pagination {
|
.c__pagination {
|
||||||
|
display: flex;
|
||||||
|
gap: 2rem;
|
||||||
|
|
||||||
|
&__list {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 2rem;
|
align-items: center;
|
||||||
|
border: 1px var(--c--theme--colors--greyscale-300) solid;
|
||||||
|
border-radius: 2px;
|
||||||
|
padding: var(--c--theme--spacings--st);
|
||||||
|
background: var(--c--theme--colors--greyscale-000);
|
||||||
|
}
|
||||||
|
|
||||||
|
&__goto {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
|
||||||
|
.c__field--default {
|
||||||
|
width: 100px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include container(md) {
|
||||||
|
.c__pagination {
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
|
||||||
&__list {
|
&__list {
|
||||||
display: flex;
|
justify-content: center;
|
||||||
align-items: center;
|
height: 3.5rem;
|
||||||
border: 1px var(--c--theme--colors--greyscale-300) solid;
|
box-sizing: border-box;
|
||||||
border-radius: 2px;
|
|
||||||
padding: var(--c--theme--spacings--st);
|
|
||||||
background: var(--c--theme--colors--greyscale-000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&__goto {
|
&__goto {
|
||||||
display: flex;
|
display: none;
|
||||||
align-items: center;
|
|
||||||
gap: 0.5rem;
|
|
||||||
|
|
||||||
.c__field--default {
|
|
||||||
width: 100px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user