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 new file mode 100644 index 000000000000..4536e5ee090e --- /dev/null +++ b/src/theme/MDXContent/index.js @@ -0,0 +1,38 @@ +import React from 'react'; +import MDXContent from '@theme-original/MDXContent'; + +export default function MDXContentWrapper(props) { + return ( + <> +
+