Control / estilo.css
OncomIA
Claude Opus 5.5
Simulador de control clásico del Tema 3
77ba96d
Raw History Blame Contribute Delete
4.45 kB
/* Aspecto de libro de texto (Springer): Times, filetes finos, tablas
con reglas superior e inferior, pies de figura en negrita. */
.gradio-container {
font-family: "STIX Two Text", "Times New Roman", Times, serif !important;
max-width: 1320px !important;
margin: 0 auto !important;
color: #1a1a1a;
}
.gradio-container .prose,
.gradio-container .prose p,
.gradio-container .prose li {
font-size: 1.02rem;
line-height: 1.55;
}
/* ---------- portada ---------- */
.portada {
border-top: 3px solid #1f4e79;
border-bottom: 0.6px solid #1a1a1a;
padding: 18px 4px 14px 4px;
margin-bottom: 6px;
}
.portada .serie {
font-size: 0.86rem;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #1f4e79;
}
.portada h1 {
font-size: 2.05rem;
font-weight: 700;
margin: 4px 0 2px 0;
line-height: 1.15;
}
.portada .subtitulo {
font-size: 1.12rem;
font-style: italic;
color: #333;
}
.portada .autor {
font-size: 0.9rem;
color: #555;
margin-top: 6px;
}
/* ---------- títulos del desarrollo ---------- */
.desarrollo h3 {
font-size: 1.16rem;
font-weight: 700;
margin-top: 1.3em;
padding-bottom: 2px;
border-bottom: 0.6px solid #bdbdbd;
color: #1a1a1a;
}
.desarrollo h4 {
font-size: 1.1rem;
font-weight: 700;
color: #1f4e79;
}
/* ---------- tablas tipo booktabs ---------- */
.gradio-container .prose table {
border-collapse: collapse;
border-top: 1.4px solid #1a1a1a;
border-bottom: 1.4px solid #1a1a1a;
margin: 0.8em 0;
font-size: 0.96rem;
}
.gradio-container .prose thead th {
border-bottom: 0.7px solid #1a1a1a;
font-weight: 700;
background: transparent;
}
.gradio-container .prose td,
.gradio-container .prose th {
border-left: none !important;
border-right: none !important;
border-top: none;
padding: 4px 12px;
}
.gradio-container .prose tbody tr {
border-bottom: none;
}
/* ---------- cajas de los apuntes ---------- */
.clave {
background: #f1f1ee;
border-left: 3px solid #1f4e79;
padding: 0.35em 1em;
margin: 0.9em 0;
}
.aviso {
background: #fbf4f4;
border-left: 3px solid #a4262c;
padding: 0.35em 1em;
margin: 0.9em 0;
}
/* ---------- pies de figura ---------- */
.caption,
.caption p {
font-size: 0.9rem !important;
color: #333;
line-height: 1.35 !important;
margin-top: -4px;
}
.caption strong {
font-weight: 700;
color: #1a1a1a;
}
/* ---------- KaTeX en el tamaño del texto ---------- */
.gradio-container .katex {
font-size: 1.06em;
}
.gradio-container .katex-display {
margin: 0.7em 0;
overflow-x: auto;
overflow-y: hidden;
padding: 2px 0;
}
/* ---------- controles ---------- */
.panel-controles {
border-right: 0.6px solid #d0d0d0;
padding-right: 10px !important;
}
.nota-controles,
.nota-controles p {
font-size: 0.88rem !important;
color: #555;
}
footer {
font-family: "STIX Two Text", "Times New Roman", serif;
}
@media (max-width: 760px) {
.panel-controles {
border-right: none;
padding-right: 0 !important;
}
.portada h1 {
font-size: 1.6rem;
}
}
/* ---------- ayuda «?» ---------- */
.ayuda {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
margin-left: 6px;
border: 1px solid #1f4e79;
border-radius: 50%;
font: 600 11px/1 "STIX Two Text", "Times New Roman", serif;
color: #1f4e79;
background: #ffffff;
cursor: help;
vertical-align: middle;
user-select: none;
}
.ayuda:hover,
.ayuda:focus {
background: #1f4e79;
color: #ffffff;
outline: none;
}
.ayuda-esquina {
position: absolute;
top: 6px;
left: 6px;
z-index: 20;
margin: 0;
width: 20px;
height: 20px;
font-size: 13px;
}
.globo-ayuda {
display: none;
position: fixed;
z-index: 10000;
max-width: 330px;
padding: 9px 12px;
background: #fffef9;
border: 0.8px solid #8f8f8f;
border-left: 3px solid #1f4e79;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
font: 14px/1.4 "STIX Two Text", "Times New Roman", serif;
color: #1a1a1a;
pointer-events: none;
}
/* ---------- controles fijos a la izquierda al bajar por las figuras ---------- */
@media (min-width: 900px) {
.panel-controles {
position: sticky !important;
top: 8px;
align-self: flex-start !important;
max-height: calc(100vh - 16px);
overflow-y: auto;
}
}
/* overflow:hidden del contenedor de Gradio impide «position: sticky»; clip recorta igual sin impedirlo */
.gradio-container {
overflow: clip !important;
}