@primer/css 19.2.1-rc.c39b001c → 19.2.1-rc.fdf2dd67
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 +2 -0
- package/dist/core.css +1 -1
- package/dist/core.css.map +1 -1
- package/dist/meta.json +22 -22
- 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/core.json +1 -1
- package/dist/stats/pagination.json +1 -1
- package/dist/stats/primer.json +1 -1
- package/layout/layout.scss +1 -0
- package/package.json +1 -1
- package/pagination/pagination.scss +38 -1
package/layout/layout.scss
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
a,
|
|
5
5
|
span,
|
|
6
6
|
em {
|
|
7
|
-
display: inline-block;
|
|
8
7
|
min-width: 32px;
|
|
9
8
|
// stylelint-disable-next-line primer/spacing
|
|
10
9
|
padding: 5px 10px;
|
|
@@ -84,6 +83,44 @@
|
|
|
84
83
|
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
84
|
}
|
|
86
85
|
}
|
|
86
|
+
|
|
87
|
+
// Responsive
|
|
88
|
+
|
|
89
|
+
// Hide everything by default
|
|
90
|
+
> * {
|
|
91
|
+
display: none;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// 0 -> sm
|
|
95
|
+
// Only show [Previous] [Next]
|
|
96
|
+
|
|
97
|
+
> :first-child,
|
|
98
|
+
> :last-child,
|
|
99
|
+
> .previous_page,
|
|
100
|
+
> .next_page {
|
|
101
|
+
display: inline-block;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// sm -> md
|
|
105
|
+
// Also show [first] [last] [current number] and [...]
|
|
106
|
+
|
|
107
|
+
@include breakpoint(sm) {
|
|
108
|
+
> :nth-child(2),
|
|
109
|
+
> :nth-last-child(2),
|
|
110
|
+
> .current,
|
|
111
|
+
> .gap {
|
|
112
|
+
display: inline-block;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// md -> or more
|
|
117
|
+
// Show everything
|
|
118
|
+
|
|
119
|
+
@include breakpoint(md) {
|
|
120
|
+
> * {
|
|
121
|
+
display: inline-block;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
87
124
|
}
|
|
88
125
|
|
|
89
126
|
// Unified centered pagination across the site
|