Skip to content

Commit

Permalink
Update appbuilder theme font styles and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dobromirts committed Apr 15, 2024
1 parent 1d4fffd commit f2e34f3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 25 deletions.
4 changes: 2 additions & 2 deletions src/app/services/rendering/article.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ export class ArticleRenderingService extends RenderingService {
imagePath = languageVersion === 'en' ? INDIGO_DESIGN_CTA_BANNER : JP_INDIGO_DESIGN_CTA_BANNER;
} else if (productLink.includes("appbuilder")) {
action = 'Learn More';
productLink = "https://www.infragistics.com/products/appbuilder";
productLink = "https://www.appbuilder.dev/help";
imagePath = languageVersion === 'en' ? APP_BUILDER_CTA_BANNER : JP_APP_BUILDER_CTA_BANNER;
} else if (productLink.includes("web-components")) {
imagePath = languageVersion === 'en' ? WEB_COPONENTS_CTA_BANNER : JP_WEB_COPONENTS_CTA_BANNER;
Expand All @@ -360,7 +360,7 @@ export class ArticleRenderingService extends RenderingService {

if ($(".article-container h2")[4]){
const builderImagePath = languageVersion === 'en' ? APP_BUILDER_CTA_BANNER : JP_APP_BUILDER_CTA_BANNER;
const аppbuilderLink = 'https://www.infragistics.com/products/appbuilder';
const аppbuilderLink = 'https://www.appbuilder.dev/help';
action = 'Learn More';
this.appendBanner(4, аppbuilderLink, builderImagePath, action, 'App Builder | CTA Banner');
}
Expand Down
15 changes: 6 additions & 9 deletions src/styles/appbuilder/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,20 @@ $text-dim-light: #ddd;
$black: #000;
$text-dark: #222;
$title-color: $text-base;

// Toc
$toc-font-size: rem(14px);

// h1
$h1-f-family: "Figtree", sans-serif;
$h1-f-size: 56px;
$h2-f-family: "Figtree", sans-serif;
$h1-f-size: 36px;
$h1-f-weight: bold;
$h1-l-height: 56px;
$h1-l-height: 42px;
$h1-m-top: 36px;
$h1-m-bottom: 30px;

// h2
$h2-f-family: "Figtree", sans-serif;
$h2-f-size: 48px;
$h2-f-size: 28px;
$h2-f-weight: bold;
$h2-l-height: 55px;
$h2-l-height: 36px;
$h2-m-top: 36px;
$h2-m-bottom: 16px;

Expand All @@ -49,5 +46,5 @@ $h6-f-family: "Figtree", sans-serif;
$h6-f-weight: normal;

// Paragraph
$p-l-height: 30px;
$p-l-height: 1.5rem;
$p-m-bottom: 1.5rem;
20 changes: 6 additions & 14 deletions src/styles/appbuilder/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
}

@media only screen and (min-width: 1281px) {
@media only screen and (min-width: 1200px) {
.mega-sticky-wrapper{
height: 120px !important;
}
Expand All @@ -23,7 +23,7 @@
}
}

@media only screen and (max-width: 1281px) {
@media only screen and (max-width: 1200px) {
.mega-sticky-wrapper{
height: unset !important;
}
Expand All @@ -32,7 +32,7 @@
}
}

@media only screen and (max-width: 1281px) {
@media only screen and (max-width: 1200px) {
#main{
padding-top: rem(16px);
}
Expand All @@ -47,23 +47,15 @@
margin-top: unset;
}

@media only screen and (max-width: 1281px) {
@media only screen and (max-width: 1200px) {
.w-m-100 {
width: 100% !important;
padding-left: rem(16px) !important;
padding-right: rem(16px) !important;
}
}

.anchorjs-link {
font-size: rem(26px);
}

.affix ul > li > a {
font-size: rem(14px) !important;
}

.sidenav__header {
font-size: rem(14px) !important;
}

Expand Down Expand Up @@ -91,6 +83,6 @@
text-align: center !important;
}

p {
font-size: rem(20px);
p, article > ol, article > ul, article ul ul {
font-size: rem(16px);
}

0 comments on commit f2e34f3

Please sign in to comment.