refactor: consolidate badge styling to CSS classes
- Move all positioning logic from inline styles to CSS - New classes: .badge-container-right, .badge-button-layout - All badge styling now in UsageBadge.css (single source) - Easier to maintain and adjust globally - Mobile responsive adjustments in one place Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
30df150b6f
commit
baad096ead
4 files changed
+67
-13
No files matched your search
@@ -51,3 +51,53 @@
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================================
|
||||
Badge Container Styles - Positioning
|
||||
============================================================================
|
||||
|
||||
Zentrale Konfiguration für Badge-Platzierung in verschiedenen Kontexten.
|
||||
Alle Anpassungen an Layout/Spacing hier vornehmen!
|
||||
*/
|
||||
|
||||
/* Badge rechts außen (für Headings/Titles) */
|
||||
.badge-container-right {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
/* Badge rechts im Button (mit Beschreibung darunter) */
|
||||
.badge-button-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.badge-button-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.badge-button-description {
|
||||
font-size: 11px;
|
||||
opacity: 0.8;
|
||||
display: block;
|
||||
margin-top: 2px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Mobile Anpassungen */
|
||||
@media (max-width: 640px) {
|
||||
.badge-container-right {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.badge-button-description {
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user