I have the list of links, of the index of 100% responsive videos adapted to the help of Risa__B .
In my previous question it was a big problem to adapt it, even though it was only a few small changes to the styles
css
I don't want the responsive adaptation to get lost and return to the same old problem, but that's not the problem for this purpose.
To the list of videos I want to be able to add an Expand to show and hide the contents as can be seen in the image in - Section 1 and add the same effect, one could say, by adding a description to each of the videos, which is Activate an arrow when a video contains a description and if there is no description, do not show the arrow.
Example:
How could I add the same functionality of the image example, to my video listing?
.chapters {
width: 100%;
background-color: white;
border-left: 1px solid rgb(230, 230, 230);
border-right: 1px solid rgb(230, 230, 230);
border-bottom: 1px solid rgb(230, 230, 230);
}
.view {
list-style-type: none;
margin: 0;
padding: 0;
font-size: 1.2em;
}
.view li {
padding: .5% 1%;
border-top: 1px solid rgb(230, 230, 230);
}
.view li:hover{
background:#f9f9f9;
}
.rows {
text-decoration: none;
display: flex;
align-items:center;
/*justify-content:space-between;*/
}
.play {
padding-right: 10px;
/*align-self:center;*/
}
.video-title {
width:60%;
white-space: normal !important;
}
.view-preview,.length {
color: #000;
text-align:center;
}
.view-preview{
width:23%;
}
.length {
width:10%;
}
<div class="chapters">
<ul class="view">
<li>
<a class="rows" href="video.mp4">
<div class="play"><img src="http://www.murata.com/images/icons/moonicons/moonicon-play.png"></div>
<div class="video-title">audio video audio video audio video</div>
<div class="view-preview"> Vista Previa</div>
<div class="length"> 02:34</div>
</a>
</li>
<li>
<a class="rows" href="video2.mp4">
<div class="play"><img src="http://www.murata.com/images/icons/moonicons/moonicon-play.png"></div>
<div class="video-title">audio video audio video audio video</div>
<div class="view-preview"> Vista Previa</div>
<div class="length"> 02:34</div>
</a>
</li>
</ul>
</div>
Well, this time if I hope it is what you need, I managed to get an easier Jquey function, enjoy it: The jquery what checks if it is a child, if so it shows it. and the css was just styling.
Greetings.
Everything would have been easier if you had shared that link before.
I think it does not need explanations because they are above, there were only some changes in the Css and when we click to show more details.
Enjoy it, greetings from Honduras.
It's just an example of all the code you'll need to write. You can explore it, it has bootstrap by design, and the css is in external links