@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.
@@ -47,6 +47,7 @@
47
47
  }
48
48
 
49
49
  &.Layout--gutter-none {
50
+ // stylelint-disable-next-line length-zero-no-unit
50
51
  --Layout-gutter: 0px;
51
52
  }
52
53
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/css",
3
- "version": "19.2.1-rc.c39b001c",
3
+ "version": "19.2.1-rc.fdf2dd67",
4
4
  "description": "The CSS implementation of GitHub's Primer Design System",
5
5
  "homepage": "https://primer.style/css",
6
6
  "author": "GitHub, Inc.",
@@ -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