@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/css",
3
- "version": "0.0.0-20220119022106",
3
+ "version": "0.0.0-20220119113127",
4
4
  "description": "The CSS implementation of GitHub's Primer Design System",
5
5
  "homepage": "https://primer.style/css",
6
6
  "author": "GitHub, Inc.",
@@ -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