use truncatedDescription
This commit is contained in:
@@ -239,6 +239,55 @@
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.truncated-description, .full-description {
|
||||
position: relative;
|
||||
padding-bottom: 40px;
|
||||
}
|
||||
|
||||
.truncated-description {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.truncated-description::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 40px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 60px;
|
||||
background: linear-gradient(transparent, #fff);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.show-more-btn, .show-less-btn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #e0e0e0;
|
||||
color: var(--primary-red);
|
||||
font-size: 0.9rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
padding: 8px 16px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
transition: all 0.2s;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
||||
width: auto;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.show-more-btn:hover, .show-less-btn:hover {
|
||||
background-color: #f0f0f0;
|
||||
box-shadow: 0 3px 6px rgba(0,0,0,0.15);
|
||||
transform: translateX(-50%) translateY(-2px);
|
||||
}
|
||||
|
||||
/* Licence de la vidéo */
|
||||
.video-licence {
|
||||
background-color: #f9f9f9;
|
||||
|
||||
Reference in New Issue
Block a user