Skip to content

Commit 820638d

Browse files
authored
Merge pull request #3499 from ArmDeveloperEcosystem/adsv5-feedback-notes
Adsv5 feedback notes
2 parents 67d140b + 753bbe6 commit 820638d

19 files changed

Lines changed: 213 additions & 222 deletions

File tree

assets/css/content-pages.css

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,6 @@ html[theme='dark'] .tab-right-card > h6 {
8888
line-height: 1.2;
8989
}
9090

91-
/* Force a 2-line clamp for masthead title */
92-
ads-masthead #ads-masthead-title {
93-
line-height: 1.2;
94-
padding-bottom: 6px;
95-
box-sizing: border-box;
96-
max-height: calc(1.2em * 2 + 8px); /* dyncamically calculate height depending on length of title */
97-
overflow: hidden;
98-
display: -webkit-box;
99-
-webkit-line-clamp: 2;
100-
-webkit-box-orient: vertical;
101-
white-space: normal;
102-
}
103-
104-
10591
/* hover effects */
10692
a:hover {
10793
text-decoration: none; }
@@ -155,7 +141,7 @@ div.github-div {
155141

156142
html[theme='dark'] div.github-div {
157143
border-color: rgba(163, 168, 174,0.25); /* #A3A8AE at 25% transparency */
158-
background-color: rgb(23,25,27);; /* CLOSE to this, but not due to close to gradient background. var(--arm-color-base) at 75% transparency */
144+
background-color: var(--ads-ui-ink-100);
159145

160146
}
161147

@@ -185,12 +171,12 @@ ads-card.multi-install-card {
185171
--ads-card-box-shadow-hover: 0 3px 6px 1px rgba(0,0,0,0.16); /* 0 1px 3px 3px rgba(0,0,0,0.25); */
186172
}
187173
html[theme='dark'] ads-card.multi-install-card {
188-
--ads-card-background-color: var(--arm-color-base);
174+
--ads-card-background-color: var(--ads-ui-ink-80);
189175
--ads-card-border-color: #000000;
190176
/*--ads-card-box-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);*/
191177

192178
/* hover state */
193-
--ads-card-background-color-hover: var(--arm-color-base);
179+
--ads-card-background-color-hover: var(--ads-ui-ink-80);
194180
--ads-card-border-color-hover: transparent;
195181
/*--ads-card-box-shadow-hover: 0 3px 12px rgba(0, 0, 0, 0.5);*/
196182

assets/css/content.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616

1717

1818
/* Box around content (learning paths and tools) */
19+
html[theme="dark"] #main {
20+
background-color: var(--ads-ui-ink-90);
21+
}
22+
1923
div.content-box {
2024
padding-left: 16px;
2125
padding-right: 16px;
@@ -28,7 +32,7 @@ div.content-box {
2832
border-radius: 5px;
2933

3034
border-color: rgba(163, 168, 174,0.25); /* #A3A8AE at 25% transparency */
31-
background-color: rgba(31,32,35,0.75); /* var(--arm-color-base) at 75% transparency */
35+
background-color: var(--ads-ui-ink-100);
3236
}
3337
html[theme="light"] div.content-box {
3438
background-color: white;

assets/css/cross-page.css

Lines changed: 34 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ ads-search#search-box.install-guide{
9292
padding-right: 14px;
9393
}
9494
ads-search {
95-
--ads-search-button-background-color: var(--arm-color-base);
95+
--ads-search-button-background-color: #7233F7;
9696
}
9797

9898
/* Colors of buttons & links to match DevHub styling */
@@ -166,9 +166,7 @@ table tbody td {
166166
/* Fix Nav Masthead Breadcrumb container */
167167
/*************************************/
168168
#nav-masthead-breadcrumbs {
169-
background-image: url("/img/masthead-background.webp"); /* The image used */
170-
background-color: var(--arm-color-footing); /* Used if the image is unavailable */
171-
background-size: cover;
169+
background-color: var(--ads-ui-ink-100);
172170
}
173171

174172

@@ -212,7 +210,6 @@ arm-top-navigation:not(:defined) {
212210

213211
/* Fix Masthead Height */
214212
#expanded-masthead {
215-
background-color: transparent;
216213
min-height: 100px; /* Keep baseline height for short titles */
217214
height: auto; /* Allow 2-line titles to expand */
218215
background-position: center;
@@ -229,31 +226,33 @@ arm-top-navigation:not(:defined) {
229226
ads-masthead {
230227
--ads-masthead-border-bottom-color: transparent;
231228
}
232-
233-
234229

235-
ads-breadcrumbs {
236-
--ads-breadcrumb-color: var(--lp-accent-secondary);
237-
--ads-breadcrumb-current-color: white;
238-
--ads-breadcrumb-hover-color: var(--lp-hover-text);
239-
--ads-breadcrumbs-link-color: var(--lp-accent-secondary);
240-
--ads-breadcrumbs-link-color-hover: var(--lp-hover-text);
241-
--ads-breadcrumbs-link-color-visited: var(--lp-accent-secondary);
242-
--ads-breadcrumbs-current-color: white;
230+
/* Align the alert icon with the masthead title while its surface spans the page. */
231+
#color-refresh-alert-container {
232+
background-color: #F0F0F0;
233+
overflow: hidden;
243234
}
244235

245-
#breadcrumb-element ads-breadcrumb[current] {
246-
--ads-breadcrumb-color: white;
247-
--ads-breadcrumb-current-color: white;
248-
--ads-breadcrumbs-current-color: white;
249-
color: white;
236+
/* Bypass ADS's fixed 70% heading wrapper while retaining its typography. */
237+
ads-masthead #ads-masthead-title {
238+
box-sizing: border-box;
239+
color: var(--ads-masthead-color, #E6E6E9);
240+
font-size: 32px;
241+
line-height: 35px;
242+
max-height: none;
243+
overflow: visible;
244+
overflow-wrap: anywhere;
245+
white-space: normal;
246+
width: calc(100% - 32px);
250247
}
251248

252-
#breadcrumb-element ads-breadcrumb:not([current]):hover {
253-
--ads-breadcrumb-color: var(--lp-hover-text);
254-
--ads-breadcrumbs-link-color: var(--lp-hover-text);
255-
color: var(--lp-hover-text);
249+
@media (min-width: 768px) {
250+
ads-masthead #ads-masthead-title {
251+
font-size: 48px;
252+
line-height: 53px;
253+
}
256254
}
255+
257256

258257

259258
/* Hide breadcrumb when small screen. */
@@ -267,7 +266,7 @@ ads-breadcrumbs {
267266
/* Replicate style of breadcrumb in masthead when alone. */
268267
#only-breadcrumb-masthead {
269268
width: 100%;
270-
background-color: var(--arm-color-footing);
269+
background-color: var(--ads-ui-ink-100);
271270
padding-top: 8px;
272271
padding-left: 15px; /* u-padding-left-2-1/2 */
273272
padding-bottom: 8px;
@@ -292,9 +291,7 @@ ads-breadcrumbs {
292291
width: fit-content;
293292
height: fit-content;
294293

295-
background: -webkit-linear-gradient(left,var(--arm-green), var(--arm-light-blue));
296-
-webkit-background-clip: text;
297-
-webkit-text-fill-color: transparent;
294+
color: var(--lp-accent-secondary);
298295
}
299296
.beta-homepage {
300297
vertical-align: top;
@@ -328,7 +325,7 @@ ads-breadcrumbs {
328325
margin: -1px;
329326
z-index: -1;
330327
border-radius: inherit;
331-
background: linear-gradient(90deg, var(--lp-accent-primary), var(--lp-accent-secondary));
328+
background: #848192;
332329
opacity: 0;
333330
transition: opacity 0.3s ease;
334331
}
@@ -338,48 +335,12 @@ ads-breadcrumbs {
338335

339336

340337

341-
.gradient-box-tool {
342-
/*display: inline-block;*/
343-
position: relative;
344-
border-radius: 0px;
345-
z-index:1;
346-
}
347-
348-
.gradient-box-tool::before {
349-
content: '';
350-
position: absolute;
351-
top: 0;
352-
right: 0;
353-
bottom: 1px;
354-
left: 2px;
355-
margin: -2px;
356-
z-index: -1;
357-
border-radius: inherit;
358-
background: linear-gradient(90deg, var(--lp-accent-primary), var(--lp-accent-secondary));
359-
opacity: 0;
360-
transition: opacity 0.3s ease;
361-
}
362-
.gradient-box-tool:hover::before {
363-
opacity: 1;
364-
}
365-
366-
367-
368-
369-
html[theme="dark"] .orchard-breeze-text {
370-
background: -webkit-linear-gradient(left,var(--arm-green), var(--arm-light-blue));
371-
-webkit-background-clip: text;
372-
-webkit-text-fill-color: transparent;
373-
}
374-
html[theme="dark"] .fullbourn-sunrise-text {
375-
background: -webkit-linear-gradient(left,var(--arm-yellow), var(--arm-orange));
376-
-webkit-background-clip: text;
377-
-webkit-text-fill-color: transparent;
378-
}
338+
html[theme="dark"] .orchard-breeze-text,
339+
html[theme="dark"] .fullbourn-sunrise-text,
379340
html[theme="dark"] .minhang-mist-text {
380-
background: -webkit-linear-gradient(left,var(--arm-light-blue), var(--arm-light-grey));
381-
-webkit-background-clip: text;
382-
-webkit-text-fill-color: transparent;
341+
background: none;
342+
color: #E6E6E9;
343+
-webkit-text-fill-color: currentColor;
383344
}
384345

385346

@@ -410,36 +371,9 @@ html[theme='light'] body {
410371

411372
/* Dark Theme */
412373
/****************************************************/
413-
/* Mobile background */
414-
@media (max-width: 768px) {
415-
html[theme='dark'] body {
416-
background-image: url("/img/bg-img-736x800-purple.webp");
417-
background-color: var(--arm-color-footing);
418-
background-position: 0% 100%;
419-
background-attachment: fixed;
420-
background-size: 100% 100%; /* Forces smaller width; best solution for mobile sizes */
421-
}
422-
}
423-
/* Laptop background */
424-
@media (min-width: 768px) {
425-
html[theme='dark'] body {
426-
background-image: url("/img/bg-img-1920x1600-purple.webp");
427-
background-color: var(--arm-color-footing);
428-
background-position: 0% 100%;
429-
background-attachment: fixed;
430-
background-size: cover; /* Stretches image to fit; best solution for desktop sizes */
431-
}
432-
}
433-
434-
/* Large Monitor background */
435-
@media (min-width: 1400px) {
436-
html[theme='dark'] body {
437-
background-image: url("/img/bg-img-2500x1700-purple.webp");
438-
background-color: var(--arm-color-footing);
439-
background-position: 0% 100%;
440-
background-attachment: fixed;
441-
background-size: cover; /* Stretches image to fit; best solution for desktop sizes */
442-
}
374+
html[theme='dark'] body {
375+
background-color: var(--ads-ui-ink-100);
376+
background-image: none;
443377
}
444378

445379

assets/css/home.css

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ ads-breadcrumbs:not(:defined) {
1616
min-height: 32px;
1717
}
1818

19+
/* The homepage uses the ADS v5 Arm Ink background hierarchy. */
20+
html[theme='dark'] body {
21+
background-color: var(--ads-ui-ink-100);
22+
background-image: none;
23+
}
24+
1925
/* CLS fix: lock the breadcrumb masthead height so hydration doesn't shift content below */
2026
#only-breadcrumb-masthead {
2127
height: 40px;
@@ -43,16 +49,16 @@ ads-breadcrumbs:not(:defined) {
4349
min-height: 152px;
4450
height: 152px;
4551
align-items: center;
46-
background-color: var(--arm-color-base);
52+
background-color: var(--ads-ui-ink-80);
4753
border: 1px solid transparent;
4854
border-color: #000000;
4955
transition:
5056
transform 0.3s ease-in-out,
5157
border-color 0.3s ease-in-out;
5258
}
5359
.main-topic-card:hover {
54-
background-color: var(--arm-color-base);
55-
border-color: var(--arm-green);
60+
background-color: var(--ads-ui-ink-80);
61+
border-color: #848192;
5662
cursor: pointer;
5763
transform: translateY(-3px); /* move up 3px */
5864

@@ -86,23 +92,21 @@ ads-breadcrumbs:not(:defined) {
8692
height: 50px;
8793
object-fit: contain;
8894
display: block;
95+
/* Figma specifies neutral white icons instead of the legacy purple gradients. */
96+
filter: brightness(0) invert(1);
8997
}
9098

91-
.main-topic-card img[src$="mobile-graphics-and-gaming.svg"],
92-
.main-topic-card img[src$="ai.svg"] {
93-
transform: scale(1.16);
94-
transform-origin: center;
95-
}
96-
97-
.main-topic-card img[src$="embedded-and-microcontrollers.svg"] {
98-
transform: scale(1.34);
99+
/* The two legacy SVGs fill their view boxes more fully than the new 64px icon set. */
100+
.main-topic-card img[src$="automotive.svg"],
101+
.main-topic-card img[src$="laptops-and-desktops.svg"] {
102+
transform: scale(0.82);
99103
transform-origin: center;
100104
}
101105

102106
/* Title styling */
103107
/**************************************/
104108
.main-topic-title {
105-
color: var(--arm-light-blue);
109+
color: #E6E6E9;
106110
font-weight: 700;
107111
font-size: 20px;
108112
line-height: 1.2;
@@ -209,7 +213,7 @@ table.contributor-table th {
209213
color: black;
210214
}
211215
table.contributor-table tbody {
212-
background-color: var(--arm-color-base);
216+
background-color: var(--ads-ui-ink-90);
213217
}
214218

215219

0 commit comments

Comments
 (0)