mirror of https://github.com/ColorlibHQ/AdminLTE
add ribbon over image demo & docs
parent
9f5c6bcfd8
commit
c26ef4e556
|
@ -163,3 +163,17 @@ The ribbon comes in three sizes to display more text or use larger font sizes, d
|
|||
```
|
||||
</div>
|
||||
</div>
|
||||
|
||||
##### Image Example Code
|
||||
{: .text-bold .text-dark .mt-5}
|
||||
|
||||
```html
|
||||
<div class="position-relative">
|
||||
<img src="../../dist/img/photo1.png" alt="Photo 1" class="img-fluid">
|
||||
<div class="ribbon-wrapper ribbon-lg">
|
||||
<div class="ribbon bg-success text-lg">
|
||||
Ribbon
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
```
|
||||
|
|
|
@ -800,6 +800,38 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row mt-4">
|
||||
<div class="col-sm-4">
|
||||
<div class="position-relative">
|
||||
<img src="../../dist/img/photo1.png" alt="Photo 1" class="img-fluid">
|
||||
<div class="ribbon-wrapper ribbon-lg">
|
||||
<div class="ribbon bg-success text-lg">
|
||||
Ribbon
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="position-relative">
|
||||
<img src="../../dist/img/photo2.png" alt="Photo 2" class="img-fluid">
|
||||
<div class="ribbon-wrapper ribbon-xl">
|
||||
<div class="ribbon bg-warning text-lg">
|
||||
Ribbon
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-4">
|
||||
<div class="position-relative" style="min-height: 180px;">
|
||||
<img src="../../dist/img/photo3.jpg" alt="Photo 3" class="img-fluid">
|
||||
<div class="ribbon-wrapper ribbon-xl">
|
||||
<div class="ribbon bg-danger text-xl">
|
||||
Ribbon
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.card-body -->
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue