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

205 lines
4.8 KiB
CSS

article>header,
main>header {
position: relative;
z-index: 10;
width: 90%;
max-width: 1200px;
margin: 0 auto 2rem auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: .5rem 1rem;
background:
radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 60%),
linear-gradient(to bottom, rgba(15, 15, 15, 1), rgba(1, 1, 1, 1));
border-radius: 0 0 2rem 2rem;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
gap: 1rem;
.site-logo {
flex-shrink: 0;
margin: auto;
}
.header-content {
flex: 1;
min-width: 200px;
display: flex;
flex-direction: column;
justify-content: center;
color: var(--text-white);
}
.page-title {
font-size: 1.5rem;
margin: 0;
font-weight: 600;
}
.page-meta {
font-size: 0.875rem;
margin-top: .25rem;
opacity: 0.8;
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
}
}
.tablet-header {
position: sticky;
top: 0;
z-index: 9;
display: flex;
align-items: center;
gap: 0.75rem;
width: 85%;
max-width: 1140px;
margin: -4.5rem auto 2rem auto;
padding: 0.4rem 1rem;
height: 2.5rem;
background-color: var(--surface-elevated);
background-image:
/* Stries métalliques irrégulières */
repeating-linear-gradient(to right,
hsla(0, 0%, 28%, 0.02) 0%,
hsla(0, 0%, 28%, 0.02) 4%,
hsla(0, 0%, 32%, 0.04) 5%,
hsla(0, 0%, 28%, 0.02) 6%),
/* Stries secondaires plus douces */
repeating-linear-gradient(to right,
hsla(0, 0%, 22%, 0.01) 0%,
hsla(0, 0%, 22%, 0.01) 2%,
hsla(0, 0%, 26%, 0.03) 3%,
hsla(0, 0%, 22%, 0.01) 4%),
/* Effet d'ombrage et reflet léger */
linear-gradient(to bottom,
hsl(0, 0%, 18%) 0%,
hsl(0, 0%, 22%) 47%,
hsl(0, 0%, 18%) 53%,
hsl(0, 0%, 16%) 100%);
background-size: 200px 100%;
background-repeat: repeat;
border-radius: 0 0 1rem 1rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
overflow: hidden;
.tablet-links {
display: flex;
gap: .5rem;
>a,
summary {
width: 32px;
height: 32px;
min-width: 32px;
min-height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: var(--surface-elevated);
color: var(--text-light);
font-size: 1rem;
text-decoration: none;
border: none;
outline: none;
transition: background 0.2s ease, color 0.2s ease;
}
>a:hover,
summary:hover {
background-color: var(--surface-elevated-hover);
color: var(--text-white);
}
summary {
list-style: none;
cursor: pointer;
padding: 0;
margin: 0;
}
details[open] summary {
background-color: var(--border-dark);
color: var(--text-white);
}
/* Empêche l'effet de flèche par défaut dans WebKit */
summary::-webkit-details-marker {
display: none;
}
summary::marker {
content: "";
}
}
.tablet-logo {
height: 32px;
flex-shrink: 0;
}
.tablet-title {
font-size: 0.9rem;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--text-dim);
flex: 1;
}
#toc {
position: relative;
#TableOfContents {
position: fixed;
top: 2.5rem;
z-index: 8;
width: clamp(300px, 50vw, 600px);
max-height: 50vh;
right: 0;
margin: 0 auto;
background-color: var(--surface-elevated);
border: 1px solid var(--border-panel);
border-radius: 0.5rem;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
overflow: auto;
padding: 1rem;
scrollbar-width: thin;
scrollbar-color: var(--scrollbar-thumb) var(--surface-elevated);
}
#TableOfContents ul {
list-style: none;
padding-left: 1rem;
}
#TableOfContents li {
margin: 0.25rem 0;
}
#TableOfContents a {
text-decoration: none;
color: var(--text-light);
transition: color 0.2s ease;
display: block;
}
#TableOfContents a:hover {
color: var(--accent-blue);
text-decoration: underline;
}
}
}