Skip to content

Commit 74405a3

Browse files
committed
initial styling updates, incorporate v5
1 parent 103e2d2 commit 74405a3

21 files changed

Lines changed: 91 additions & 36 deletions

assets/css/cross-page.css

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@
7171
/* UNIVERSAL */
7272
/****************************************************/
7373

74+
/* Local ADS v5 accent experiment */
75+
:root {
76+
--lp-accent-primary: #6023DE; /* ADS UI Violet 65 */
77+
--lp-accent-secondary: #D1BAFC; /* ADS UI Violet 04 */
78+
79+
/* Keep existing site styles working while testing the v5 palette. */
80+
--arm-green: var(--lp-accent-primary);
81+
--arm-light-blue: var(--lp-accent-secondary);
82+
--arm-web-safe-blue: var(--lp-accent-secondary);
83+
--arm-blue: var(--lp-accent-secondary);
84+
}
85+
7486
/* ADS FIXES */
7587
/***************************************************/
7688
/* Font size hardcoding to fix ADS */
@@ -262,8 +274,8 @@ ads-breadcrumbs {
262274
border-style: solid;
263275
border-width: 1px;
264276
border-radius: 0px;
265-
border-color: rgba(149, 214, 0, 0.25); /* var(--arm-green) with 25% transparency */
266-
border-color: rgba(0, 193, 222, 0.25); /* var(--arm-light-blue) with 25% transparency */
277+
border-color: rgba(96, 35, 222, 0.25); /* var(--lp-accent-primary) with 25% transparency */
278+
border-color: rgba(209, 186, 252, 0.25); /* var(--lp-accent-secondary) with 25% transparency */
267279

268280
padding-left: 4px;
269281
padding-right: 4px;
@@ -307,7 +319,7 @@ ads-breadcrumbs {
307319
margin: -1px;
308320
z-index: -1;
309321
border-radius: inherit;
310-
background: linear-gradient(90deg, #95D629, #20C1DE);
322+
background: linear-gradient(90deg, var(--lp-accent-primary), var(--lp-accent-secondary));
311323
opacity: 0;
312324
transition: opacity 0.3s ease;
313325
}
@@ -334,7 +346,7 @@ ads-breadcrumbs {
334346
margin: -2px;
335347
z-index: -1;
336348
border-radius: inherit;
337-
background: linear-gradient(90deg, #95D629, #20C1DE );
349+
background: linear-gradient(90deg, var(--lp-accent-primary), var(--lp-accent-secondary));
338350
opacity: 0;
339351
transition: opacity 0.3s ease;
340352
}
@@ -392,7 +404,7 @@ html[theme='light'] body {
392404
/* Mobile background */
393405
@media (max-width: 768px) {
394406
html[theme='dark'] body {
395-
background-image: url("/img/bg-img-736x800.webp");
407+
background-image: url("/img/bg-img-736x800-purple.webp");
396408
background-color: var(--arm-color-footing);
397409
background-position: 0% 100%;
398410
background-attachment: fixed;
@@ -402,7 +414,7 @@ html[theme='light'] body {
402414
/* Laptop background */
403415
@media (min-width: 768px) {
404416
html[theme='dark'] body {
405-
background-image: url("/img/bg-img-1920x1600.webp");
417+
background-image: url("/img/bg-img-1920x1600-purple.webp");
406418
background-color: var(--arm-color-footing);
407419
background-position: 0% 100%;
408420
background-attachment: fixed;
@@ -413,7 +425,7 @@ html[theme='light'] body {
413425
/* Large Monitor background */
414426
@media (min-width: 1400px) {
415427
html[theme='dark'] body {
416-
background-image: url("/img/bg-img-2500x1700.webp");
428+
background-image: url("/img/bg-img-2500x1700-purple.webp");
417429
background-color: var(--arm-color-footing);
418430
background-position: 0% 100%;
419431
background-attachment: fixed;
@@ -452,4 +464,3 @@ html[theme='light'] body {
452464
@media (min-width: 1200px) {
453465
ads-masthead { --ads-masthead-horizontal-padding: 5px; }
454466
}
455-

assets/css/home.css

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
.main-topic-card {
1616
padding: 16px;
17+
min-height: 152px;
18+
height: 152px;
19+
align-items: center;
1720
background-color: var(--arm-color-base);
1821
border: 1px solid transparent;
1922
border-color: #000000;
@@ -34,6 +37,7 @@
3437

3538
.maintopic-content {
3639
text-align: left;
40+
min-width: 0;
3741
}
3842

3943
.maintopic-image {
@@ -42,12 +46,44 @@
4246
height: 50px;
4347
}
4448

49+
.main-topic-card > .c-col-3 {
50+
flex: 0 0 72px;
51+
max-width: 72px;
52+
min-width: 72px;
53+
display: flex;
54+
align-items: center;
55+
justify-content: center;
56+
}
57+
58+
.main-topic-card img[src*="main-topic-icons"] {
59+
width: 64px;
60+
height: 50px;
61+
object-fit: contain;
62+
display: block;
63+
}
64+
65+
.main-topic-card img[src$="mobile-graphics-and-gaming.svg"],
66+
.main-topic-card img[src$="ai.svg"] {
67+
transform: scale(1.16);
68+
transform-origin: center;
69+
}
70+
71+
.main-topic-card img[src$="embedded-and-microcontrollers.svg"] {
72+
transform: scale(1.34);
73+
transform-origin: center;
74+
}
75+
4576
/* Title styling */
4677
/**************************************/
4778
.main-topic-title {
4879
color: var(--arm-light-blue);
4980
font-weight: 700;
5081
font-size: 20px;
82+
line-height: 1.2;
83+
}
84+
85+
.main-topic-card p {
86+
line-height: 1.45;
5187
}
5288

5389
.main-topic-card:hover .main-topic-title {
@@ -168,4 +204,4 @@ table.contributor-table tbody {
168204
.homepage-dynamic-bottom-spacing {
169205
margin-bottom: 32px;
170206
}
171-
}
207+
}

themes/arm-design-system-hugo-theme/layouts/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h3 class="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2">{{ replace .Ti
7979
<a href="/tag/ml/">
8080
<div class="main-topic-card c-row" style="flex-wrap: nowrap !important;">
8181
<div class="c-col-3">
82-
<img alt="Icon for AI" aria-hidden="true" src="img/main-topic-icons/ai.svg" style="width: 100%;" />
82+
<img alt="Icon for AI" aria-hidden="true" src="img/main-topic-icons/ai.svg" />
8383
</div>
8484
<div class="maintopic-content c-col-9 u-margin-left-1">
8585
<h3 class="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2">AI</h3>
@@ -106,4 +106,3 @@ <h3 class="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2">AI</h3>
106106

107107

108108
{{ end }}
109-

themes/arm-design-system-hugo-theme/layouts/partials/head/head.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,18 @@
4747

4848

4949
<!-- ADS Imports -->
50-
<link rel="stylesheet" href="https://cdn.designsystem.arm.com/rel/4.9.0/arm-design-system.css" integrity="sha384-TIxVkbw6g/OlN2t0XSUGTik6Kc0pkpNEcm1bOAGO02jsHholeZipXigdXRDYqCGr" crossorigin="anonymous">
51-
<script type="module" src="https://cdn.designsystem.arm.com/rel/4.9.0/arm-design-system/arm-design-system.esm.js" integrity="sha384-K+IGYCWaqyh5adrYnimAXzUamdfAwRYJGwwrybHfAhmsehOIcexAPoEoEyLRJwkC" crossorigin="anonymous"></script>
52-
50+
<link
51+
rel="stylesheet"
52+
href="https://cdn.designsystem.arm.com/rel/5.1.0/arm-design-system.css"
53+
integrity="sha384-JqNmR8APfSKWRZYKgA79z0tZg9IfXy3N699hUmI5UhAjW9HWOkoAPWpvCOaL8yuC"
54+
crossorigin="anonymous"
55+
/>
56+
<script
57+
type="module"
58+
src="https://cdn.designsystem.arm.com/rel/5.1.0/arm-design-system/arm-design-system.esm.js"
59+
integrity="sha384-caAG7P/HrHxcdQa2gTEfvZYGPLQk7yRwVdvtRn6sa3TRKzcAyY1LMvObXKGhwFNb"
60+
crossorigin="anonymous">
61+
</script>
5362
<!-- Arm Header & Footer loading -->
5463
<script type="text/javascript" src="https://www.arm.com/arm-global-web-components/devhub/app.js" ></script>
5564

1.99 MB
Loading
13.8 KB
Loading
1.45 MB
Loading
20.8 KB
Loading
407 KB
Loading
4.29 KB
Loading

0 commit comments

Comments
 (0)