Browse Source

made a light theme

cli-archive
nic 2 years ago
parent
commit
b09bd9ada6
  1. 186
      static/css/styles.css

186
static/css/styles.css

@ -4,7 +4,7 @@ html {
margin: 0; margin: 0;
height: 100%; height: 100%;
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
background-color: #f3f4f6; /* similar to bg-gray-100 */ background-color: #f9fafb; /* Light neutral background */
} }
.flex { .flex {
@ -24,7 +24,7 @@ html {
} }
.bg-gray { .bg-gray {
background-color: #f3f4f6; background-color: #f0f4f8; /* Very light gray */
} }
/* Container setup for dashboard */ /* Container setup for dashboard */
@ -38,7 +38,7 @@ html {
/* Sidebar styles */ /* Sidebar styles */
.sidebar { .sidebar {
width: 16rem; /* Fixed width for sidebar */ width: 16rem; /* Fixed width for sidebar */
background-color: #1f2937; /* Dark background */ background-color: #2563eb; /* Light blue */
color: white; color: white;
padding: 1rem; padding: 1rem;
display: flex; display: flex;
@ -65,7 +65,7 @@ html {
} }
.sidebar a:hover { .sidebar a:hover {
background-color: #374151; /* Slightly lighter on hover */ background-color: #3b82f6; /* Slightly lighter on hover */
} }
/* Main content area for dashboard */ /* Main content area for dashboard */
@ -97,7 +97,7 @@ html {
} }
.content { .content {
background-color: white; background-color: #ffffff; /* White content background */
padding: 1.5rem; padding: 1.5rem;
border-radius: 0.5rem; border-radius: 0.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
@ -107,7 +107,7 @@ html {
/* Login Container */ /* Login Container */
.login-container { .login-container {
background-color: white; background-color: #ffffff;
padding: 2rem; padding: 2rem;
border-radius: 0.5rem; border-radius: 0.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Similar to shadow-md */ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Similar to shadow-md */
@ -119,7 +119,7 @@ html {
font-weight: bold; font-weight: bold;
margin-bottom: 0.5rem; /* similar to mb-6 */ margin-bottom: 0.5rem; /* similar to mb-6 */
text-align: center; text-align: center;
color: #2d3748; /* similar to text-gray-800 */ color: #1f2937; /* Darker text */
} }
.login-subtitle { .login-subtitle {
@ -127,7 +127,7 @@ html {
font-weight: normal; /* Lighter weight to distinguish from the title */ font-weight: normal; /* Lighter weight to distinguish from the title */
margin-bottom: 1.5rem; /* Adjust spacing below subtitle */ margin-bottom: 1.5rem; /* Adjust spacing below subtitle */
text-align: center; text-align: center;
color: #4a5568; /* A slightly lighter color than the title */ color: #4b5563; /* Medium gray for subtitle */
} }
/* Input Fields */ /* Input Fields */
@ -137,7 +137,7 @@ html {
.input-group label { .input-group label {
display: block; display: block;
color: #4a5568; /* similar to text-gray-700 */ color: #4b5563; /* Medium gray */
font-size: 0.875rem; /* similar to text-sm */ font-size: 0.875rem; /* similar to text-sm */
font-weight: bold; font-weight: bold;
margin-bottom: 0.5rem; /* similar to mb-2 */ margin-bottom: 0.5rem; /* similar to mb-2 */
@ -146,9 +146,9 @@ html {
.input-field { .input-field {
width: 100%; width: 100%;
padding: 0.5rem; padding: 0.5rem;
border: 1px solid #cbd5e0; /* similar to border */ border: 1px solid #d1d5db; /* Light border */
border-radius: 0.25rem; /* similar to rounded */ border-radius: 0.25rem; /* similar to rounded */
color: #4a5568; /* similar to text-gray-700 */ color: #4b5563; /* similar to text-gray-700 */
font-size: 1rem; font-size: 1rem;
line-height: 1.5; line-height: 1.5;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0); /* resets shadow */ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0); /* resets shadow */
@ -157,7 +157,7 @@ html {
.input-field:focus { .input-field:focus {
outline: none; outline: none;
box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5); /* similar to focus:shadow-outline */ box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.5); /* Green focus border */
} }
/* Form Footer */ /* Form Footer */
@ -169,7 +169,7 @@ html {
} }
.btn-primary { .btn-primary {
background-color: #4299e1; /* similar to bg-blue-500 */ background-color: #3b82f6; /* Blue button */
color: white; color: white;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
border-radius: 0.25rem; border-radius: 0.25rem;
@ -180,18 +180,18 @@ html {
} }
.btn-primary:hover { .btn-primary:hover {
background-color: #2b6cb0; /* similar to hover:bg-blue-700 */ background-color: #2563eb; /* Darker blue on hover */
} }
.forgot-password { .forgot-password {
color: #4299e1; /* similar to text-blue-500 */ color: #3b82f6; /* Blue text */
font-size: 0.875rem; /* similar to text-sm */ font-size: 0.875rem; /* similar to text-sm */
font-weight: bold; font-weight: bold;
text-decoration: none; text-decoration: none;
} }
.forgot-password:hover { .forgot-password:hover {
color: #2b6cb0; /* similar to hover:text-blue-800 */ color: #2563eb; /* Darker blue on hover */
} }
/* Login Message */ /* Login Message */
@ -229,7 +229,7 @@ html {
.submenu-header { .submenu-header {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: bold; font-weight: bold;
color: #2d3748; color: #1f2937;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@ -255,7 +255,7 @@ html {
.submenu-title { .submenu-title {
font-size: 1.25rem; font-size: 1.25rem;
font-weight: bold; font-weight: bold;
color: #4a5568; color: #4b5563;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
} }
@ -268,7 +268,7 @@ html {
.submenu-item li { .submenu-item li {
font-size: 0.875rem; font-size: 0.875rem;
color: #718096; color: #6b7280;
padding: 0.25rem 0; padding: 0.25rem 0;
} }
@ -276,7 +276,7 @@ html {
.submenu-item a, .submenu-item a,
.submenu-item button { .submenu-item button {
display: inline-block; display: inline-block;
background-color: #4299e1; background-color: #22c55e;
color: white; color: white;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
border-radius: 0.25rem; border-radius: 0.25rem;
@ -290,10 +290,43 @@ html {
.submenu-item a:hover, .submenu-item a:hover,
.submenu-item button:hover { .submenu-item button:hover {
background-color: #2b6cb0; background-color: #16a34a;
} }
/* Style for error and not-found message display */ /* Style for error and not-found message display */
.error {
background-color: #fee2e2;
border: 1px solid #f87171;
color: #b91c1c;
}
.not-found {
background-color: #fef3c7;
border: 1px solid #fbbf24;
color: #b45309;
}
/* Loading indicator */
.loading-indicator {
width: 1.5rem;
height: 1.5rem;
border: 0.25rem solid #e5e7eb;
border-top: 0.25rem solid #2563eb;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-right: 0.5rem;
}
/* Animations */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes fadeIn { @keyframes fadeIn {
from { from {
opacity: 0; opacity: 0;
@ -313,18 +346,6 @@ html {
animation: fadeIn 0.3s ease-in-out; animation: fadeIn 0.3s ease-in-out;
} }
.error {
background-color: #fee2e2;
border: 1px solid #ef4444;
color: #b91c1c;
}
.not-found {
background-color: #fef3c7;
border: 1px solid #f59e0b;
color: #92400e;
}
.error::before, .error::before,
.not-found::before { .not-found::before {
margin-right: 0.5rem; margin-right: 0.5rem;
@ -338,46 +359,6 @@ html {
content: "🔍"; content: "🔍";
} }
/* Loading indicator */
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.htmx-indicator {
display: none;
}
.htmx-request .htmx-indicator {
display: flex;
align-items: center;
}
.htmx-request.htmx-indicator {
display: flex;
align-items: center;
}
.loading-indicator {
width: 1.5rem;
height: 1.5rem;
border: 0.25rem solid #e2e8f0;
border-top: 0.25rem solid #4299e1;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-right: 0.5rem;
}
/* Fade effect for existing content */
.htmx-request .fade-me-out {
opacity: 0.5;
transition: opacity 0.3s ease-in-out;
}
/* Highlight effect for changed content */ /* Highlight effect for changed content */
@keyframes highlightBackground { @keyframes highlightBackground {
0% { 0% {
@ -392,68 +373,15 @@ html {
animation: highlightBackground 2s ease-in-out; animation: highlightBackground 2s ease-in-out;
} }
/* You better be sure you wanna do this button styles */ /* Button styles */
.warning-button { .warning-button {
background-color: #ef4444; background-color: #f87171;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 0.25rem;
font-size: 0.875rem;
cursor: pointer;
transition: background-color 0.2s;
margin-bottom: 1rem;
}
.warning-button:hover {
background-color: #dc2626;
} }
.warning-button:disabled {
background-color: #9ca3af;
cursor: not-allowed;
}
/* Pretty sure you wanna do this but lets think about it again button styles */
.caution-button { .caution-button {
background-color: #eab308; background-color: #fbbf24;
color: #1f2937;
border: none;
padding: 0.5rem 1rem;
border-radius: 0.25rem;
font-size: 0.875rem;
cursor: pointer;
transition: background-color 0.2s;
margin-bottom: 1rem;
}
.caution-button:hover {
background-color: #ca8a04;
}
.caution-button:disabled {
background-color: #9ca3af;
cursor: not-allowed;
} }
/* This button is harmless button styles */
.success-button { .success-button {
background-color: #22c55e; background-color: #22c55e;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 0.25rem;
font-size: 0.875rem;
cursor: pointer;
transition: background-color 0.2s;
margin-bottom: 1rem;
}
.success-button:hover {
background-color: #16a34a;
}
.success-button:disabled {
background-color: #9ca3af;
cursor: not-allowed;
} }

Loading…
Cancel
Save