forked from mongodb/docs-sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPagination.module.css
More file actions
113 lines (98 loc) · 1.79 KB
/
Pagination.module.css
File metadata and controls
113 lines (98 loc) · 1.79 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/**
* Pagination Component Styles
*
* CSS Module for the pagination component.
* Provides previous/next navigation.
*/
.pagination {
margin: 3rem 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.paginationContainer {
display: flex;
align-items: center;
gap: 2rem;
flex-wrap: wrap;
justify-content: center;
}
.pageButton {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.75rem 1.5rem;
background: #fff;
color: #0070f3;
border: 1px solid #ddd;
border-radius: 6px;
text-decoration: none;
font-weight: 500;
font-size: 0.9rem;
transition: all 0.2s ease;
min-width: fit-content;
}
.pageButton:hover:not(.disabled) {
background: #0070f3;
color: white;
border-color: #0070f3;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 112, 243, 0.2);
}
.pageButton.disabled {
background: #f5f5f5;
color: #999;
border-color: #eee;
cursor: not-allowed;
}
.pageInfo {
font-size: 1rem;
font-weight: 600;
color: #333;
padding: 0.75rem 1rem;
background: #f8f9fa;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.additionalInfo {
font-size: 0.85rem;
color: #666;
text-align: center;
}
/* Responsive Design */
@media (max-width: 768px) {
.pagination {
margin: 2rem 0;
}
.paginationContainer {
gap: 1rem;
}
.pageButton {
padding: 0.6rem 1.2rem;
font-size: 0.85rem;
}
.pageInfo {
font-size: 0.9rem;
padding: 0.6rem 0.8rem;
}
}
@media (max-width: 480px) {
.paginationContainer {
gap: 0.5rem;
width: 100%;
}
.pageButton {
flex: 1;
max-width: 120px;
padding: 0.6rem 0.8rem;
font-size: 0.8rem;
}
.pageInfo {
font-size: 0.8rem;
padding: 0.5rem 0.7rem;
}
.additionalInfo {
font-size: 0.8rem;
}
}