Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QOL-8574 update image icon style #441

Merged
merged 1 commit into from
Mar 18, 2022
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
4 changes: 2 additions & 2 deletions src/assets/_project/_blocks/components/misc/_qg-images.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@
top: calc(50% + 15px);
left: 50%;
transform: translate(-50%, -50%);
width: 3.125rem;
height: auto;
width: 3.125rem !important;
height: auto !important;
}
>span {
padding: 0.5em;
Expand Down
16 changes: 8 additions & 8 deletions src/docs/components/images.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h3 id="figures">Figures</h3>
<br/>
<h4>Basic</h4>
<pre><code class="language-markup">
&lt;figure&gt;
&lt;figure class="qg-fig"&gt;
&lt;img src="https://via.placeholder.com/300.png/ccc/ccc" alt="" /&gt;
&lt;figcaption>
Caption text here
Expand All @@ -104,7 +104,7 @@ <h4>Basic</h4>

<div class="qg-tmplt-example">
<div class="panel-body">
<figure>
<figure class="qg-fig">
<img src="https://via.placeholder.com/300.png/ccc/ccc" alt=""/>
<figcaption>
Caption text here
Expand All @@ -116,11 +116,11 @@ <h4>Basic</h4>
</div>
<br/>
<h4>Alignment</h4>
<p>You can pull this figure left or right (turning it into a cut-in image) by adding the class <code>pull-right</code> or <code>pull-left</code> to the figure element <code>&lt;figure class="pull-right"&gt;</code>,
<p>You can pull this figure left or right (turning it into a cut-in image) by adding the class <code>pull-right</code> or <code>pull-left</code> to the figure element <code>&lt;figure class="qg-fig pull-right"&gt;</code>,
you also need to add <code>class="clearfix"</code> to the parent container.</p>
<pre><code class="language-markup">
&lt;div class="clearfix"&gt;
&lt;figure class="pull-right"&gt;
&lt;figure class="qg-fig pull-right"&gt;
&lt;img src="https://via.placeholder.com/300.png/ccc/ccc" alt="" /&gt;
&lt;figcaption>
Caption text here
Expand All @@ -134,7 +134,7 @@ <h4>Alignment</h4>
</code></pre>
<div class="qg-tmplt-example">
<div class="panel-body clearfix">
<figure class="pull-right">
<figure class="qg-fig pull-right">
<img src="https://via.placeholder.com/300.png/ccc/ccc" alt=""/>
<figcaption>
Caption text here
Expand All @@ -144,7 +144,7 @@ <h4>Alignment</h4>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>
<div class="panel-body clearfix">
<figure class="pull-left">
<figure class="qg-fig pull-left">
<img src="https://via.placeholder.com/300.png/ccc/ccc" alt=""/>
<figcaption>
Caption text here
Expand Down Expand Up @@ -178,7 +178,7 @@ <h1 class="mt-4">Enlarge image</h1>
<p>Image can be enlargable in a lightbox with the following template. By defining <code>data-fancybox</code> you could group images to be navigated in the same lightbox.</p>
<br/><h4>HTML</h4>
<pre><code class="language-markup">
&lt;figure&gt;
&lt;figure class="qg-fig"&gt;
&lt;a href="https://picsum.photos/id/237/1200/700" data-fancybox="gallery_id" data-analytics-link-group="swe-images"&gt;
&lt;span&gt;View larger image&lt;/span&gt;
&lt;img src="https://picsum.photos/id/237/500/200" alt="image_description"/&gt;
Expand All @@ -191,7 +191,7 @@ <h1 class="mt-4">Enlarge image</h1>
&lt;/figure&gt;
</code></pre>
<section>
<figure>
<figure class="qg-fig">
<a href="https://picsum.photos/id/237/1200/700" data-fancybox="gallery_id" data-analytics-link-group="swe-images">
<span>View larger image</span>
<img src="https://picsum.photos/id/237/500/200" alt="image_description"/>
Expand Down