forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_pagination.scss
More file actions
64 lines (53 loc) · 1.25 KB
/
_pagination.scss
File metadata and controls
64 lines (53 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
$component-name: pagination;
.#{$component-name} {
margin: 3rem 0;
&-number {
font-size: 1rem;
color: var(--bs-gray-600);
}
@include media-breakpoint-down(sm) {
position: relative;
margin-bottom: 3.5rem;
.page-item {
&:nth-child(2) {
.page-link {
border-top-left-radius: var(--bs-pagination-border-radius);
border-bottom-left-radius: var(--bs-pagination-border-radius);
}
}
&:nth-last-child(2) {
.page-link {
border-top-right-radius: var(--bs-pagination-border-radius);
border-bottom-right-radius: var(--bs-pagination-border-radius);
}
}
&.disabled {
.page-link {
padding-inline: 0.375rem;
}
}
&:has(.previous),
&:has(.next) {
position: absolute;
top: calc(100% + 0.5rem);
transform-origin: center;
}
&:has(.previous) {
left: 50%;
transform: translateX(calc(-100% - 0.25rem));
}
&:has(.next) {
right: 50%;
transform: translateX(calc(100% + 0.25rem));
}
}
.page-link {
padding-inline: 0.625rem;
&.previous,
&.next {
padding: 0.5rem;
border-radius: 50%;
}
}
}
}