@primer/brand-css 0.56.2 → 0.56.3-rc.11baaa74

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.
@@ -320,7 +320,8 @@
320
320
 
321
321
  .Prose video,
322
322
  .Prose iframe[src*='youtube.com'],
323
- .Prose iframe[src*='youtu.be'] {
323
+ .Prose iframe[src*='youtu.be'],
324
+ .Prose iframe[src*='youtube-nocookie.com'] {
324
325
  --spacing: var(--brand-Prose-img-spacing);
325
326
 
326
327
  border-radius: var(--brand-borderRadius-medium);
@@ -336,7 +337,8 @@
336
337
  }
337
338
 
338
339
  .Prose iframe[src*='youtube.com'],
339
- .Prose iframe[src*='youtu.be'] {
340
+ .Prose iframe[src*='youtu.be'],
341
+ .Prose iframe[src*='youtube-nocookie.com'] {
340
342
  width: 100%;
341
343
  aspect-ratio: 16 / 9;
342
344
  }
@@ -104,6 +104,7 @@
104
104
  background-color var(--brand-animation-duration-default) var(--brand-animation-easing-default);
105
105
  }
106
106
 
107
+ .SubNav__anchor-menu-outer-container:focus-within .SubNav__anchor-menu-container,
107
108
  .SubNav__anchor-menu-outer-container--stuck .SubNav__anchor-menu-container {
108
109
  transform: translateY(0);
109
110
  opacity: 1;
@@ -115,19 +116,20 @@
115
116
  transition: height var(--brand-animation-duration-default) var(--brand-animation-easing-default);
116
117
  }
117
118
 
119
+ .SubNav__anchor-menu-outer-container:focus-within,
118
120
  .SubNav__anchor-menu-outer-container--stuck {
119
121
  height: auto;
120
122
  }
121
123
 
122
124
  .SubNav__sub-menu--anchor {
123
125
  opacity: 0;
124
- visibility: hidden;
125
126
  transform: translateY(var(--brand-animation-variant-slideInDown-distance));
126
127
  transition: opacity var(--brand-animation-duration-default) var(--brand-animation-easing-default),
127
128
  height var(--brand-animation-duration-default) var(--brand-animation-easing-default),
128
129
  transform var(--brand-animation-duration-default) var(--brand-animation-easing-default);
129
130
  }
130
131
 
132
+ .SubNav__anchor-menu-outer-container:focus-within .SubNav__sub-menu--anchor,
131
133
  .SubNav__anchor-menu-outer-container--stuck .SubNav__sub-menu--anchor {
132
134
  visibility: visible;
133
135
  opacity: 1;
@@ -536,6 +538,10 @@
536
538
  display: none;
537
539
  }
538
540
 
541
+ .SubNav__container--with-anchor-nav .SubNav__heading {
542
+ padding-block-end: 1px;
543
+ }
544
+
539
545
  .SubNav__heading {
540
546
  font-size: calc(var(--base-size-20) - 2px);
541
547
  line-height: var(--base-size-24);
@@ -543,6 +549,12 @@
543
549
 
544
550
  .SubNav__heading-separator {
545
551
  margin-inline-end: var(--base-size-20);
552
+ display: inline-flex;
553
+ top: 0;
554
+ }
555
+
556
+ .SubNav__container--with-anchor-nav .SubNav__heading-separator {
557
+ top: -1px;
546
558
  }
547
559
 
548
560
  .SubNav--header-container-outer {
@@ -554,6 +566,11 @@
554
566
  margin-inline-end: var(--base-size-20);
555
567
  }
556
568
 
569
+ .SubNav__header-container {
570
+ display: flex;
571
+ align-items: center;
572
+ }
573
+
557
574
  .SubNav__subHeading {
558
575
  font-size: var(--brand-text-size-100);
559
576
  line-height: var(--brand-text-lineHeight-100);
@@ -78,6 +78,11 @@
78
78
  color: var(--brand-InlineLink-color-pressed);
79
79
  }
80
80
 
81
+ .Timeline__item a:focus-visible {
82
+ outline: var(--brand-borderWidth-thick) solid var(--brand-color-focus);
83
+ outline-offset: var(--base-size-2);
84
+ }
85
+
81
86
  /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
82
87
  @media (prefers-reduced-motion: reduce) {
83
88
  .Timeline__item,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/brand-css",
3
- "version": "0.56.2",
3
+ "version": "0.56.3-rc.11baaa74",
4
4
  "description": "CSS stylesheets for Primer Brand components",
5
5
  "keywords": [
6
6
  "primer",