@primer/css 0.0.0-20220119022832 → 0.0.0-20220119110159
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/actionlist/action-list-item.scss +2 -7
- package/actionlist/action-list.scss +0 -24
- package/dist/actionlist.css +1 -1
- package/dist/actionlist.css.map +1 -1
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/meta.json +99 -99
- package/dist/pagination.css +1 -1
- package/dist/pagination.css.map +1 -1
- package/dist/primer.css +1 -1
- package/dist/primer.css.map +1 -1
- package/dist/stats/actionlist.json +1 -1
- package/dist/stats/core.json +1 -1
- package/dist/stats/pagination.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/package.json +1 -1
- package/pagination/pagination.scss +40 -0
package/package.json
CHANGED
|
@@ -86,6 +86,46 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
// Responsive
|
|
90
|
+
|
|
91
|
+
.pagination {
|
|
92
|
+
// Hide everything by default
|
|
93
|
+
& > * {
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// 0 -> sm
|
|
98
|
+
// Only show [Previous] [Next]
|
|
99
|
+
|
|
100
|
+
& > :first-child,
|
|
101
|
+
& > :last-child,
|
|
102
|
+
& > .previous_page,
|
|
103
|
+
& > .next_page {
|
|
104
|
+
display: inline-block;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
// sm -> md
|
|
108
|
+
// Also show [first] [last] [current number] and [...]
|
|
109
|
+
|
|
110
|
+
@include breakpoint(sm) {
|
|
111
|
+
& > :nth-child(2),
|
|
112
|
+
& > :nth-last-child(2),
|
|
113
|
+
& > .current,
|
|
114
|
+
& > .gap {
|
|
115
|
+
display: inline-block;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// md -> or more
|
|
120
|
+
// Show everything
|
|
121
|
+
|
|
122
|
+
@include breakpoint(md) {
|
|
123
|
+
& > * {
|
|
124
|
+
display: inline-block;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
89
129
|
// Unified centered pagination across the site
|
|
90
130
|
.paginate-container {
|
|
91
131
|
margin-top: $spacer-3;
|