396 行
7.0 KiB
CSS
396 行
7.0 KiB
CSS
:root {
|
|
--ink: #1f1d1a;
|
|
--paper: #f8f1e5;
|
|
--paper-2: #f2e6d2;
|
|
--accent: #f05a28;
|
|
--accent-dark: #c03d12;
|
|
--teal: #0f4c5c;
|
|
--shadow: rgba(31, 29, 26, 0.18);
|
|
--radius: 22px;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: radial-gradient(1200px 600px at 10% 10%, rgba(240, 90, 40, 0.08), transparent 60%),
|
|
radial-gradient(1000px 500px at 90% 20%, rgba(15, 76, 92, 0.12), transparent 60%),
|
|
var(--paper);
|
|
color: var(--ink);
|
|
font-family: var(--font-body), serif;
|
|
line-height: 1.6;
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
body::before {
|
|
content: "";
|
|
position: fixed;
|
|
inset: 0;
|
|
background-image: repeating-linear-gradient(
|
|
0deg,
|
|
rgba(31, 29, 26, 0.03),
|
|
rgba(31, 29, 26, 0.03) 1px,
|
|
transparent 1px,
|
|
transparent 24px
|
|
),
|
|
repeating-linear-gradient(
|
|
90deg,
|
|
rgba(31, 29, 26, 0.02),
|
|
rgba(31, 29, 26, 0.02) 1px,
|
|
transparent 1px,
|
|
transparent 24px
|
|
);
|
|
mix-blend-mode: multiply;
|
|
pointer-events: none;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
main {
|
|
position: relative;
|
|
padding: 64px 8vw 80px;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
font-family: var(--font-display), serif;
|
|
margin: 0;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
button {
|
|
font-family: var(--font-mono), monospace;
|
|
}
|
|
|
|
.page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
}
|
|
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
|
|
gap: 24px;
|
|
align-items: center;
|
|
padding: 36px 40px;
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(246, 232, 210, 0.75));
|
|
border-radius: var(--radius);
|
|
box-shadow: 0 30px 80px var(--shadow);
|
|
border: 1px solid rgba(31, 29, 26, 0.08);
|
|
}
|
|
|
|
.hero-title {
|
|
font-size: clamp(2.4rem, 4vw, 3.4rem);
|
|
}
|
|
|
|
.hero p {
|
|
margin: 12px 0 0;
|
|
font-size: 1.05rem;
|
|
color: rgba(31, 29, 26, 0.78);
|
|
}
|
|
|
|
.hero .stamp {
|
|
justify-self: end;
|
|
border: 2px dashed var(--accent);
|
|
padding: 16px 20px;
|
|
border-radius: 18px;
|
|
transform: rotate(-2deg);
|
|
background: rgba(240, 90, 40, 0.08);
|
|
font-family: var(--font-mono), monospace;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.12em;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
gap: 24px;
|
|
}
|
|
|
|
.card {
|
|
background: rgba(255, 255, 255, 0.85);
|
|
border-radius: var(--radius);
|
|
padding: 24px;
|
|
border: 1px solid rgba(31, 29, 26, 0.08);
|
|
box-shadow: 0 20px 50px rgba(31, 29, 26, 0.12);
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
|
|
.card header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.tag {
|
|
font-family: var(--font-mono), monospace;
|
|
font-size: 0.72rem;
|
|
padding: 6px 10px;
|
|
border-radius: 999px;
|
|
border: 1px solid rgba(31, 29, 26, 0.1);
|
|
background: rgba(15, 76, 92, 0.08);
|
|
color: var(--teal);
|
|
}
|
|
|
|
.username-card {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.input {
|
|
flex: 1 1 220px;
|
|
padding: 12px 14px;
|
|
border-radius: 14px;
|
|
border: 1px solid rgba(31, 29, 26, 0.2);
|
|
background: #fffefb;
|
|
font-size: 0.98rem;
|
|
font-family: var(--font-body), serif;
|
|
}
|
|
|
|
textarea.input {
|
|
resize: vertical;
|
|
}
|
|
|
|
.button {
|
|
padding: 12px 18px;
|
|
border-radius: 14px;
|
|
border: none;
|
|
background: var(--accent);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
}
|
|
|
|
.button.secondary {
|
|
background: rgba(15, 76, 92, 0.12);
|
|
color: var(--teal);
|
|
border: 1px solid rgba(15, 76, 92, 0.3);
|
|
}
|
|
|
|
.button.ghost {
|
|
background: transparent;
|
|
border: 1px dashed rgba(31, 29, 26, 0.3);
|
|
color: var(--ink);
|
|
}
|
|
|
|
.button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.button:not(:disabled):hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 10px 24px rgba(240, 90, 40, 0.25);
|
|
}
|
|
|
|
.upload-area {
|
|
border: 2px dashed rgba(31, 29, 26, 0.25);
|
|
border-radius: 18px;
|
|
padding: 18px;
|
|
display: grid;
|
|
gap: 12px;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
.edit-banner {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
border-radius: 14px;
|
|
border: 1px dashed rgba(31, 29, 26, 0.3);
|
|
background: rgba(15, 76, 92, 0.08);
|
|
}
|
|
|
|
.preview {
|
|
width: 100%;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(31, 29, 26, 0.1);
|
|
object-fit: cover;
|
|
max-height: 260px;
|
|
}
|
|
|
|
.thumbnail-grid {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.thumb-card {
|
|
background: rgba(255, 255, 255, 0.7);
|
|
border: 1px solid rgba(31, 29, 26, 0.08);
|
|
border-radius: 16px;
|
|
padding: 12px;
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.thumb-actions {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.thumb-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.muted {
|
|
color: rgba(31, 29, 26, 0.65);
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.assignments {
|
|
display: grid;
|
|
gap: 14px;
|
|
max-height: 520px;
|
|
overflow: auto;
|
|
padding-right: 6px;
|
|
}
|
|
|
|
.image-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.image-card {
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.crop-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 24px;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.crop-modal {
|
|
width: min(90vw, 720px);
|
|
background: #fff;
|
|
border-radius: 18px;
|
|
padding: 16px;
|
|
display: grid;
|
|
gap: 12px;
|
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.crop-area {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 360px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: #111;
|
|
}
|
|
|
|
.crop-controls {
|
|
display: grid;
|
|
gap: 10px;
|
|
}
|
|
|
|
.crop-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.assignment-item {
|
|
border: 1px solid rgba(31, 29, 26, 0.08);
|
|
padding: 14px 16px;
|
|
border-radius: 16px;
|
|
background: rgba(255, 255, 255, 0.7);
|
|
cursor: pointer;
|
|
transition: border 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.assignment-item.active {
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 12px 22px rgba(240, 90, 40, 0.18);
|
|
}
|
|
|
|
.assignment-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-family: var(--font-mono), monospace;
|
|
font-size: 0.75rem;
|
|
color: rgba(31, 29, 26, 0.6);
|
|
}
|
|
|
|
.markdown {
|
|
background: #fffefb;
|
|
border-radius: 18px;
|
|
padding: 20px;
|
|
border: 1px solid rgba(31, 29, 26, 0.08);
|
|
}
|
|
|
|
.markdown h1, .markdown h2, .markdown h3 {
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.markdown code {
|
|
font-family: var(--font-mono), monospace;
|
|
background: rgba(31, 29, 26, 0.08);
|
|
padding: 2px 6px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.feedback {
|
|
border-left: 4px solid var(--accent);
|
|
padding: 12px 16px;
|
|
background: rgba(240, 90, 40, 0.08);
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.camera {
|
|
display: grid;
|
|
gap: 12px;
|
|
}
|
|
|
|
.camera video {
|
|
width: 100%;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(31, 29, 26, 0.1);
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
.hero .stamp {
|
|
justify-self: start;
|
|
}
|
|
.grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|