Skip to content

Commit

Permalink
Automatic and flexible layout of custom repository options (#6300)
Browse files Browse the repository at this point in the history
Handles narrower layouts where 2 columns caused overflow of some of the
entries.

Fixes #4591
  • Loading branch information
parlough authored Jan 4, 2025
1 parent 62607d6 commit 24fd674
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 9 deletions.
24 changes: 24 additions & 0 deletions src/_sass/_site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,30 @@ main .content {
}
}

.logo-link-grids {
list-style-type: none;
padding: 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
gap: 1rem;
margin-left: 1rem;

a {
display: flex;
align-items: center;
gap: 0.5rem;

span {
font-weight: 500;
}
}

img {
width: 3rem;
margin: 0.25rem;
}
}

.list-image {
width: 48px;
margin: 0.25rem;
Expand Down
26 changes: 17 additions & 9 deletions src/content/tools/pub/custom-package-repositories.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,22 +207,30 @@ with support for token authentication by multiple vendors,
alleviating you from the overhead of hosting and maintaining
your own custom package repository:

<ul class="cols2">
<ul class="logo-link-grids">
<li>
<img src="/assets/img/tools/cloudsmith.svg" class="list-image" alt="Cloudsmith logo">
<a href="https://help.cloudsmith.io/docs/dart-repository"><b>Cloudsmith</b></a>
<a href="https://help.cloudsmith.io/docs/dart-repository">
<img src="/assets/img/tools/cloudsmith.svg" alt="Cloudsmith logo">
<span>Cloudsmith</span>
</a>
</li>
<li>
<img src="/assets/img/tools/proget.svg" class="list-image" alt="Inedo ProGet logo">
<a href="https://docs.inedo.com/docs/proget/feeds/pub"><b>Inedo ProGet</b></a>
<a href="https://docs.inedo.com/docs/proget/feeds/pub">
<img src="/assets/img/tools/proget.svg" alt="Inedo ProGet logo">
<span>Inedo ProGet</span>
</a>
</li>
<li>
<img src="/assets/img/tools/jfrog.svg" class="list-image" alt="JFrog logo">
<a href="https://www.jfrog.com/confluence/display/JFROG/Pub+Repositories"><b>JFrog Artifactory</b></a>
<a href="https://www.jfrog.com/confluence/display/JFROG/Pub+Repositories">
<img src="/assets/img/tools/jfrog.svg" alt="JFrog logo">
<span>JFrog Artifactory</span>
</a>
</li>
<li>
<img src="/assets/img/tools/onepub.svg" class="list-image" alt="OnePub logo">
<a href="https://onepub.dev"><b>OnePub Dart Repository</b></a>
<a href="https://onepub.dev">
<img src="/assets/img/tools/onepub.svg" alt="OnePub logo">
<span>OnePub Dart Repository</span>
</a>
</li>
</ul>

Expand Down

0 comments on commit 24fd674

Please sign in to comment.