mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
✨ feat(shortcodes): add inline option to image shortcodes (#315)
This commit is contained in:
parent
6a4f4244e0
commit
27525fc13f
10 changed files with 101 additions and 39 deletions
|
@ -1,21 +1,22 @@
|
|||
.image-hover-container {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
|
||||
.image-default {
|
||||
display: block;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.image-hovered {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover .image-hovered {
|
||||
display: block;
|
||||
}
|
||||
&:hover {
|
||||
.image-default {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&:hover .image-default {
|
||||
display: none;
|
||||
.image-hovered {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue