rss-reader/static/css/style.css
Greg Shuflin 608422eb4c css reorg
2025-02-02 01:25:18 -08:00

263 lines
4.2 KiB
CSS

:root {
--primary-red: #f43f3f;
--dark-bg: #1e1f26;
--sidebar-bg: #2b2c33;
--text-color: #ffffff;
--text-muted: #9da2b3;
}
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
background-color: var(--dark-bg);
color: var(--text-color);
}
body.with-sidebar {
display: flex;
}
.sidebar {
width: 250px;
background-color: var(--sidebar-bg);
min-height: 100vh;
padding: 20px;
box-shadow: 2px 0 5px rgba(0,0,0,0.3);
}
.sidebar h2 {
color: var(--primary-red);
margin-top: 0;
}
.sidebar ul {
list-style: none;
padding: 0;
}
.sidebar ul li {
margin: 10px 0;
}
.sidebar ul li a {
color: var(--text-muted);
text-decoration: none;
transition: color 0.2s ease;
}
.sidebar ul li a:hover {
color: var(--primary-red);
}
.main-content {
flex: 1;
padding: 20px 40px;
}
.main-content h1 {
color: var(--primary-red);
font-size: 2.5em;
margin-bottom: 0.5em;
}
.main-content p {
line-height: 1.6;
color: var(--text-muted);
margin-bottom: 1.5em;
}
.login-container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
width: 100%;
background-color: var(--dark-bg);
}
.login-form {
background-color: var(--sidebar-bg);
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
width: 100%;
max-width: 400px;
}
.login-form h1 {
color: var(--primary-red);
text-align: center;
margin-bottom: 1.5rem;
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
color: var(--text-color);
}
.form-group input {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--text-muted);
border-radius: 4px;
background-color: var(--dark-bg);
color: var(--text-color);
font-size: 1rem;
}
.form-group input:focus {
outline: none;
border-color: var(--primary-red);
}
.login-form button {
width: 100%;
padding: 0.75rem;
background-color: var(--primary-red);
color: var(--text-color);
border: none;
border-radius: 4px;
font-size: 1rem;
cursor: pointer;
transition: opacity 0.2s ease;
}
.login-form button:hover {
opacity: 0.9;
}
/* Top bar styles */
.top-bar {
background-color: #333;
color: white;
padding: 0.5rem 1rem;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
}
.top-bar-buttons {
display: flex;
gap: 1rem;
align-items: center;
}
.logout-button {
background-color: #dc3545;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
}
.logout-button:hover {
background-color: #c82333;
}
.add-feed-button {
background-color: #28a745;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
}
.add-feed-button:hover {
background-color: #218838;
}
/* Modal styles */
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2000;
align-items: center;
justify-content: center;
}
.modal.show {
display: flex;
}
.modal-content {
background-color: white;
padding: 2rem;
border-radius: 8px;
width: 100%;
max-width: 500px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.modal-header {
margin-bottom: 1.5rem;
}
.modal-header h2 {
margin: 0;
color: #333;
}
.modal-body {
margin-bottom: 1.5rem;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 1rem;
}
.modal-footer button {
padding: 0.5rem 1rem;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.9rem;
}
.btn-primary {
background-color: #007bff;
color: white;
}
.btn-primary:hover {
background-color: #0056b3;
}
.btn-secondary {
background-color: #6c757d;
color: white;
}
.btn-secondary:hover {
background-color: #545b62;
}
/* Layout adjustments */
.with-sidebar {
padding-top: 3rem;
}
.sidebar {
top: 3rem;
}