Format CSS and Tailwind config for consistency
Normalize indentation and spacing in CSS for consistency Convert many blocks to a uniform 2-space style Update color variables and identity classes to align formatting Reflow shadows and gradients for readability Simplify Tailwind config: flatten content array and remove extra lines Update Tailwind palette to the new edh colors and remove quotes around the mtg key
This commit is contained in:
@@ -2,119 +2,146 @@
|
||||
|
||||
/* Custom Font for Magic: The Gathering feel */
|
||||
.font-mtg {
|
||||
font-family: 'Cinzel', serif;
|
||||
font-family: 'Cinzel', serif;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: 'Inter', sans-serif;
|
||||
font-family: 'Inter', sans-serif;
|
||||
}
|
||||
|
||||
/* Custom Colors */
|
||||
:root {
|
||||
--edh-primary: #1e293b;
|
||||
--edh-secondary: #334155;
|
||||
--edh-accent: #6366f1;
|
||||
--edh-primary: #0f172a;
|
||||
--edh-secondary: #1e293b;
|
||||
--edh-accent: #3b82f6;
|
||||
}
|
||||
|
||||
/* MTG Color Identity Classes */
|
||||
.color-w { background-color: #F0E6D2; border: 1px solid #e0d6c2; }
|
||||
.color-u { background-color: #0E68AB; border: 1px solid #0c5a8a; }
|
||||
.color-b { background-color: #2C2B2D; border: 1px solid #1a1a1c; }
|
||||
.color-r { background-color: #C44536; border: 1px solid #a63a2d; }
|
||||
.color-g { background-color: #5A7A3B; border: 1px solid #486330; }
|
||||
.color-w {
|
||||
background-color: #f0e6d2;
|
||||
border: 1px solid #e0d6c2;
|
||||
}
|
||||
.color-u {
|
||||
background-color: #0e68ab;
|
||||
border: 1px solid #0c5a8a;
|
||||
}
|
||||
.color-b {
|
||||
background-color: #2c2b2d;
|
||||
border: 1px solid #1a1a1c;
|
||||
}
|
||||
.color-r {
|
||||
background-color: #c44536;
|
||||
border: 1px solid #a63a2d;
|
||||
}
|
||||
.color-g {
|
||||
background-color: #5a7a3b;
|
||||
border: 1px solid #486330;
|
||||
}
|
||||
|
||||
/* Utility Components */
|
||||
.card {
|
||||
background-color: white;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
||||
padding: 1.5rem;
|
||||
background-color: white;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow:
|
||||
0 1px 3px 0 rgba(0, 0, 0, 0.1),
|
||||
0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.form-input {
|
||||
width: 100%;
|
||||
border-radius: 0.375rem;
|
||||
border: 1px solid #d1d5db;
|
||||
padding: 0.5rem 0.75rem;
|
||||
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
||||
width: 100%;
|
||||
border-radius: 0.375rem;
|
||||
border: 1px solid #d1d5db;
|
||||
padding: 0.5rem 0.75rem;
|
||||
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.form-input:focus {
|
||||
outline: none;
|
||||
border-color: #6366f1;
|
||||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
||||
outline: none;
|
||||
border-color: #6366f1;
|
||||
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
||||
}
|
||||
|
||||
.form-select {
|
||||
width: 100%;
|
||||
border-radius: 0.375rem;
|
||||
border: 1px solid #d1d5db;
|
||||
padding: 0.5rem 0.75rem;
|
||||
background-color: white;
|
||||
width: 100%;
|
||||
border-radius: 0.375rem;
|
||||
border: 1px solid #d1d5db;
|
||||
padding: 0.5rem 0.75rem;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 0.375rem;
|
||||
font-weight: 500;
|
||||
transition-property: background-color, border-color, color, fill, stroke;
|
||||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition-duration: 150ms;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 0.375rem;
|
||||
font-weight: 500;
|
||||
transition-property: background-color, border-color, color, fill, stroke;
|
||||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition-duration: 150ms;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: var(--edh-primary);
|
||||
color: white;
|
||||
background-color: var(--edh-primary);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: var(--edh-secondary);
|
||||
background-color: var(--edh-secondary);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background-color: white;
|
||||
color: #374151;
|
||||
border: 1px solid #d1d5db;
|
||||
background-color: white;
|
||||
color: #374151;
|
||||
border: 1px solid #d1d5db;
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background-color: #f9fafb;
|
||||
background-color: #f9fafb;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
display: block;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: #374151;
|
||||
margin-bottom: 0.25rem;
|
||||
display: block;
|
||||
font-size: 0.875rem;
|
||||
font-weight: 500;
|
||||
color: #374151;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
|
||||
.form-error {
|
||||
margin-top: 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
color: #ef4444;
|
||||
margin-top: 0.25rem;
|
||||
font-size: 0.875rem;
|
||||
color: #ef4444;
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
border: 3px solid rgba(0, 0, 0, 0.1);
|
||||
border-radius: 50%;
|
||||
border-top: 3px solid #6366f1;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
animation: spin 1s linear infinite;
|
||||
border: 3px solid rgba(0, 0, 0, 0.1);
|
||||
border-radius: 50%;
|
||||
border-top: 3px solid #6366f1;
|
||||
width: 1.5rem;
|
||||
height: 1.5rem;
|
||||
animation: spin 1s linear infinite;
|
||||
}
|
||||
|
||||
.stat-card {
|
||||
background: linear-gradient(135deg, var(--edh-primary) 0%, var(--edh-secondary) 100%);
|
||||
border-radius: 0.5rem;
|
||||
padding: 1.5rem;
|
||||
color: white;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
var(--edh-primary) 0%,
|
||||
var(--edh-secondary) 100%
|
||||
);
|
||||
border-radius: 0.5rem;
|
||||
padding: 1.5rem;
|
||||
color: white;
|
||||
box-shadow:
|
||||
0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
||||
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
content: [
|
||||
"./public/**/*.html",
|
||||
"./public/**/*.js",
|
||||
"./js/**/*.js"
|
||||
],
|
||||
darkMode: false,
|
||||
content: ['./public/**/*.html', './public/**/*.js', './js/**/*.js'],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
@@ -15,32 +12,32 @@ module.exports = {
|
||||
'mtg-green': '#5A7A3B',
|
||||
'mtg-gold': '#C8B991',
|
||||
'mtg-colorless': '#BAB0AC',
|
||||
'edh-primary': '#1a365d',
|
||||
'edh-secondary': '#2c5282',
|
||||
'edh-accent': '#3182ce',
|
||||
'edh-primary': '#0f172a',
|
||||
'edh-secondary': '#1e293b',
|
||||
'edh-accent': '#3b82f6'
|
||||
},
|
||||
fontFamily: {
|
||||
'mtg': ['Georgia', 'serif'],
|
||||
mtg: ['Georgia', 'serif']
|
||||
},
|
||||
animation: {
|
||||
'fade-in': 'fadeIn 0.5s ease-in-out',
|
||||
'slide-up': 'slideUp 0.3s ease-out',
|
||||
'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite',
|
||||
'pulse-slow': 'pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite'
|
||||
},
|
||||
keyframes: {
|
||||
fadeIn: {
|
||||
'0%': { opacity: '0' },
|
||||
'100%': { opacity: '1' },
|
||||
'100%': { opacity: '1' }
|
||||
},
|
||||
slideUp: {
|
||||
'0%': { transform: 'translateY(10px)', opacity: '0' },
|
||||
'100%': { transform: 'translateY(0)', opacity: '1' },
|
||||
'100%': { transform: 'translateY(0)', opacity: '1' }
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
// require('@tailwindcss/forms'),
|
||||
// require('@tailwindcss/typography'),
|
||||
],
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user