Home Information - Your home, your data, organized.
Python
/* ===== ICON SYSTEM ===== */
/* Base icon class */
.hi-icon {
display: inline-block;
vertical-align: middle;
fill: currentColor;
stroke: currentColor;
flex-shrink: 0;
}
/* Icon sizes */
.hi-icon-sm {
width: 0.875rem;
height: 0.875rem;
}
.hi-icon-md {
width: 1rem;
height: 1rem;
}
.hi-icon-lg {
width: 1.25rem;
height: 1.25rem;
}
.hi-icon-xl {
width: 1.5rem;
height: 1.5rem;
}
/* Semantic icon colors using existing CSS variables */
.hi-icon-primary {
color: var(--primary-color);
}
.hi-icon-secondary {
color: var(--secondary-color);
}
.hi-icon-success {
color: var(--success-color);
}
.hi-icon-warning {
color: var(--warning-color);
}
.hi-icon-error {
color: var(--error-color);
}
.hi-icon-muted {
color: var(--muted-color);
}
/* Icon spacing utilities */
.hi-icon-left {
margin-right: 0.375rem;
}
.hi-icon-right {
margin-left: 0.375rem;
}
/* Icon button integration */
.btn .hi-icon {
vertical-align: text-top;
}
/* Ensure icons work well in different contexts */
.card-header .hi-icon,
.card-title .hi-icon {
margin-right: 0.375rem;
}
.alert .hi-icon {
margin-right: 0.5rem;
}
/* Legacy icon class deprecation helpers */
.plus-icon,
.history-icon {
/* These classes are deprecated. Use {% icon %} template tag instead */
opacity: 0.7;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.hi-icon {
stroke-width: 2;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
.hi-icon {
transition: none;
}
}
/* History icon styling - matches plus-icon pattern */
.history-icon {
font-size: 1rem;
color: var(--primary-color);
padding: 0 0.25rem;
}
.plus-icon {
font-size: 1.5rem;
color: var(--on-primary-color);
background-color: var(--primary-color);
padding: 0 0.25rem 0 0.25rem;
}