Customization¶
Learn how to customize the appearance of the OSGEO-Inject badge.
CSS Variables¶
Override these CSS custom properties to customize the badge:
/* In your site's stylesheet */
.osgeo-inject {
/* Background colors */
--osgeo-bg: #ffffff;
/* Text colors */
--osgeo-text: #333333;
--osgeo-text-secondary: #666666;
/* Border and shadow */
--osgeo-border: #e0e0e0;
--osgeo-shadow: rgba(0, 0, 0, 0.15);
/* Accent color (green by default) */
--osgeo-accent: #4caf50;
/* Link colors */
--osgeo-link: #1a73e8;
--osgeo-link-hover: #0d47a1;
}
Dark Mode Customization¶
For dark mode, target the .osgeo-inject--dark class:
Positioning Adjustments¶
Adjust the badge position offset:
Z-Index Conflicts¶
If the badge is hidden behind other elements:
Hide on Specific Pages¶
Use CSS to hide the badge on certain pages:
Animation Customization¶
Disable or customize animations:
/* Disable all animations */
.osgeo-inject,
.osgeo-inject * {
transition: none !important;
}
/* Custom animation timing */
.osgeo-inject__content {
transition: max-height 0.5s ease-in-out;
}
Accessibility¶
The badge respects prefers-reduced-motion: