Modèle:Accueil/featured/styles.css
De Nefald Wiki
Autres actions
/* Featured quote styling */
.tg-mainpage-featured-quote {
justify-content: center;
}
.tg-mainpage-featured-quote::before {
content: "";
position: absolute;
right: 0;
top: 0;
font-size: 400px;
line-height: 0.75;
opacity: 0.05;
}
.tg-mainpage-featured-quote .tg-card-body {
margin: 1.5rem auto;
}
.tg-mainpage-featured-quote blockquote,
.tg-mainpage-featured-quote p {
margin: 0;
}
/* Featured artist styling */
.tg-mainpage-featured-artist .tg-card-body {
display: flex;
gap: 0.75rem;
align-items: center;
}
.tg-mainpage-featured-artist-portrait {
width: 48px;
height: 48px;
border-radius: 50%;
overflow: hidden;
}
.tg-mainpage-featured-artist-portrait img {
width: 100%;
height: 100%;
}
/* Additional featured quote variations */
.tg-mainpage-featured-quote--light::before {
opacity: 0.03;
}
.tg-mainpage-featured-quote--dark::before {
opacity: 0.08;
}
/* Portrait shape variations */
.tg-mainpage-featured-artist-portrait--rounded {
border-radius: 8px;
}
.tg-mainpage-featured-artist-portrait--square {
border-radius: 0;
}
/* Responsive adjustments for featured elements */
@media (max-width: 640px) {
.tg-mainpage-featured-quote::before {
font-size: 200px;
right: -20px;
top: -10px;
}
.tg-mainpage-featured-artist .tg-card-body {
gap: 0.5rem;
}
.tg-mainpage-featured-artist-portrait {
width: 40px;
height: 40px;
}
}
/* Accessibility improvements */
.tg-mainpage-featured-quote::before {
user-select: none;
z-index: -1;
}
/* Enhanced visual styling */
.tg-mainpage-featured-artist-portrait {
flex-shrink: 0;
background-color: #f8f9fa;
border: 1px solid #eaecf0;
}
.tg-mainpage-featured-artist-info {
flex-grow: 1;
min-width: 0;
}
.tg-mainpage-featured-quote .tg-card-body {
text-align: center;
position: relative;
z-index: 1;
}
/* Hover effects for better interactivity */
.tg-mainpage-featured-artist:hover .tg-mainpage-featured-artist-portrait {
transform: scale(1.05);
transition: transform 0.2s ease;
}
.tg-mainpage-featured-quote:hover::before {
opacity: 0.08;
transition: opacity 0.3s ease;
}