Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions assets/scss/_badge.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
}

.badge-beta {
color: $gray-900;
background-color: $gray-500;
color: $color-text-primary;
background-color: $color-surface-subtle;
}

.badge-lts {
Expand All @@ -26,9 +26,9 @@
}

.badge-deprecated {
background-color: $gray-100;
border: solid 1px $gray-500;
color: $gray-900;
background-color: $color-surface-subtle;
border: solid 1px $color-border-subtle;
color: $color-text-primary;
}

.badge-recommended {
Expand All @@ -38,7 +38,7 @@

.badge-react {
background-color: $info-1;
color: $info-7;
color: $color-link;
}

.badge-company-approved {
Expand Down
79 changes: 15 additions & 64 deletions assets/scss/_font-face.scss
Original file line number Diff line number Diff line change
@@ -1,64 +1,15 @@
@font-face { // LZ - Added for MxDock by request 2024-01-30
font-family: "noto-sans";
src: local("noto-sans"), url("/fonts/noto-sans/noto-sans-400.woff2") format("woff2");
font-style: normal;
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: "noto-sans";
src: local("noto-sans"), url("/fonts/noto-sans/noto-sans-400-italic.woff2") format("woff2");
font-style: italic;
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: "noto-sans";
src: local("noto-sans"), url("/fonts/noto-sans/noto-sans-600.woff2") format("woff2");
font-style: normal;
font-weight: 600;
font-display: swap;
}

@font-face {
font-family: "noto-sans";
src: local("noto-sans"), url("/fonts/noto-sans/noto-sans-600-italic.woff2") format("woff2");
font-style: italic;
font-weight: 600;
font-display: swap;
}

/* Medium */
@font-face {
font-family: "Patron";
font-style: normal;
font-weight: 500;
font-display: swap;
src: local("Patron Medium"), local("Patron-Medium"),
url("/fonts/patron/PatronWEB-Medium.woff2") format("woff2");
}

/* Light */
@font-face {
font-family: "Patron";
font-style: normal;
font-weight: 300;
font-display: swap;
src: local("Patron Light"), local("Patron-Light"),
url("/fonts/patron/PatronWEB-Light.woff2") format("woff2");
}

/* The main font is Noto Sans */
body {
font-family: "noto-sans", sans-serif;
font-weight: 400;
line-height: 1.5; // LZ - line height 1.5 (Regular) according to PDS
}

/* Page Title H1 use Patron Medium. The rest of headings on your page should use Noto Sans */
.page-title {
font-family: "Patron", "noto-sans", sans-serif;
font-weight: 500;
}
/* Use the system sans-serif stack across the docs site */
body {
font-family: $family-regular;
font-weight: 400;
line-height: 1.5; // LZ - line height 1.5 (Regular) according to PDS
}

.page-title {
font-family: $family-regular;
font-weight: 600;
}

code, pre, kbd, samp {
font-family: $family-mono;
}
43 changes: 25 additions & 18 deletions assets/scss/_front-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.td-main main.lp {
padding: 2rem 2.5rem;
padding-top: 0 !important; // top clearance handled by lp-mobile-bar (mobile) and lp-hero (desktop)
background-color: $color-surface-page;

@include media-breakpoint-up(md) {
padding-top: 0 !important;
Expand All @@ -15,12 +16,12 @@ div.lp-container {
max-width: none;
}

.lp-row{
.lp-row {
margin-bottom: 2rem !important;
}

.lp-hero {
background-color: $dark;
background-color: $color-surface-hero;
min-height: 350px;
margin-left: -2.5rem;
margin-right: -2.5rem;
Expand All @@ -31,8 +32,11 @@ div.lp-container {
}
}

.hero-text {
.hero-text {
flex: 0 0 100%;
color: $color-text-primary;
margin-right: 4rem;

// Stretch out text once image disappears (smaller viewports)
@include media-breakpoint-up(lg) {
flex: 0 0 auto;
Expand All @@ -41,7 +45,7 @@ div.lp-container {
}

h1.page-title {
font-weight: $font-weight-normal;
font-weight: 600;
font-size: 2rem;
margin-bottom: 1rem;
}
Expand All @@ -63,7 +67,6 @@ h5.lp-description {
width: auto;
max-width: unset;
flex-shrink: 0;

}

img.card-icon {
Expand All @@ -75,42 +78,45 @@ img.card-icon {
}

h4.card-title {
color: $gray-900;
color: $color-text-primary;
font-weight: 600;
font-size: 1.25rem;
border-top: 3px solid;
padding-top: 1rem;
border-color: $green;
border-color: $border-color;
}

ul.card-text {
margin-top: 1rem;
padding-left: 0rem;
list-style: none;
font-size: 1rem;

a {
color: $color-text-primary;
text-decoration: none;

&::after {
content: "\00a0→"; // Add a nonbreaking space (\00a0) and arrow to links
}

&:hover {
color: $link-hover-color;
color: $color-link-hover;
text-decoration: underline;
}
color: $secondary;
}
}

div.lp-panel {
background: #171717;
background: $color-surface-panel;
box-sizing: border-box;
border-radius: 8px;
padding: 1.5rem 1.25rem;
margin: 0.05rem;
}

h4.lp-panel-title {
color: #FFFFFFEB;
color: $color-text-primary;
font-weight: 600;
font-size: 1.125rem;
margin-bottom: 0.875rem !important;
Expand All @@ -121,32 +127,33 @@ li.lp-panel-list {
font-weight: 600;
list-style: none;
margin-bottom: 0.5rem;

a {
color: #8AC4FF !important;
color: $color-link !important;

&:hover {
color: #99D0FF !important;
color: $color-link-hover !important;
}
}

}

p.rn-date {
color: #FFFFFFD4;
color: $color-text-muted;
font-size: 0.75rem;
font-weight: 400;
margin-bottom: 0rem;
}

// Mobile hamburger bar on landing page — matches hero background
.lp-mobile-bar {
background-color: $dark;
background-color: $color-surface-hero-inverse;
margin-left: -2.5rem;
margin-right: -2.5rem;
padding: 4rem 2.5rem 0.75rem;
color: white;
color: $color-text-inverse;

.btn {
color: white;
color: $color-text-inverse;
font-size: 0.75rem;
font-weight: 400;
margin-bottom: 0rem;
Expand Down
Loading