civitai-explorer / style.css
00Boobs00's picture
Review revise and update with a comprehensive refactoring.
ac4cd88 verified
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
:root {
--primary: #10B981;
--secondary: #F97316;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}
body {
background-color: #111827;
color: #F9FAFB;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Scrollbar styling */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #1F2937;
}
::-webkit-scrollbar-thumb {
background: #4B5563;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #6B7280;
}
/* Custom utility classes */
.bg-primary {
background-color: var(--primary);
}
.bg-secondary {
background-color: var(--secondary);
}
.text-primary {
color: var(--primary);
}
.text-secondary {
color: var(--secondary);
}
.border-primary {
border-color: var(--primary);
}
.ring-primary {
--tw-ring-color: var(--primary);
}
/* Button transitions */
button {
transition: all 0.2s ease-in-out;
}
/* Card shadows */
.shadow-lg {
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.25);
}
/* Range input styling */
input[type="range"] {
-webkit-appearance: none;
height: 6px;
border-radius: 3px;
background: #374151;
outline: none;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--primary);
cursor: pointer;
border: 2px solid #1F2937;
}
input[type="range"]::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: var(--primary);
cursor: pointer;
border: 2px solid #1F2937;
}
/* Select dropdown styling */
select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
/* Checkbox styling */
input[type="checkbox"] {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border: 2px solid #4B5563;
border-radius: 4px;
background-color: #1F2937;
position: relative;
cursor: pointer;
}
input[type="checkbox"]:checked {
background-color: var(--primary);
border-color: var(--primary);
}
input[type="checkbox"]:checked::after {
content: '';
position: absolute;
left: 5px;
top: 1px;
width: 4px;
height: 8px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
/* Responsive adjustments */
@media (max-width: 1024px) {
.grid-cols-2 {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.lg\:col-span-1, .lg\:col-span-2 {
grid-column: span 1 / span 1;
}
}