Files
fitra-backend/static/main.css
2025-08-08 00:28:15 +02:00

452 lines
8.5 KiB
CSS

* { box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
margin: 0;
padding: 0;
line-height: 1.6;
background: #f8fafc;
min-height: 100vh;
color: #1e293b;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
padding: 30px;
backdrop-filter: blur(10px);
margin-bottom: 30px;
}
.container-fluid {
width: 100%;
margin: 0;
padding: 0;
background: transparent;
}
.no-scrollbar {
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* Internet Explorer 10+ */
}
.no-scrollbar::-webkit-scrollbar {
display: none; /* WebKit */
}
.changelog-wrapper {
max-width: 1200px;
margin: 0 auto;
}
h1 {
color: #0f172a;
font-size: 2.5rem;
margin-bottom: 20px;
font-weight: 700;
letter-spacing: -0.025em;
}
h2 {
color: #1e293b;
font-size: 1.75rem;
margin-top: 2rem;
font-weight: 600;
margin-bottom: 1rem;
}
.version-badge {
display: inline-block;
background: #3b82f6;
color: white;
padding: 6px 16px;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
margin-bottom: 20px;
}
code {
background: #f1f5f9;
padding: 4px 8px;
border-radius: 6px;
font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Roboto Mono', monospace;
font-size: 13px;
border: 1px solid #e2e8f0;
color: #475569;
}
pre {
background: #0f172a;
color: #cbd5e1;
padding: 24px;
border-radius: 12px;
overflow-x: auto;
font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Roboto Mono', monospace;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
border: 1px solid #1e293b;
}
pre code {
background: transparent;
border: none;
padding: 0;
color: #cbd5e1;
}
.endpoint {
margin: 20px 0;
padding: 24px;
border-radius: 12px;
background: #f8fafc;
box-shadow: none;
border: 1px solid #e2e8f0;
border-left: 4px solid #3b82f6;
transition: all 0.15s ease;
}
.endpoint:hover {
background: #ffffff;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.method {
display: inline-block;
padding: 6px 12px;
border-radius: 6px;
color: white;
font-weight: 700;
margin-right: 15px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.get { background: #3b82f6; }
.post { background: #10b981; }
.step {
margin: 16px 0;
padding: 20px 24px;
background: #f8fafc;
border-radius: 12px;
box-shadow: none;
border: 1px solid #e2e8f0;
border-left: 4px solid #6366f1;
transition: all 0.15s ease;
}
.step:hover {
background: #ffffff;
border-color: #cbd5e1;
}
.storage-info {
margin: 20px 0;
padding: 24px;
background: #f0fdf4;
border-radius: 12px;
box-shadow: none;
border: 1px solid #dcfce7;
border-left: 4px solid #22c55e;
}
.progress-bar {
width: 100%;
height: 10px;
background: #e2e8f0;
border-radius: 6px;
overflow: hidden;
margin: 16px 0;
box-shadow: none;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #22c55e 0%, #f59e0b 70%, #ef4444 90%);
transition: width 0.5s ease;
border-radius: 6px;
box-shadow: none;
}
.storage-stats {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 16px;
font-size: 14px;
font-weight: 500;
color: #475569;
}
.changelog-section {
padding: 24px;
background: #ffffff;
border-radius: 12px;
box-shadow: none;
border: 1px solid #e2e8f0;
border-left: 4px solid #8b5cf6;
}
/* Remove redundant changelog wrapper styles */
.changelog-wrapper {
max-width: none;
margin: 0;
}
.changelog-entry {
margin: 16px 0;
padding: 20px;
background: #f8fafc;
border-radius: 12px;
border: 1px solid #e2e8f0;
transition: all 0.15s ease;
}
.changelog-entry:hover {
background: #ffffff;
border-color: #cbd5e1;
}
.version {
font-weight: 600;
color: #8b5cf6;
font-size: 16px;
display: flex;
align-items: center;
gap: 10px;
}
.version::before {
content: "🏷️";
font-size: 14px;
}
.date {
color: #64748b;
font-size: 13px;
margin-top: 5px;
font-weight: 400;
}
.changelog-entry ul {
margin: 10px 0 0 0;
padding-left: 20px;
}
.changelog-entry li {
margin: 5px 0;
color: #475569;
}
.copy-btn {
background: #3b82f6;
color: white;
border: none;
padding: 8px 14px;
border-radius: 8px;
cursor: pointer;
font-size: 12px;
font-weight: 500;
transition: all 0.15s ease;
float: right;
margin-top: -10px;
}
.copy-btn:hover {
background: #2563eb;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
/* About section styling */
.about-content {
line-height: 1.7;
}
.about-content h3 {
color: #1e293b;
font-size: 1.25rem;
margin: 1.5rem 0 0.8rem 0;
font-weight: 600;
}
.about-content ul {
list-style-type: none;
padding-left: 0;
}
.about-content li {
background: #f8fafc;
margin: 8px 0;
padding: 14px 18px;
border-radius: 10px;
border: 1px solid #e2e8f0;
border-left: 4px solid #3b82f6;
transition: all 0.15s ease;
}
.about-content li:hover {
background: #ffffff;
border-color: #cbd5e1;
}
.contact-info {
background: #ffffff;
padding: 18px;
border-radius: 12px;
border: 1px solid #3b82f6;
margin: 16px 0;
}
.contact-info p {
margin: 6px 0;
font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Roboto Mono', monospace;
color: #475569;
}
/* Responsive design */
@media (max-width: 1200px) {
.three-column-layout {
gap: 15px;
padding: 15px;
}
.content-container {
padding: 20px;
}
}
@media (max-width: 768px) {
.three-column-layout {
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto;
gap: 15px;
padding: 15px;
height: auto;
min-height: 100vh;
}
/* Main content spans both columns in first row */
.content-container:first-child {
grid-column: 1 / -1;
grid-row: 1;
}
/* Changelog and about in second row, side by side */
.content-container:nth-child(2) {
grid-column: 1;
grid-row: 2;
}
.content-container:nth-child(3) {
grid-column: 2;
grid-row: 2;
}
.content-container {
padding: 20px;
border-radius: 15px;
max-height: 60vh;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
}
@media (max-width: 480px) {
.three-column-layout {
grid-template-columns: 1fr;
grid-template-rows: auto auto auto;
padding: 10px;
gap: 10px;
}
/* Stack all columns vertically on mobile */
.content-container:first-child {
grid-column: 1;
grid-row: 1;
}
.content-container:nth-child(2) {
grid-column: 1;
grid-row: 2;
}
.content-container:nth-child(3) {
grid-column: 1;
grid-row: 3;
}
.content-container {
padding: 15px;
max-height: 50vh;
}
.endpoint,
.storage-info,
.changelog-section {
padding: 15px;
}
.step {
padding: 12px 15px;
}
h1 {
font-size: 1.8rem;
}
.about-content h3 {
font-size: 1.1rem;
}
}
/* CSS Grid three-column layout */
.three-column-layout {
display: grid;
grid-template-columns: 1fr 0.5fr 0.5fr;
gap: 20px;
padding: 20px;
height: 100vh;
box-sizing: border-box;
}
/* Content containers with equal height and scrolling */
.content-container {
background: #ffffff;
border-radius: 16px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
padding: 32px;
box-sizing: border-box;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #cbd5e1 transparent;
border: 1px solid #e2e8f0;
}
/* Webkit scrollbar styling */
.content-container::-webkit-scrollbar {
width: 6px;
}
.content-container::-webkit-scrollbar-track {
background: transparent;
}
.content-container::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 3px;
}
.content-container::-webkit-scrollbar-thumb:hover {
background: #94a3b8;
}
.progress-fill-initial {
width: 0%;
}