@primer/css 0.0.0-20220119022106 → 0.0.0-20220119113127
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 +3 -1
- package/actionlist/action-list-item.scss +2 -2
- 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 +66 -66
- 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 +38 -0
package/package.json
CHANGED
|
@@ -84,6 +84,44 @@
|
|
|
84
84
|
clip-path: polygon(6.2px 3.2px, 7.3px 3.2px, 11.5px 7.5px, 11.5px 8.5px, 7.3px 12.8px, 6.2px 11.7px, 9.9px 8px, 6.2px 4.3px, 6.2px 3.2px);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
+
|
|
88
|
+
// Responsive
|
|
89
|
+
|
|
90
|
+
// Hide everything by default
|
|
91
|
+
> * {
|
|
92
|
+
display: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// 0 -> sm
|
|
96
|
+
// Only show [Previous] [Next]
|
|
97
|
+
|
|
98
|
+
> :first-child,
|
|
99
|
+
> :last-child,
|
|
100
|
+
> .previous_page,
|
|
101
|
+
> .next_page {
|
|
102
|
+
display: inline-block;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// sm -> md
|
|
106
|
+
// Also show [first] [last] [current number] and [...]
|
|
107
|
+
|
|
108
|
+
@include breakpoint(sm) {
|
|
109
|
+
> :nth-child(2),
|
|
110
|
+
> :nth-last-child(2),
|
|
111
|
+
> .current,
|
|
112
|
+
> .gap {
|
|
113
|
+
display: inline-block;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// md -> or more
|
|
118
|
+
// Show everything
|
|
119
|
+
|
|
120
|
+
@include breakpoint(md) {
|
|
121
|
+
> * {
|
|
122
|
+
display: inline-block;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
87
125
|
}
|
|
88
126
|
|
|
89
127
|
// Unified centered pagination across the site
|