@primer/brand-css 0.65.0-rc.bea77abb → 0.65.0-rc.ce17605f

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.
@@ -220,3 +220,42 @@
220
220
  width: 100%;
221
221
  height: auto;
222
222
  }
223
+
224
+ .CTABanner-heading code,
225
+ .CTABanner-description code {
226
+ font-size: inherit;
227
+ font-family: var(--brand-fontStack-monospace);
228
+ background-color: var(--brand-color-canvas-default);
229
+ padding: 0 var(--base-size-4) 0;
230
+ margin-inline: var(--base-size-2);
231
+ border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
232
+ border-radius: var(--brand-borderRadius-small);
233
+ box-shadow: var(--brand-borderWidth-thin) var(--brand-borderWidth-thin) 0 0 var(--brand-color-border-default);
234
+ }
235
+
236
+ .CTABanner--bgColor-default .CTABanner-heading code,
237
+ .CTABanner--bgColor-default .CTABanner-description code {
238
+ background-color: var(--brand-color-canvas-subtle);
239
+ }
240
+
241
+ .CTABanner-description code {
242
+ padding: 0 var(--base-size-4) 0;
243
+ }
244
+
245
+ .CTABanner-heading.CTABanner-heading:has(code) {
246
+ line-height: calc(1lh * 2);
247
+ }
248
+
249
+ @media screen and (min-width: 63.25rem) {
250
+ .CTABanner--variant-balanced .CTABanner-heading.CTABanner-heading:has(code) {
251
+ line-height: calc(1lh * 2.8);
252
+ }
253
+ }
254
+
255
+ .CTABanner--variant-minimal .CTABanner-heading.CTABanner-heading:has(code) {
256
+ line-height: calc(1lh * 1.9);
257
+ }
258
+
259
+ .CTABanner-description.CTABanner-description:has(code) {
260
+ line-height: calc(1lh * 1.25);
261
+ }
@@ -98,6 +98,29 @@
98
98
  text-decoration: none !important;
99
99
  }
100
100
 
101
+ .Card__link code,
102
+ .Card__description code {
103
+ font-size: inherit;
104
+ font-family: var(--brand-fontStack-monospace);
105
+ background-color: var(--brand-color-canvas-subtle);
106
+ padding: 0 var(--base-size-4) var(--base-size-2);
107
+ margin-inline: var(--base-size-2);
108
+ border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
109
+ border-radius: var(--brand-borderRadius-small);
110
+ box-shadow: var(--brand-borderWidth-thin) var(--brand-borderWidth-thin) 0 0 var(--brand-color-border-default);
111
+ }
112
+
113
+ .Card__description code {
114
+ padding: var(--base-size-2) var(--base-size-4) 0;
115
+ }
116
+ .Card__link:has(code) {
117
+ line-height: calc(1lh * 1.4);
118
+ }
119
+
120
+ .Card__description.Card__description:has(code) {
121
+ line-height: calc(1lh * 1.25);
122
+ }
123
+
101
124
  .Card--disableAnimation:hover .Card__link {
102
125
  text-decoration: underline !important;
103
126
  }
@@ -136,6 +136,36 @@
136
136
  color: var(--brand-color-text-default);
137
137
  }
138
138
 
139
+ .River__heading code,
140
+ .River__text code {
141
+ font-size: inherit;
142
+ font-family: var(--brand-fontStack-monospace) !important;
143
+ background-color: var(--brand-color-canvas-subtle);
144
+ padding: 0 var(--base-size-4) var(--base-size-2);
145
+ margin-inline: var(--base-size-2);
146
+ border: var(--brand-borderWidth-thin) solid var(--brand-color-border-default);
147
+ border-radius: var(--brand-borderRadius-small);
148
+ box-shadow: var(--brand-borderWidth-thin) var(--brand-borderWidth-thin) 0 0 var(--brand-color-border-default);
149
+ }
150
+
151
+ .River__text code {
152
+ padding: var(--base-size-2) var(--base-size-4) 0;
153
+ }
154
+
155
+ .River__heading-inner:has(code) {
156
+ line-height: calc(1lh * 1.8);
157
+ }
158
+
159
+ @media screen and (min-width: 64rem) {
160
+ .River__heading-inner:has(code) {
161
+ line-height: calc(1lh * 2.1);
162
+ }
163
+ }
164
+
165
+ .River__text:has(code) {
166
+ line-height: calc(1lh * 1.1);
167
+ }
168
+
139
169
  .River__trailingComponent {
140
170
  margin-block-start: var(--brand-River-spacing-inner);
141
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.65.0-rc.bea77abb",
3
+ "version": "0.65.0-rc.ce17605f",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",