-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Responsive image aspect ratio variants (#5308)
* Add responsive image container aspect ratio classes * Add responsive image container aspect ratio example * tweak aspect ratio responsive mixin calling * Add responsive image container aspect ratio class reference * Add more responsive aspect ratio examples, and add them to image container docs page * Add responsive aspect ratio class release note * Better explain aspect ratio classnames table * fix mdspell errors * Add image combined as a responsive example * Widen image container aspect ratio class names list * Explain motive behind responsive aspect ratio classes * Move image container breakpoint bounds to _settings_breakpoints * use width inequalities rather than min/max-width
- Loading branch information
Showing
8 changed files
with
387 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
140 changes: 140 additions & 0 deletions
140
templates/docs/examples/patterns/image/container/aspect-ratio/responsive-all.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Image Container / Aspect Ratio / Responsive / All{% endblock %} | ||
|
||
{% block standalone_css %}patterns_image{% endblock %} | ||
|
||
{% block content %} | ||
<section> | ||
<span>Cinematic on large, 16:9 on medium, 2:3 on small</span> | ||
{% include 'docs/examples/patterns/image/container/aspect-ratio/responsive.html' %} | ||
</section> | ||
|
||
<section> | ||
<span>Cinematic on large, 16:9 on medium</span> | ||
<div class="p-image-container--cinematic-on-large p-image-container--16-9-on-medium is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>Cinematic on large, 2:3 on small</span> | ||
<div class="p-image-container--cinematic-on-large p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>16:9 on medium, 2:3 on small</span> | ||
<div class="p-image-container--16-9-on-medium p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>Cinematic on large</span> | ||
<div class="p-image-container--cinematic-on-large is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>Cinematic on large, 16:9 on medium</span> | ||
<div class="p-image-container--cinematic-on-large p-image-container--16-9-on-medium is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>Cinematic on large, 2:3 on small</span> | ||
<div class="p-image-container--cinematic-on-large p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>16:9 on medium</span> | ||
<div class="p-image-container--16-9-on-medium is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>16:9 on medium, 2:3 on small</span> | ||
<div class="p-image-container--16-9-on-medium p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>2:3 on small</span> | ||
<div class="p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>16:9 on medium</span> | ||
<div class="p-image-container--16-9-on-medium is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>Cinematic on large, 16:9 on medium, 2:3 on small</span> | ||
<div class="p-image-container--cinematic-on-large p-image-container--16-9-on-medium p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>Cinematic on large, 16:9 on medium</span> | ||
<div class="p-image-container--cinematic-on-large p-image-container--16-9-on-medium is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>Cinematic on large, 2:3 on small</span> | ||
<div class="p-image-container--cinematic-on-large p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>16:9 on medium, 2:3 on small</span> | ||
<div class="p-image-container--16-9-on-medium p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>16:9 on medium</span> | ||
<div class="p-image-container--16-9-on-medium is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
<section> | ||
<span>2:3 on small</span> | ||
<div class="p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</section> | ||
|
||
{% endblock %} |
11 changes: 11 additions & 0 deletions
11
templates/docs/examples/patterns/image/container/aspect-ratio/responsive.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Image Container / Aspect Ratio / Responsive{% endblock %} | ||
|
||
{% block standalone_css %}patterns_image{% endblock %} | ||
|
||
{% block content %} | ||
<div class="p-image-container--cinematic-on-large p-image-container--16-9-on-medium p-image-container--2-3-on-small is-highlighted"> | ||
<img class="p-image-container__image" | ||
src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.