Skip to content

Commit 476a236

Browse files
author
Caio Tarifa
committed
display of pagination component (#16)
1 parent 2ae4a6d commit 476a236

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

app/assets/stylesheets/formadmin/components/_pagination.scss

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
margin-bottom: 20px;
33
}
44

5-
.paginated_collection_contents {
6-
@include clearfix;
7-
}
8-
95
#index_footer {
106
margin-top: 20px;
117
}
@@ -20,32 +16,21 @@
2016
// Information
2117
.pagination_information {
2218
color: rgba($text-color, 0.75);
23-
float: right;
2419

2520
b {
2621
color: $text-color;
2722
}
2823
}
2924

3025
// Per Page
31-
.pagination_per_page {
32-
float: right;
33-
margin-left: 20px;
34-
35-
select {
36-
padding: 1px 5px;
37-
}
38-
}
39-
40-
// Download Links
41-
.download_links {
42-
float: left;
26+
.pagination_per_page select {
27+
padding: 1px 5px;
4328
}
4429

4530
// Pagination
4631
.pagination {
4732
font-weight: bold;
48-
margin: 0 0 -20px 20px;
33+
margin: 0 auto;
4934
text-align: center;
5035
text-transform: uppercase;
5136

@@ -60,7 +45,7 @@
6045
padding: 6px 10px 5px;
6146
text-decoration: none;
6247
transition: background-color 250ms;
63-
margin: 0 1px;
48+
margin: 0 1px 4px;
6449
}
6550

6651
a:not(.current):hover {
@@ -77,13 +62,29 @@
7762

7863
// Medias
7964
@media #{$largest-phone-screen} {
80-
.pagination,
65+
.pagination {
66+
margin-bottom: 10px;
67+
}
68+
8169
.pagination_information,
8270
.pagination_per_page,
8371
.download_links {
84-
display: block;
85-
float: none;
8672
text-align: center;
73+
}
74+
}
75+
76+
@media #{$tablet-and-desktop-screen} {
77+
#index_footer {
78+
align-items: center;
79+
display: flex;
80+
flex-wrap: wrap;
81+
justify-content: space-between;
82+
}
83+
84+
.pagination {
85+
display: block;
86+
margin-top: 10px;
87+
order: 10;
8788
width: 100%;
8889
}
8990
}

0 commit comments

Comments
 (0)