-
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.
Add new image container component and deprecate legacy image variants (…
…#5097) * Add aspect ratio & highlighted background image classes. Deprecate old image classes. * Apply image container release notes suggestions from code review * Add class references to image docs --------- Co-authored-by: Bartek Szopka <[email protected]>
- Loading branch information
Showing
7 changed files
with
165 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "vanilla-framework", | ||
"version": "4.12.2", | ||
"version": "4.13.0", | ||
"author": { | ||
"email": "[email protected]", | ||
"name": "Canonical Webteam" | ||
|
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
10 changes: 10 additions & 0 deletions
10
templates/docs/examples/patterns/image/container/aspect-ratio/16-9.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,10 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Image Container / Aspect Ratio / 16:9{% endblock %} | ||
|
||
{% block standalone_css %}patterns_image{% endblock %} | ||
|
||
{% block content %} | ||
<div class="p-image-container--16-9 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 %} |
37 changes: 37 additions & 0 deletions
37
templates/docs/examples/patterns/image/container/aspect-ratio/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,37 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Image Container / Aspect Ratio / All{% endblock %} | ||
|
||
{% block standalone_css %}patterns_image{% endblock %} | ||
|
||
{% block content %} | ||
<div> | ||
<span>16:9</span> | ||
<div class="p-image-container--16-9 is-highlighted"> | ||
<img class="p-image-container__image" src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</div> | ||
<div> | ||
<span>3:2</span> | ||
<div class="p-image-container--3-2 is-highlighted"> | ||
<img class="p-image-container__image" src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</div> | ||
<div> | ||
<span>2:3</span> | ||
<div class="p-image-container--2-3 is-highlighted"> | ||
<img class="p-image-container__image" src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</div> | ||
<div> | ||
<span>2.4:1 (Cinematic)</span> | ||
<div class="p-image-container--cinematic is-highlighted"> | ||
<img class="p-image-container__image" src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</div> | ||
<div> | ||
<span>1:1 (Square)</span> | ||
<div class="p-image-container--square is-highlighted"> | ||
<img class="p-image-container__image" src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" width="300" alt=""> | ||
</div> | ||
</div> | ||
{% endblock %} |
10 changes: 10 additions & 0 deletions
10
templates/docs/examples/patterns/image/container/highlighted.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,10 @@ | ||
{% extends "_layouts/examples.html" %} | ||
{% block title %}Image Container / Highlighted{% endblock %} | ||
|
||
{% block standalone_css %}patterns_image{% endblock %} | ||
|
||
{% block content %} | ||
<div class="p-image-container is-highlighted"> | ||
<img class="p-image-container__image" src="https://assets.ubuntu.com/v1/9b4c074f-Kernelt%20industries-80-short.png" alt="" width="250"> | ||
</div> | ||
{% endblock %} |
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