Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/bootstrap4/components/media.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*! @tacc/core-styles 2.54.1+ | MIT | github.com/TACC/Core-Styles */.media-link{align-items:center;gap:1rem}
1 change: 1 addition & 0 deletions dist/bootstrap4/components/media/demo.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/core-styles.bootstrap4.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/lib/_imports/bootstrap4/components/media.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.media-link {
gap: 1rem;
align-items: center;
}
3 changes: 3 additions & 0 deletions src/lib/_imports/bootstrap4/components/media/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
label: Media
context:
shouldLoadBootstrap: true
14 changes: 14 additions & 0 deletions src/lib/_imports/bootstrap4/components/media/demo.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* This CSS is ONLY for the pattern library. It is NOT part of the pattern. */

.media img {
max-width: 120px;
height: auto;
}

dd {
float: left;
width: clamp(300px, calc(50% - 25px), 400px); /* 25px is <dd> margin-left */
}
dt {
clear: left;
}
41 changes: 41 additions & 0 deletions src/lib/_imports/bootstrap4/components/media/media.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<dl>
<dt>Bootstrap <code>.media</code></dt>
<dd>
<div class="media">
{{> @img }}
<div class="media-body">
<h4>No Extra Classes</h4>
<p>Default alignment (none).</p>
</div>
</div>
</dd>
<dd>
<div class="media">
{{> @img class="mr-3" }}
<div class="media-body align-self-center">
<h4>Has Extra Classes</h4>
<p>Custom alignment (center).</p>
</div>
</div>
</dd>

<dt>TACC <code>.media.media-link</code></dt>
<dd>
<a href="#" class="media media-link">
{{> @img }}
<div class="media-body">
<h4>HTML5 Markup</h4>
<p>The <code>.media</code> is a link.</p>
</div>
</a>
</dd>
<dd>
<p class="media media-link">
<a href="#" title="HTML4 Markup">{{> @img }}</a>
<span class="media-body">
<a href="#">HTML4 Markup</a><br>
<span>Links are inside <code>.media</code>.</span>
</span>
</p>
</dd>
</dl>
3 changes: 3 additions & 0 deletions src/lib/_imports/bootstrap4/components/media/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
To skin [Bootstrap v4+ Media Object](https://getbootstrap.com/docs/4.6/components/media-object/).

<script src="{{path '/assets/_utils/js/open-ext-links-in-new-window.js'}}" />
1 change: 1 addition & 0 deletions src/lib/_imports/core-styles.bootstrap4.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

@import url("./bootstrap4/components/btn.css");
@import url("./bootstrap4/components/card.css");
@import url("./bootstrap4/components/media.css");
@import url("./bootstrap4/utilities/color-text.css");