161 lines
4.9 KiB
CSS
161 lines
4.9 KiB
CSS
/* cool dark glass UI for the CTF blog */
|
|
/* Variables */
|
|
:root{
|
|
--bg-900: #0b0e12;
|
|
--bg-800: #0f1720;
|
|
--panel: rgba(255,255,255,0.04);
|
|
--glass: rgba(255,255,255,0.04);
|
|
--muted: rgba(255,255,255,0.6);
|
|
--accent-1: #6EE7B7; /* mint */
|
|
--accent-2: #7C4DFF; /* violet */
|
|
--danger: #FF6B6B;
|
|
--radius-lg: 14px;
|
|
--radius-md: 10px;
|
|
--shadow-1: 0 6px 20px rgba(2,6,23,0.6);
|
|
--card-border: linear-gradient(120deg, rgba(124,77,255,0.18), rgba(110,231,183,0.12));
|
|
}
|
|
|
|
*{box-sizing:border-box}
|
|
html,body{height:100%}
|
|
body{
|
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
|
|
background: radial-gradient(1200px 600px at 10% 10%, rgba(124,77,255,0.06), transparent),
|
|
radial-gradient(900px 400px at 90% 90%, rgba(110,231,183,0.03), transparent),
|
|
linear-gradient(180deg,var(--bg-900),var(--bg-800));
|
|
color: #e6eef6;
|
|
margin:0;
|
|
-webkit-font-smoothing:antialiased;
|
|
-moz-osx-font-smoothing:grayscale;
|
|
padding:28px;
|
|
line-height:1.45;
|
|
}
|
|
|
|
header{
|
|
display:flex;
|
|
gap:18px;
|
|
align-items:center;
|
|
justify-content:space-between;
|
|
max-width:1100px;
|
|
margin:0 auto 22px;
|
|
padding:14px 18px;
|
|
border-radius:var(--radius-lg);
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
|
|
box-shadow: var(--shadow-1);
|
|
border: 1px solid rgba(255,255,255,0.03);
|
|
backdrop-filter: blur(8px) saturate(120%);
|
|
}
|
|
header h1{
|
|
margin:0;
|
|
font-size:20px;
|
|
letter-spacing:0.4px;
|
|
display:flex;
|
|
gap:10px;
|
|
align-items:center;
|
|
}
|
|
.logo-dot{
|
|
width:12px;height:12px;border-radius:50%;
|
|
background: conic-gradient(from 180deg at 50% 50%, var(--accent-1), var(--accent-2));
|
|
box-shadow:0 4px 18px rgba(124,77,255,0.18), inset 0 -2px 6px rgba(255,255,255,0.04);
|
|
}
|
|
|
|
/* nav */
|
|
nav a{
|
|
color:var(--muted);
|
|
text-decoration:none;
|
|
padding:8px 12px;
|
|
border-radius:10px;
|
|
font-size:14px;
|
|
}
|
|
nav a:hover{ color: white; background: rgba(255,255,255,0.03) }
|
|
nav a.active{
|
|
background: linear-gradient(90deg, rgba(124,77,255,0.12), rgba(110,231,183,0.08));
|
|
color: white;
|
|
box-shadow: 0 6px 18px rgba(2,6,23,0.5);
|
|
}
|
|
|
|
main{
|
|
max-width:1100px;
|
|
margin: 18px auto;
|
|
display:grid;
|
|
grid-template-columns: 1fr;
|
|
gap:18px;
|
|
}
|
|
|
|
form, article, .card{
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
|
|
border-radius: var(--radius-md);
|
|
padding:16px;
|
|
border: 1px solid rgba(255,255,255,0.03);
|
|
box-shadow: 0 8px 30px rgba(2,6,23,0.45);
|
|
}
|
|
|
|
input[type="text"], input[type="password"], textarea, input[type="file"], select {
|
|
width:100%;
|
|
padding:10px 12px;
|
|
border-radius:8px;
|
|
background: rgba(255,255,255,0.02);
|
|
border:1px solid rgba(255,255,255,0.04);
|
|
color: #e6eef6;
|
|
outline:none;
|
|
font-size:14px;
|
|
margin-top:6px;
|
|
}
|
|
textarea{ min-height:120px; resize:vertical; }
|
|
|
|
button, .btn {
|
|
display:inline-block;
|
|
padding:10px 14px;
|
|
border-radius:10px;
|
|
border: none;
|
|
cursor:pointer;
|
|
font-weight:600;
|
|
background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
|
|
color: #04111a;
|
|
transition: transform .12s ease, box-shadow .12s ease, opacity .12s;
|
|
box-shadow: 0 8px 20px rgba(124,77,255,0.12);
|
|
}
|
|
button:hover, .btn:hover{ transform: translateY(-2px); box-shadow: 0 14px 32px rgba(124,77,255,0.14) }
|
|
button.ghost{
|
|
background: transparent; color: var(--muted); border:1px solid rgba(255,255,255,0.04);
|
|
}
|
|
|
|
article h3{ margin:0 0 6px; font-size:18px }
|
|
article p { color: var(--muted); margin:6px 0; }
|
|
article img{ border-radius:8px; max-width:100%; display:block; margin:10px 0; border:1px solid rgba(255,255,255,0.03) }
|
|
|
|
pre{
|
|
background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.01));
|
|
border-radius:8px; padding:12px; overflow:auto; color:#cfeff1;
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
|
|
font-size:13px; border:1px solid rgba(255,255,255,0.03);
|
|
}
|
|
|
|
ul{ list-style:none; padding:0; margin:0 0 10px 0; display:flex; gap:8px; flex-wrap:wrap }
|
|
ul li{
|
|
background: linear-gradient(90deg, rgba(124,77,255,0.12), rgba(110,231,183,0.07));
|
|
padding:8px 10px; border-radius:10px; color:#eafbf6; font-weight:600;
|
|
}
|
|
|
|
footer{ max-width:1100px; margin:18px auto; color:var(--muted); font-size:13px; text-align:center }
|
|
|
|
@media (min-width:900px){
|
|
main{ grid-template-columns: 1fr 360px; align-items:start; }
|
|
}
|
|
|
|
.label-muted{ color:var(--muted); font-size:13px }
|
|
.badge{
|
|
display:inline-block; padding:6px 10px; border-radius:999px; font-weight:700; font-size:12px;
|
|
background: linear-gradient(90deg, rgba(124,77,255,0.12), rgba(110,231,183,0.06)); color:#e6fef0;
|
|
}
|
|
|
|
.file-wrap{
|
|
display:flex; gap:12px; align-items:center;
|
|
}
|
|
.file-wrap input[type=file]{ display:none; }
|
|
.file-btn{
|
|
display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:8px;
|
|
background: rgba(255,255,255,0.02); border:1px dashed rgba(255,255,255,0.04); color:var(--muted);
|
|
}
|
|
|
|
:focus{ outline: 3px solid rgba(124,77,255,0.12); outline-offset:3px }
|