chore: remove unused CSS classes and update responsive breakpoints
Removed orphaned selectors (.header, .back-btn, .controls, .bilan-container button/select/textarea, .status, .ai-loader, .ai-status-loader, .action-buttons-group, .btn-secondary, .btn-primary, .btn-success) no longer referenced in the JSX. Replaced legacy @media (max-width: 768px) block with new layout-aware breakpoints targeting the topbar, toolbar, summary grid, and toasts. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
243358a67d
commit
979d95f98e
@ -253,187 +253,6 @@
|
||||
padding: 32px 24px 64px;
|
||||
}
|
||||
|
||||
.header {
|
||||
margin-bottom: 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
gap: 16px;
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.8);
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
align-self: flex-start;
|
||||
border: 1px solid var(--border-slate-200);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 8px 16px;
|
||||
font-weight: 700;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
color: var(--text-secondary);
|
||||
background: rgba(255, 255, 255, 0.8);
|
||||
box-shadow: var(--shadow-flat);
|
||||
transition: var(--transition);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.back-btn:hover {
|
||||
transform: translateY(-1px);
|
||||
background: #ffffff;
|
||||
border-color: var(--color-indigo-500);
|
||||
box-shadow: 0 4px 12px rgba(98, 95, 255, 0.08);
|
||||
color: var(--color-indigo-500);
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
margin: 0;
|
||||
font-size: 32px;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.03em;
|
||||
background: linear-gradient(135deg, var(--color-indigo-500) 0%, #7c3aed 100%);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.header h2 {
|
||||
margin: 6px 0 0;
|
||||
color: var(--text-secondary);
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
max-width: 750px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.controls {
|
||||
background: rgba(248, 250, 252, 0.6);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 20px;
|
||||
margin: 20px 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 16px;
|
||||
justify-content: center;
|
||||
border: 1px solid var(--border-slate-200);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.controls.controls-select {
|
||||
margin: 0 0 10px 0;
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.controls.controls-select label {
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.controls input,
|
||||
.controls select,
|
||||
.bilan-container select,
|
||||
.ai input,
|
||||
.ai select,
|
||||
.ai textarea {
|
||||
padding: 11px 16px;
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-slate-300);
|
||||
background: #ffffff;
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
outline: none;
|
||||
transition: var(--transition);
|
||||
box-shadow: var(--shadow-flat);
|
||||
}
|
||||
|
||||
.controls input::placeholder,
|
||||
.ai input::placeholder,
|
||||
.ai textarea::placeholder,
|
||||
.bilan-container textarea::placeholder {
|
||||
color: var(--text-muted);
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.controls input:focus,
|
||||
.controls select:focus,
|
||||
.bilan-container select:focus,
|
||||
.ai input:focus,
|
||||
.ai select:focus,
|
||||
.ai textarea:focus,
|
||||
.bilan-container textarea:focus {
|
||||
border-color: var(--color-indigo-500);
|
||||
box-shadow: 0 0 0 4px rgba(98, 95, 255, 0.12), var(--shadow-flat);
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.controls.identity input {
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.controls.actions input {
|
||||
flex: 2;
|
||||
min-width: 240px;
|
||||
}
|
||||
|
||||
.bilan-container button,
|
||||
.ai-actions button {
|
||||
border: 1px solid var(--border-slate-300);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 11px 20px;
|
||||
font-size: 13.5px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
color: var(--text-secondary);
|
||||
background: #ffffff;
|
||||
box-shadow: var(--shadow-flat);
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.bilan-container button:hover,
|
||||
.ai-actions button:hover {
|
||||
background: #ffffff;
|
||||
color: var(--text-primary);
|
||||
border-color: var(--color-indigo-500);
|
||||
transform: translateY(-1.5px);
|
||||
box-shadow: 0 6px 15px rgba(98, 95, 255, 0.08);
|
||||
}
|
||||
|
||||
/* Primary action buttons with premium glowing backgrounds */
|
||||
.controls.actions button:last-of-type,
|
||||
.ai-actions button:nth-of-type(2),
|
||||
.ai-actions button:last-of-type {
|
||||
background: linear-gradient(135deg, var(--color-indigo-500) 0%, #7c3aed 100%);
|
||||
border-color: transparent;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 4px 14px rgba(98, 95, 255, 0.2);
|
||||
}
|
||||
|
||||
.controls.actions button:last-of-type:hover,
|
||||
.ai-actions button:nth-of-type(2):hover,
|
||||
.ai-actions button:last-of-type:hover {
|
||||
background: linear-gradient(135deg, var(--color-indigo-600) 0%, #6d28d9 100%);
|
||||
border-color: transparent;
|
||||
color: #ffffff;
|
||||
box-shadow: 0 6px 20px rgba(98, 95, 255, 0.35);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.bilan-container button:disabled,
|
||||
.ai-actions button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
transform: none !important;
|
||||
box-shadow: var(--shadow-flat) !important;
|
||||
background: #f1f5f9 !important;
|
||||
border-color: var(--border-slate-200) !important;
|
||||
color: var(--text-muted) !important;
|
||||
}
|
||||
|
||||
.criteria-toolbar {
|
||||
display: flex;
|
||||
@ -739,41 +558,11 @@
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.bilan-container select {
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
padding-right: 36px;
|
||||
background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
||||
background-repeat: no-repeat;
|
||||
background-position: right 12px center;
|
||||
background-size: 14px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.bilan-container select option {
|
||||
background: #ffffff;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
#openaiKey {
|
||||
background: #ffffff;
|
||||
padding-left: 12px;
|
||||
}
|
||||
|
||||
.bilan-container textarea {
|
||||
width: 100%;
|
||||
min-height: 120px;
|
||||
padding: 12px;
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-slate-300);
|
||||
background: #ffffff;
|
||||
color: var(--text-primary);
|
||||
resize: vertical;
|
||||
transition: var(--transition);
|
||||
font-family: var(--font-sans);
|
||||
}
|
||||
|
||||
#observation,
|
||||
.observation-textarea {
|
||||
min-height: 220px;
|
||||
@ -1067,79 +856,6 @@
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.action-buttons-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
border-top: 1px dashed var(--border-slate-200);
|
||||
padding-top: 20px;
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.action-buttons-group button {
|
||||
flex: 1;
|
||||
min-width: 140px;
|
||||
border-radius: var(--radius-md);
|
||||
padding: 10px 18px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
box-shadow: var(--shadow-flat);
|
||||
transition: var(--transition);
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: #ffffff;
|
||||
border: 1px solid var(--border-slate-300);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: #f8fafc;
|
||||
color: var(--text-primary);
|
||||
border-color: var(--color-indigo-500);
|
||||
transform: translateY(-1.5px);
|
||||
box-shadow: 0 4px 12px rgba(98, 95, 255, 0.08);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: linear-gradient(135deg, #6d28d9 0%, #a855f7 50%, #db2777 100%) !important;
|
||||
border-color: transparent !important;
|
||||
color: #ffffff !important;
|
||||
font-size: 13.5px;
|
||||
font-weight: 800;
|
||||
box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3), 0 1px 2px rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background: linear-gradient(135deg, #7c3aed 0%, #c084fc 50%, #ec4899 100%) !important;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5);
|
||||
}
|
||||
|
||||
.btn-success {
|
||||
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
||||
border-color: transparent !important;
|
||||
color: #ffffff !important;
|
||||
box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
|
||||
}
|
||||
|
||||
.btn-success:hover {
|
||||
background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
|
||||
}
|
||||
|
||||
.ai-status-loader {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: var(--color-indigo-600);
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.summary-output-panel textarea {
|
||||
flex-grow: 1;
|
||||
min-height: 380px;
|
||||
@ -1160,72 +876,6 @@
|
||||
box-shadow: 0 0 0 3px rgba(98, 95, 255, 0.12), inset 0 2px 4px rgba(0,0,0,0.02) !important;
|
||||
}
|
||||
|
||||
.status {
|
||||
margin: 16px auto;
|
||||
max-width: 100%;
|
||||
padding: 10px 16px;
|
||||
border-radius: var(--radius-md);
|
||||
font-weight: 700;
|
||||
font-size: 13.5px;
|
||||
text-align: center;
|
||||
border: 1px solid var(--border-slate-200);
|
||||
background: #ffffff;
|
||||
color: var(--text-primary);
|
||||
box-shadow: var(--shadow-flat);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.status.info {
|
||||
border-left: 3px solid var(--color-indigo-500);
|
||||
background: var(--color-indigo-50);
|
||||
color: var(--color-indigo-700);
|
||||
}
|
||||
|
||||
.status.success {
|
||||
border-left: 3px solid #10b981;
|
||||
background: #dcfce7;
|
||||
color: #15803d;
|
||||
}
|
||||
|
||||
.status.error {
|
||||
border-left: 3px solid #ef4444;
|
||||
background: #fee2e2;
|
||||
color: #b91c1c;
|
||||
}
|
||||
|
||||
.status .progress {
|
||||
width: 100%;
|
||||
max-width: 250px;
|
||||
height: 5px;
|
||||
background: var(--border-slate-200);
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.status .progress-bar {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, var(--color-indigo-500), #8b5cf6);
|
||||
animation: progress-stripes 1.5s linear infinite;
|
||||
}
|
||||
|
||||
.ai-loader {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 16px;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--color-indigo-50);
|
||||
border: 1px solid rgba(98, 95, 255, 0.15);
|
||||
color: var(--color-indigo-600);
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.spinner {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
@ -1318,21 +968,51 @@
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.bilan-wrapper {
|
||||
padding: 1.5rem 1rem;
|
||||
}
|
||||
|
||||
.bilan-container {
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.controls {
|
||||
.app-topbar {
|
||||
height: auto;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
align-items: flex-start;
|
||||
padding: 12px 16px;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.controls input,
|
||||
.controls select {
|
||||
|
||||
.topbar-center {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.topbar-right {
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.topbar-input {
|
||||
width: 90px;
|
||||
}
|
||||
|
||||
.topbar-actions {
|
||||
border-left: none;
|
||||
padding-left: 0;
|
||||
margin-left: 0;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.app-main {
|
||||
padding: 16px 16px 48px;
|
||||
}
|
||||
|
||||
.criteria-toolbar {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
height: auto;
|
||||
padding: 8px 0;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.toolbar-add-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.criteria-toolbar-right {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@ -1344,4 +1024,20 @@
|
||||
.competences-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.competence-item {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.level-group {
|
||||
flex-wrap: wrap;
|
||||
margin-left: 28px;
|
||||
}
|
||||
|
||||
.toast-container {
|
||||
bottom: 12px;
|
||||
right: 12px;
|
||||
left: 12px;
|
||||
max-width: none;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user