@snyk-mktg/brand-ui 2.3.18 → 2.3.20

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.
@@ -73,6 +73,7 @@
73
73
  @use './components/atoms/button' as *;
74
74
  @use './components/atoms/feature-checkmark' as *;
75
75
  @use './components/atoms/triggers/menu' as *;
76
+ @use './components/misc/embed' as *;
76
77
  @use './components/molecules/cards/card' as *;
77
78
  @use './components/molecules/text-grid-item' as *;
78
79
  @use './components/organisms/heroes/hero-title-text' as *;
@@ -85,8 +85,41 @@
85
85
  left: 0;
86
86
  width: 100%;
87
87
  height: 100%;
88
- background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%),
89
- linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
88
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%),
89
+ linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
90
+ z-index: -1;
91
+ }
92
+ }
93
+
94
+ &-footer {
95
+ overflow: hidden;
96
+ position: absolute;
97
+ opacity: 1;
98
+ transform: translateZ(-1px);
99
+ width: brandui-col-spacing(16);
100
+ background: transparent url('#{$brandui-images}decorations/evo-decoration-footer.png');
101
+ background-position: center;
102
+ background-repeat: no-repeat;
103
+ background-size: cover;
104
+ // background-attachment: fixed;
105
+ z-index: -2;
106
+
107
+ &-center {
108
+ left: 0;
109
+ right: 0;
110
+ top: -75%;
111
+ bottom: 0;
112
+ }
113
+
114
+ &:before {
115
+ content: '';
116
+ position: absolute;
117
+ top: 0;
118
+ left: 0;
119
+ width: 100%;
120
+ height: 100%;
121
+ background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%),
122
+ linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
90
123
  z-index: -1;
91
124
  }
92
125
  }
@@ -1,4 +1,8 @@
1
+ @use 'sass:map';
1
2
  @use '../../../base/decorations/glows' as *;
3
+ @use '../../../base/variables/effects' as *;
4
+ @use '../../../base/variables/sizing' as *;
5
+ @use '../../../base/variables/colors' as *;
2
6
  @use '../../../base/mixins/page-theme' as theme;
3
7
  @use '../../../base/mixins/breakpoints' as break;
4
8
  @use '../../../base/mixins/accessibility' as a11y;
@@ -39,26 +43,49 @@
39
43
  }
40
44
  }
41
45
 
42
- .cursor-glow {
46
+ .cursor-glow-wrapper {
47
+ &:hover {
48
+ @include break.min-mobile {
49
+ .glow-container {
50
+ .glow-item {
51
+ opacity: 1;
52
+ }
53
+ }
54
+ }
55
+ }
43
56
  @include break.min-mobile {
44
- position: fixed;
45
- top: 0;
46
- left: 0;
47
- width: 400px;
48
- height: 400px;
49
- border-radius: 50%;
50
- /* Center the glow on the cursor's actual position */
51
- transform: translate(-50%, -50%);
57
+ .glow-container {
58
+ position: relative;
59
+ overflow: hidden;
60
+ height: max-content;
52
61
 
53
- /* This ensures the glow doesn't block clicks or text selection on elements underneath it */
54
- pointer-events: none;
62
+ .glow-item {
63
+ @include a11y.reduced-motion {
64
+ display: none;
65
+ }
66
+ position: absolute;
67
+ border-radius: map.get($brandui-radius, 'large');
68
+
69
+ top: 0;
70
+ left: 0;
71
+ width: 100%;
72
+ height: 100%;
73
+ z-index: 0;
55
74
 
56
- z-index: 9999;
57
- transition: transform 0.2s ease-out; /* Optional: smooths movement slightly */
75
+ background: radial-gradient(
76
+ circle at 50% 50%,
77
+ map.get($evoui-colors, 'blue'),
78
+ map.get($evoui-colors, 'blue'),
79
+ map.get($evoui-colors, 'pink'),
80
+ map.get($evoui-colors, 'red')
81
+ );
58
82
 
59
- background: radial-gradient(circle, RGBA(brandui-rgb-labels(action-secondary), 0.1) 0%, RGBA(brandui-rgb-labels(action-secondary), 0) 50%);
60
- @include a11y.reduced-motion {
61
- display: none;
83
+ mask: radial-gradient(250px circle at var(--x) var(--y), black 1%, transparent 70%);
84
+ -webkit-mask: radial-gradient(250px circle at var(--x) var(--y), black 1%, transparent 70%);
85
+
86
+ opacity: 0;
87
+ transition: opacity 0.3s ease;
88
+ }
62
89
  }
63
90
  }
64
91
  }
@@ -9,12 +9,19 @@ $evoui-font-family: (
9
9
  $brandui-font-family: map.merge(font.$brandui-font-family, $evoui-font-family);
10
10
 
11
11
  $evoui-font-size: (
12
+ page-title-large: 4.375rem,
13
+ page-title: 4.375rem,
12
14
  hero-title-large: 4.375rem,
13
15
  hero-title-small: 3.75rem,
16
+ section-title-small: 2.5rem,
14
17
  );
15
18
  $brandui-font-size: map.merge(font.$brandui-font-size, $evoui-font-size);
16
19
 
17
- $evoui-line-height: ();
20
+ $evoui-line-height: (
21
+ page-title-large: 5rem,
22
+ page-title: 5rem,
23
+ section-title-small: 3rem,
24
+ );
18
25
  $brandui-line-height: map.merge(font.$brandui-line-height, $evoui-line-height);
19
26
 
20
27
  $evoui-text-elements: (
@@ -189,7 +196,7 @@ $evoui-text-elements-responsive: (
189
196
  'text-transform': none,
190
197
  ),
191
198
  'page-title-large': (
192
- 'target': 'hero-title-small',
199
+ 'target': 'page-title',
193
200
  'weight': 900,
194
201
  // 'family': map.get($brandui-font-family, poppins),
195
202
  'family': map.get($brandui-font-family, geist),
@@ -199,7 +206,7 @@ $evoui-text-elements-responsive: (
199
206
  'text-transform': none,
200
207
  ),
201
208
  'page-title': (
202
- 'target': 'hero-title-small',
209
+ 'target': 'page-title',
203
210
  'weight': 900,
204
211
  'family': map.get($brandui-font-family, geist),
205
212
  'type': sans-serif,
@@ -207,7 +214,7 @@ $evoui-text-elements-responsive: (
207
214
  'text-transform': none,
208
215
  ),
209
216
  'section-title': (
210
- 'target': 'hero-title-small',
217
+ 'target': 'section-title-small',
211
218
  'weight': 900,
212
219
  'family': map.get($brandui-font-family, geist),
213
220
  'type': sans-serif,
@@ -67,6 +67,7 @@ $secondary-conic-dark-values: RGBA(brandui-rgb-labels(action-dark), 1), RGBA(bra
67
67
  &.glyph,
68
68
  &.arrow,
69
69
  &.external {
70
+ font-weight: 500;
70
71
  transition: all map.get($brandui-transition, fast);
71
72
  @include color.gradient-mode(
72
73
  'background-image',
@@ -0,0 +1,55 @@
1
+ @use 'sass:map';
2
+ @use '../../../base/functions' as *;
3
+ @use '../../../base/mixins/breakpoints' as break;
4
+ @use '../../../base/mixins/color-mode' as color;
5
+ @use '../../../base/variables/sizing' as *;
6
+ @use '../../../base/variables/effects' as *;
7
+
8
+ .embed-widget {
9
+ :first-child {
10
+ z-index: 2;
11
+ }
12
+ @include color.gradient-mode-pseudo(
13
+ '&:before',
14
+ 'background',
15
+ 'linear',
16
+ '90deg',
17
+ brandui-color-labels(action-secondary),
18
+ brandui-color-labels(action),
19
+ brandui-color-labels(action-secondary-dark),
20
+ brandui-color-labels(action-dark)
21
+ ) {
22
+ content: '';
23
+ position: absolute;
24
+ top: -3px;
25
+ left: -3px;
26
+ right: -3px;
27
+ bottom: -3px;
28
+ // matches the utility classes from the next app, which should be moved into BUI
29
+ margin: 0 map.get($brandui-padding, 'huge');
30
+ z-index: 0;
31
+ border-radius: map.get($brandui-radius, 'large');
32
+
33
+ @include break.max-mobile {
34
+ margin: 0;
35
+ }
36
+ }
37
+
38
+ &:after {
39
+ content: '';
40
+ z-index: 0;
41
+ position: absolute;
42
+ top: 0;
43
+ left: 0;
44
+ right: 0;
45
+ bottom: 0;
46
+ // matches the utility classes from the next app, which should be moved into BUI
47
+ margin: 0 map.get($brandui-padding, 'huge');
48
+ background-color: brandui-color-labels(neutral-1);
49
+ border-radius: map.get($brandui-radius, 'large');
50
+
51
+ @include break.max-mobile {
52
+ margin: 0;
53
+ }
54
+ }
55
+ }
@@ -5,6 +5,7 @@
5
5
  @use '../../../base/mixins/glass' as glass;
6
6
 
7
7
  .card {
8
+ position: relative;
8
9
  border-width: map.get($brandui-padding, 'hairline');
9
10
  // box-shadow: map.get($brandui-shadow, 'outline');
10
11
  //TODO: Extend Drop shadow theme later
@@ -10,6 +10,30 @@
10
10
  .brandui-navigation {
11
11
  .navigation {
12
12
  &-item {
13
+ &:hover,
14
+ &:focus,
15
+ &:focus-within,
16
+ &:focus-visible,
17
+ &:has(.navigation-submenu.open) {
18
+ .nav-dropdown {
19
+ @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
20
+ @include color.color-mode(
21
+ background-color,
22
+ RGBA(brandui-rgb-labels(action-secondary), 0.1),
23
+ RGBA(brandui-rgb-labels(action-secondary-dark), 0.1)
24
+ );
25
+ }
26
+ }
27
+
28
+ .nav-dropdown {
29
+ @include color.color-mode-pseudo(
30
+ '&:after',
31
+ color,
32
+ brandui-color-labels(action-secondary),
33
+ brandui-color-labels(action-secondary-dark)
34
+ );
35
+ }
36
+
13
37
  .nav-link {
14
38
  .new-evo-feature {
15
39
  @include color.gradient-mode(
@@ -73,6 +97,12 @@
73
97
  &-accordion {
74
98
  &-label {
75
99
  font-family: map.get($brandui-font-family, geist-mono), monospace;
100
+ @include color.color-mode-pseudo(
101
+ '&:after',
102
+ color,
103
+ brandui-color-labels(action-secondary),
104
+ brandui-color-labels(action-secondary-dark)
105
+ );
76
106
  }
77
107
  &-links {
78
108
  .login-link {
@@ -91,6 +121,27 @@
91
121
  );
92
122
  }
93
123
  }
124
+
125
+ .login-link.link-external {
126
+ @include color.color-mode-pseudo(
127
+ '&:after',
128
+ color,
129
+ brandui-color-labels(action-secondary),
130
+ brandui-color-labels(action-secondary-dark)
131
+ );
132
+ }
133
+ }
134
+
135
+ &-disclaimer {
136
+ font-family: map.get($brandui-font-family, geist-mono), monospace;
137
+
138
+ a {
139
+ @include color.color-mode(color, brandui-color-labels(action-secondary), brandui-color-labels(action-secondary-dark));
140
+
141
+ &:hover {
142
+ @include color.color-mode(color, brandui-color-labels(ui-body), brandui-color-labels(ui-body-dark));
143
+ }
144
+ }
94
145
  }
95
146
  }
96
147
  }
@@ -27,7 +27,8 @@
27
27
  // these colors are "backwards" on purpose
28
28
  @include color.color-mode(color, brandui-color-labels(ui-body-dark), brandui-color-labels(ui-body));
29
29
 
30
- &:hover {
30
+ &:hover,
31
+ &:focus {
31
32
  //unofficial underline styles
32
33
  text-decoration: underline;
33
34
  @include color.color-mode(color, brandui-color-labels(ui-body-dark), brandui-color-labels(ui-body));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snyk-mktg/brand-ui",
3
- "version": "2.3.18",
3
+ "version": "2.3.20",
4
4
  "description": "The official style library for Snyk’s BrandUI Design System",
5
5
  "scripts": {
6
6
  "dev:css": "gulp devCss",