|
42 | 42 | box-sizing: border-box; |
43 | 43 | display: flex; |
44 | 44 | flex-direction: column; |
| 45 | + position: sticky; |
| 46 | + top: 0; |
| 47 | + height: 100vh; |
| 48 | + overflow-y: auto; |
| 49 | + overflow-x: hidden; |
| 50 | + } |
| 51 | + |
| 52 | + /* Estilos para el scrollbar del sidebar */ |
| 53 | + .sidebar::-webkit-scrollbar { |
| 54 | + width: 8px; |
| 55 | + } |
| 56 | + |
| 57 | + .sidebar::-webkit-scrollbar-track { |
| 58 | + background: var(--bg-tarjeta); |
| 59 | + } |
| 60 | + |
| 61 | + .sidebar::-webkit-scrollbar-thumb { |
| 62 | + background: var(--border-color); |
| 63 | + border-radius: 4px; |
| 64 | + } |
| 65 | + |
| 66 | + .sidebar::-webkit-scrollbar-thumb:hover { |
| 67 | + background: var(--text-secundario); |
45 | 68 | } |
46 | 69 |
|
47 | 70 | /* Contenedor principal que usa TODO el ancho restante */ |
|
153 | 176 | object-fit: cover; |
154 | 177 | border: 2px solid var(--accent); |
155 | 178 | } |
| 179 | + |
| 180 | + /* Estilos para contenido Markdown renderizado */ |
| 181 | + h1, h2, h3, h4, h5, h6 { |
| 182 | + margin-top: 1.2em; |
| 183 | + margin-bottom: 0.6em; |
| 184 | + } |
| 185 | + |
| 186 | + code { |
| 187 | + background: var(--bg-principal); |
| 188 | + padding: 2px 6px; |
| 189 | + border-radius: 3px; |
| 190 | + font-family: 'Courier New', monospace; |
| 191 | + font-size: 0.9em; |
| 192 | + color: #f97583; |
| 193 | + } |
| 194 | + |
| 195 | + pre { |
| 196 | + background: var(--bg-tarjeta); |
| 197 | + padding: 12px; |
| 198 | + border-radius: 6px; |
| 199 | + overflow-x: auto; |
| 200 | + border: 1px solid var(--border-color); |
| 201 | + line-height: 1.2; |
| 202 | + } |
| 203 | + |
| 204 | + pre code { |
| 205 | + background: none; |
| 206 | + padding: 0; |
| 207 | + color: var(--text-principal); |
| 208 | + font-family: 'Courier New', 'Consolas', monospace; |
| 209 | + } |
| 210 | + |
| 211 | + blockquote { |
| 212 | + border-left: 3px solid var(--accent); |
| 213 | + padding-left: 15px; |
| 214 | + margin-left: 0; |
| 215 | + color: var(--text-secundario); |
| 216 | + font-style: italic; |
| 217 | + } |
| 218 | + |
| 219 | + ul, ol { |
| 220 | + padding-left: 25px; |
| 221 | + line-height: 1.8; |
| 222 | + } |
| 223 | + |
| 224 | + strong { |
| 225 | + color: white; |
| 226 | + font-weight: bold; |
| 227 | + } |
| 228 | + |
| 229 | + em { |
| 230 | + font-style: italic; |
| 231 | + color: var(--accent); |
| 232 | + } |
| 233 | + |
| 234 | + /* Estilos para tablas Markdown */ |
| 235 | + table { |
| 236 | + border-collapse: collapse; |
| 237 | + width: 100%; |
| 238 | + margin: 20px 0; |
| 239 | + background: var(--bg-tarjeta); |
| 240 | + border: 1px solid var(--border-color); |
| 241 | + } |
| 242 | + |
| 243 | + th, td { |
| 244 | + padding: 12px 15px; |
| 245 | + text-align: left; |
| 246 | + border: 1px solid var(--border-color); |
| 247 | + } |
| 248 | + |
| 249 | + th { |
| 250 | + background: var(--bg-principal); |
| 251 | + font-weight: bold; |
| 252 | + color: white; |
| 253 | + } |
| 254 | + |
| 255 | + tr:nth-child(even) { |
| 256 | + background: rgba(255, 255, 255, 0.02); |
| 257 | + } |
| 258 | + |
| 259 | + tr:hover { |
| 260 | + background: rgba(88, 166, 255, 0.05); |
| 261 | + } |
156 | 262 | </style> |
157 | 263 | </head> |
158 | 264 |
|
|
0 commit comments