1
Files
2025/themes/default/assets/css/article.css

75 lines
1.8 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
article {
.article-hero {
width: 100vw;
height: 100vh;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
z-index: 1;
position: fixed;
top: 0;
&.blurred-cover {
filter: blur(4px);
/* ou ce que vous souhaitez */
}
.image-attribution {
position: absolute;
bottom: 0;
right: 0;
transform-origin: bottom right;
transform: rotate(-90deg) translateX(100%);
font-size: 0.75rem;
color: var(--text-soft);
background: var(--overlay-black-75);
padding: 0.4rem 0.6rem;
border-radius: 6px 6px 0 0;
pointer-events: none;
z-index: 7;
white-space: nowrap;
}
}
.article-content,
aside {
position: relative;
z-index: 2;
max-width: 80ch;
margin: 2rem auto;
padding: 2rem;
background: var(--surface-panel-strong);
border-radius: 12px;
box-shadow: 0 8px 24px var(--overlay-black-30),
inset 0 1px 2px var(--bg-white-05);
border: 1px solid var(--bg-white-05);
}
}
#article-backdrop {
position: absolute;
top: 0;
overflow: hidden;
left: 0;
width: 100vw;
height: auto;
bottom: 0;
/* suffisamment grand pour dépasser larticle */
pointer-events: none;
z-index: 1;
background: linear-gradient(to bottom,
var(--transparent) 0%,
var(--transparent) 100vh,
var(--overlay-black-40) 113vh,
var(--overlay-black-80) 125vh);
}
@media (max-width: 768px) {
article .article-content {
padding: 2rem 0;
}
}