diff --git a/website/src/pages/LibraryPage.jsx b/website/src/pages/LibraryPage.jsx index 978c942..a130cc5 100644 --- a/website/src/pages/LibraryPage.jsx +++ b/website/src/pages/LibraryPage.jsx @@ -397,23 +397,23 @@ function LibraryToolExample({ module, sourceData, description, categoryTitle, do return (
-
-
-
- {categoryTitle} - {description &&

{description}

} -
-

{copyContent.isolationHelp}

- +
+
+
+
+ {categoryTitle}
+
+ {description &&

{description}

} +

{copyContent.isolationHelp}

diff --git a/website/src/styles/home/library/_copy.scss b/website/src/styles/home/library/_copy.scss index 4142faf..0e10f22 100644 --- a/website/src/styles/home/library/_copy.scss +++ b/website/src/styles/home/library/_copy.scss @@ -1,23 +1,4 @@ -// Rôle : met en page l'action et la modale de copie des exemples de la librairie. -.library-tool-copy-action { - display: flex; - max-width: 860px; - align-items: center; - justify-content: space-between; - gap: var(--space-4); - margin-top: var(--space-4); - padding-top: var(--space-3); - border-top: 1px solid var(--color-border); -} - -.library-tool-copy-action p { - color: var(--color-text-muted); - font-size: var(--font-size-sm); -} - -.library-tool-copy-action .nds-button { - flex: 0 0 auto; -} +// Rôle : met en page la modale de copie des exemples de la librairie. .library-copy-modal { width: min(580px, calc(100vw - var(--space-6))); @@ -116,11 +97,6 @@ } @media (max-width: 767px) { - .library-tool-copy-action { - align-items: flex-start; - flex-direction: column; - } - .library-copy-destination { grid-template-columns: minmax(0, 1fr); } diff --git a/website/src/styles/home/library/_tool-cards.scss b/website/src/styles/home/library/_tool-cards.scss index 33151a2..b2c99e8 100644 --- a/website/src/styles/home/library/_tool-cards.scss +++ b/website/src/styles/home/library/_tool-cards.scss @@ -74,7 +74,17 @@ } .library-tool-intro { + display: grid; min-width: 0; + gap: var(--space-2); +} + +.library-tool-intro-heading { + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + min-width: 0; + align-items: start; + gap: var(--space-4); } .library-tool-title-row { @@ -110,3 +120,22 @@ .library-tool-intro p { max-width: 860px; } + +.library-tool-intro .library-tool-copy-help { + color: var(--color-text-muted); + font-size: var(--font-size-sm); +} + +.library-tool-copy-button { + flex: 0 0 auto; +} + +@media (max-width: 520px) { + .library-tool-intro-heading { + grid-template-columns: minmax(0, 1fr); + } + + .library-tool-copy-button { + justify-self: start; + } +}