From 1be86b937d018441802ada25d572f7701638057f Mon Sep 17 00:00:00 2001 From: Peter Kulko Date: Sun, 27 Oct 2024 18:34:11 +0200 Subject: [PATCH] fix: fixed typography, display and links sections --- www/src/components/_doc-elements.scss | 16 ++++++++++++++++ www/src/components/typography-page/Display.tsx | 2 +- www/src/components/typography-page/Headings.tsx | 2 +- www/src/components/typography-page/Links.tsx | 10 +++++----- 4 files changed, 23 insertions(+), 7 deletions(-) diff --git a/www/src/components/_doc-elements.scss b/www/src/components/_doc-elements.scss index decd92b57e..fb13ca0ec2 100644 --- a/www/src/components/_doc-elements.scss +++ b/www/src/components/_doc-elements.scss @@ -342,3 +342,19 @@ grid-template-columns: repeat(4, 1fr); // 4 columns for large+ screens } } + +.pgn-doc__code-display-block, +.pgn-doc__code-headings-block { + .pgn__data-table-cell-wrap { + max-width: max-content; + } + + @media (--pgn-size-breakpoint-max-width-md) { + overflow: hidden; + overflow-x: scroll; + + .pgn__data-table-layout-wrapper { + overflow-x: initial; + } + } +} diff --git a/www/src/components/typography-page/Display.tsx b/www/src/components/typography-page/Display.tsx index 5762a98ab6..26c7379637 100644 --- a/www/src/components/typography-page/Display.tsx +++ b/www/src/components/typography-page/Display.tsx @@ -10,7 +10,7 @@ export default function Display() { return ( <>

Display

-
+
({ text: `Display ${size}`, className: `display-${size}` }))} diff --git a/www/src/components/typography-page/Headings.tsx b/www/src/components/typography-page/Headings.tsx index f3eb494e9b..ab01ea7f6b 100644 --- a/www/src/components/typography-page/Headings.tsx +++ b/www/src/components/typography-page/Headings.tsx @@ -18,7 +18,7 @@ export default function Headings() { return ( <>

Headings

-
+
Standalone Link, - description: The default style for a tags that don`t appear in a p tag., - }, { example: An inline link in a sentence., description: For links inside a p or with the .inline-link class name., @@ -34,6 +31,9 @@ export default function Links() { return ( <>

Links

+ + Standalone Link - the default style for a tag that appear outside of p tag. +