rss-reader/static/css/components/layout.css

69 lines
1.3 KiB
CSS
Raw Permalink Normal View History

2025-02-05 03:26:05 -08:00
/* Basic layout styles */
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: var(--dark-bg);
color: var(--text-color);
2025-02-05 04:24:57 -08:00
height: 100vh;
overflow: hidden;
2025-02-05 03:26:05 -08:00
}
body.with-sidebar {
display: flex;
}
2025-02-05 04:19:47 -08:00
.main-content-area {
2025-02-05 03:26:05 -08:00
flex: 1;
2025-02-05 04:19:47 -08:00
min-width: 0; /* Prevents flex item from overflowing */
2025-02-05 04:24:57 -08:00
display: flex;
flex-direction: column;
2025-02-05 03:26:05 -08:00
}
2025-02-05 04:19:47 -08:00
#main-content {
flex: 1;
2025-02-06 02:20:15 -08:00
padding-left: 1rem;
padding-right: 1rem;
2025-02-05 04:24:57 -08:00
overflow-y: auto;
2025-02-05 04:28:08 -08:00
/* Remove the scrollbar hiding styles */
/* scrollbar-width: none;
-ms-overflow-style: none; */
/* Firefox */
scrollbar-width: thin;
scrollbar-color: var(--text-muted) transparent;
/* Webkit browsers (Chrome, Safari, Edge) */
&::-webkit-scrollbar {
width: 8px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: var(--text-muted);
border-radius: 4px;
border: 2px solid transparent;
}
2025-02-05 04:24:57 -08:00
2025-02-05 04:28:08 -08:00
/* Optional: Hover state for the thumb */
&::-webkit-scrollbar-thumb:hover {
background-color: var(--text-color);
}
2025-02-05 04:19:47 -08:00
}
#main-content h1 {
2025-02-05 03:26:05 -08:00
color: var(--primary-red);
font-size: 2.5em;
margin-bottom: 0.5em;
}
2025-02-05 04:19:47 -08:00
#main-content p {
2025-02-05 03:26:05 -08:00
line-height: 1.6;
color: var(--text-muted);
margin-bottom: 1.5em;
}