From 6f7879013a5c675f68f6cb614c741875f5306741 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 00:14:53 +0300 Subject: [PATCH 01/10] docs: add carbon ads to content --- src/theme/MDXContent/index.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/theme/MDXContent/index.js diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js new file mode 100644 index 000000000000..be0b265779d5 --- /dev/null +++ b/src/theme/MDXContent/index.js @@ -0,0 +1,11 @@ +import React from 'react'; +import MDXContent from '@theme-original/MDXContent'; + +export default function MDXContentWrapper(props) { + return ( + <> + + + + ); +} From ea4644a4a6f4f064c207384f9f6578a0cf92da8a Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 01:04:14 +0300 Subject: [PATCH 02/10] update ad --- src/css/customTheme.css | 80 +++++++++++++++++++++++++++++++++++ src/theme/MDXContent/index.js | 28 +++++++++++- 2 files changed, 107 insertions(+), 1 deletion(-) diff --git a/src/css/customTheme.css b/src/css/customTheme.css index 164ad754ecd3..7fb84b4bd5db 100644 --- a/src/css/customTheme.css +++ b/src/css/customTheme.css @@ -160,3 +160,83 @@ html[data-theme="dark"] .header-github-link::before { border-top-left-radius: 3px; } } + +.bsa-standard { + --width: 960px; + --gap: 1.5ch; + position: relative; + max-inline-size: var(--width); + font-size: 16px; + + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', + Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', + sans-serif; +} + +.bsa-standard .native-banner { + display: flex; + column-gap: var(--gap); + row-gap: var(--gap); + flex-wrap: wrap; + align-items: center; + padding: 1em; + box-shadow: inset 0 0 2px hsla(0, 0%, 0%, 0.15); + + text-decoration: none; +} + +.bsa-standard .native-img { + flex-shrink: 0; + flex-basis: 125px; + height: 50px; + line-height: 0; +} + +.bsa-standard .native-main { + display: flex; + flex-grow: 1; + flex-basis: 300px; + flex-direction: row; + flex-wrap: wrap; + align-items: center; + gap: var(--gap); +} + +.bsa-standard .native-details { + display: flex; + flex-grow: 1; + flex-basis: 300px; + + flex-direction: column; + flex-wrap: wrap; + padding-left: var(--gap); +} + +.bsa-standard .native-company { + margin-bottom: 0.5ex; + font-weight: 600; + + font-size: 0.625em; + line-height: 1.4; + letter-spacing: 0.2ch; + text-transform: uppercase; +} + +.bsa-standard .native-desc { + font-weight: 300; + font-size: 1em; + line-height: 1.4; + letter-spacing: 1px; +} + +.bsa-standard .native-cta { + padding: 10px 16px; + border-radius: 3px; + font-weight: 600; + + font-size: 0.875em; + line-height: 1; + letter-spacing: 0.1ch; + text-transform: uppercase; + white-space: nowrap; +} diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js index be0b265779d5..62fab1ce6995 100644 --- a/src/theme/MDXContent/index.js +++ b/src/theme/MDXContent/index.js @@ -4,7 +4,33 @@ import MDXContent from '@theme-original/MDXContent'; export default function MDXContentWrapper(props) { return ( <> - +
+ ); From a0696fd9625eb7307eb677754194a4c2e9c35384 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 01:45:56 +0300 Subject: [PATCH 03/10] update ad --- src/theme/MDXContent/index.js | 53 ++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js index 62fab1ce6995..bcd6fcd3e1b9 100644 --- a/src/theme/MDXContent/index.js +++ b/src/theme/MDXContent/index.js @@ -5,33 +5,34 @@ export default function MDXContentWrapper(props) { return ( <>
- + + ); } From 124cb915d6e44c790720569a7a641a69ac27b972 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 02:03:12 +0300 Subject: [PATCH 04/10] avoid minification --- src/theme/MDXContent/index.js | 49 ++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 24 deletions(-) diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js index bcd6fcd3e1b9..3a6479d12f26 100644 --- a/src/theme/MDXContent/index.js +++ b/src/theme/MDXContent/index.js @@ -8,30 +8,31 @@ export default function MDXContentWrapper(props) { ); From 08157aef26c5c0f0b284f87b3ca792ddb942d4a3 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 02:24:35 +0300 Subject: [PATCH 05/10] Revert "avoid minification" This reverts commit 124cb915d6e44c790720569a7a641a69ac27b972. --- src/theme/MDXContent/index.js | 49 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js index 3a6479d12f26..bcd6fcd3e1b9 100644 --- a/src/theme/MDXContent/index.js +++ b/src/theme/MDXContent/index.js @@ -8,31 +8,30 @@ export default function MDXContentWrapper(props) { ); From 0acfec85487c3e833daf53f36db6f35242c7e4b9 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 02:25:14 +0300 Subject: [PATCH 06/10] refactor --- src/theme/MDXContent/index.js | 48 +++++++++++++++++------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js index bcd6fcd3e1b9..e5c331f450bd 100644 --- a/src/theme/MDXContent/index.js +++ b/src/theme/MDXContent/index.js @@ -8,30 +8,30 @@ export default function MDXContentWrapper(props) { ); From 010105406139867979711b9141d92729a0803fe4 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 02:40:15 +0300 Subject: [PATCH 07/10] refactor --- src/theme/MDXContent/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js index e5c331f450bd..ef072cdbbfc1 100644 --- a/src/theme/MDXContent/index.js +++ b/src/theme/MDXContent/index.js @@ -8,7 +8,7 @@ export default function MDXContentWrapper(props) { ); From d360527c10b79dae31d3e8e71d3e07890626d9fa Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 11:59:56 +0300 Subject: [PATCH 08/10] fix ads --- src/theme/MDXContent/index.js | 42 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js index ef072cdbbfc1..b76679891917 100644 --- a/src/theme/MDXContent/index.js +++ b/src/theme/MDXContent/index.js @@ -6,33 +6,33 @@ export default function MDXContentWrapper(props) { <>
- + ); } + From 86b1622362ea20cdba2553430119d3e449af9d04 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 12 Oct 2023 12:26:57 +0300 Subject: [PATCH 09/10] add id --- src/theme/MDXContent/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/MDXContent/index.js b/src/theme/MDXContent/index.js index b76679891917..e9e7de4b58c6 100644 --- a/src/theme/MDXContent/index.js +++ b/src/theme/MDXContent/index.js @@ -6,7 +6,7 @@ export default function MDXContentWrapper(props) { <>
- + +