zektyc/public/css/portfolio.css
riricdev f16e6ddde1 feat: page portfolio de style terminal Linux présentant Riric (DotRiric)
- public/portfolio/ (FR + EN) : terminal Debian interactif (prompt dotriric@zektyc:~$, historique, commandes help/whoami/cat/neofetch/contact/sudo/exit/clear...)
- Corrige un bug CSP-critique : String.prototype.link faisait traiter toutes les lignes texte comme des liens (A undefined) ; makeRich exige désormais typeof item.link === 'string'
- Nav : lien Portfolio ajouté (components.js v=8, i18n nav.portfolio)
- Sitemaps FR/EN : /fr/portfolio et /en/portfolio
2026-09-08 12:29:49 +02:00

187 lines
No EOL
3.3 KiB
CSS

/* Terminal portfolio — zektyc */
:root {
--term-bg: #0b0e12;
--term-bg-bar: #151a20;
--term-text: #c9d1d9;
--term-dim: #8b949e;
--term-green: #56d364;
--term-blue: #58a6ff;
--term-red: #ff6b6b;
--term-border: rgba(88, 166, 255, 0.18);
}
.portfolio-main {
max-width: 900px;
margin: 2rem auto;
padding: 0 1.25rem;
flex: 1 0 auto;
width: 100%;
}
.portfolio-head {
margin-bottom: 1rem;
}
.portfolio-head h1 {
font-family: var(--font-head);
font-size: clamp(1.6rem, 4vw, 2.2rem);
margin-bottom: 0.25rem;
}
.portfolio-head p {
color: var(--text-muted);
}
.terminal {
--radius: 12px;
background: var(--term-bg);
border: 1px solid var(--term-border);
border-radius: var(--radius);
overflow: hidden;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
font-family: var(--font-mono);
font-size: 0.9rem;
line-height: 1.55;
width: 100%;
}
[data-theme="dark"] .terminal {
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
}
.terminal-bar {
display: flex;
align-items: center;
gap: 0.5rem;
background: var(--term-bg-bar);
padding: 0.55rem 0.85rem;
border-bottom: 1px solid var(--term-border);
color: var(--term-dim);
font-size: 0.75rem;
user-select: none;
}
.terminal-dots {
display: flex;
gap: 0.35rem;
}
.terminal-dots i {
width: 0.7rem;
height: 0.7rem;
border-radius: 50%;
display: inline-block;
}
.terminal-dots i:nth-child(1) { background: #ff5f57; }
.terminal-dots i:nth-child(2) { background: #febc2e; }
.terminal-dots i:nth-child(3) { background: #28c840; }
.terminal-title {
flex: 1;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.terminal-body {
padding: 0.9rem 1rem 1.2rem;
height: min(62vh, 620px);
overflow-y: auto;
overflow-x: hidden;
}
.terminal-line {
white-space: pre-wrap;
word-break: break-word;
overflow-wrap: anywhere;
min-height: 1.2em;
}
.terminal-line .t-dim { color: var(--term-dim); }
.terminal-line .t-green { color: var(--term-green); }
.terminal-line .t-blue { color: var(--term-blue); }
.terminal-line .t-red { color: var(--term-red); }
.terminal-line a {
color: var(--term-blue);
text-decoration: underline;
text-underline-offset: 2px;
}
.term-ascii {
color: var(--term-green);
white-space: pre;
line-height: 1.2;
}
.term-prompts {
margin-top: 0.6rem;
}
.term-input-row {
display: flex;
align-items: baseline;
gap: 0.45rem;
}
.term-prompt {
color: var(--term-green);
white-space: nowrap;
}
.term-prompt .t-user {
color: var(--term-green);
}
.term-prompt .t-path {
color: var(--term-blue);
}
.term-input {
flex: 1;
min-width: 0;
background: transparent;
border: none;
outline: none;
color: var(--term-text);
font-family: inherit;
font-size: inherit;
line-height: inherit;
padding: 0;
caret-color: var(--term-green);
}
.term-input::selection {
background: rgba(88, 166, 255, 0.35);
}
.term-cursor-blink {
animation: term-blink 1.1s steps(1) infinite;
}
@keyframes term-blink {
50% { opacity: 0; }
}
@media (max-width: 760px) {
.portfolio-main {
margin-top: 1.25rem;
padding: 0 0.6rem;
}
.terminal-body {
height: min(70vh, 520px);
font-size: 0.78rem;
padding: 0.7rem 0.75rem 1rem;
}
.terminal-bar {
padding: 0.45rem 0.6rem;
}
.term-ascii {
font-size: 0.72rem;
}
}