codigo0/scorm/packages/ovace-pediatrica/assets/styles.css

245 lines
4 KiB
CSS
Raw Normal View History

2026-01-19 08:10:16 +00:00
/**
* Estilos para paquetes SCORM
* Basado en Tailwind pero compilado para HTML estático
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background-color: #0f172a;
color: #e2e8f0;
line-height: 1.6;
}
.scorm-container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.scorm-header {
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
border: 1px solid #334155;
border-radius: 12px;
padding: 24px;
margin-bottom: 24px;
}
.scorm-header h1 {
font-size: 2rem;
font-weight: 700;
color: #f1f5f9;
margin-bottom: 16px;
}
.scorm-progress {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
}
.scorm-progress span {
font-size: 0.875rem;
color: #94a3b8;
white-space: nowrap;
}
.progress-bar {
flex: 1;
min-width: 200px;
height: 8px;
background-color: #1e293b;
border-radius: 4px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
transition: width 0.3s ease;
}
.scorm-content {
flex: 1;
background-color: #1e293b;
border: 1px solid #334155;
border-radius: 12px;
padding: 32px;
margin-bottom: 24px;
}
.scorm-content h2 {
font-size: 1.75rem;
font-weight: 600;
color: #f1f5f9;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 2px solid #334155;
}
.scorm-content h3 {
font-size: 1.5rem;
font-weight: 600;
color: #e2e8f0;
margin-top: 24px;
margin-bottom: 12px;
}
.scorm-content h4 {
font-size: 1.25rem;
font-weight: 600;
color: #cbd5e1;
margin-top: 20px;
margin-bottom: 10px;
}
.scorm-content p {
margin-bottom: 16px;
color: #cbd5e1;
}
.scorm-content ul,
.scorm-content ol {
margin-left: 24px;
margin-bottom: 16px;
color: #cbd5e1;
}
.scorm-content li {
margin-bottom: 8px;
}
.scorm-content code {
background-color: #0f172a;
padding: 2px 6px;
border-radius: 4px;
font-family: 'Courier New', monospace;
font-size: 0.9em;
color: #60a5fa;
}
.scorm-content pre {
background-color: #0f172a;
padding: 16px;
border-radius: 8px;
overflow-x: auto;
margin-bottom: 16px;
border: 1px solid #334155;
}
.scorm-content pre code {
background: none;
padding: 0;
color: #e2e8f0;
}
.scorm-content blockquote {
border-left: 4px solid #3b82f6;
padding-left: 16px;
margin-left: 0;
margin-bottom: 16px;
color: #94a3b8;
font-style: italic;
}
.scorm-content table {
width: 100%;
border-collapse: collapse;
margin-bottom: 16px;
}
.scorm-content th,
.scorm-content td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #334155;
}
.scorm-content th {
background-color: #1e293b;
font-weight: 600;
color: #f1f5f9;
}
.scorm-content img {
max-width: 100%;
height: auto;
border-radius: 8px;
margin: 16px 0;
}
.scorm-footer {
display: flex;
gap: 12px;
justify-content: space-between;
flex-wrap: wrap;
}
.btn-nav,
.btn-exit {
padding: 12px 24px;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
border: 1px solid #334155;
}
.btn-nav {
background-color: #1e293b;
color: #e2e8f0;
}
.btn-nav:hover:not(:disabled) {
background-color: #334155;
border-color: #475569;
}
.btn-nav:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-exit {
background-color: #dc2626;
color: #ffffff;
}
.btn-exit:hover {
background-color: #b91c1c;
}
/* Responsive */
@media (max-width: 768px) {
.scorm-container {
padding: 12px;
}
.scorm-header h1 {
font-size: 1.5rem;
}
.scorm-content {
padding: 20px;
}
.scorm-footer {
flex-direction: column;
}
.btn-nav,
.btn-exit {
width: 100%;
}
}