Files
xrpl-dev-portal/shared/patterns/LogoSquareGrid/LogoSquareGrid.scss
2026-06-08 16:57:24 -07:00

104 lines
3.8 KiB
SCSS

// BDS LogoSquareGrid Component Styles
// Brand Design System - Logo grid pattern with optional header section
//
// Naming Convention: BEM with 'bds' namespace
// .bds-logo-square-grid - Base component
// .bds-logo-square-grid--gray - Gray variant (maps to TileLogo 'neutral')
// .bds-logo-square-grid--green - Green variant (maps to TileLogo 'green')
// .bds-logo-square-grid__header - Header section container
// .bds-logo-square-grid__text - Text content container
// .bds-logo-square-grid__heading - Heading element
// .bds-logo-square-grid__description - Description element
//
// Note: Individual logo tiles are rendered using the TileLogo component
// Note: Button layout is handled by the ButtonGroup component
// =============================================================================
// Design Tokens
// =============================================================================
// Note: Color variants are now handled by the TileLogo component
// LogoSquareGrid 'gray' maps to TileLogo 'neutral'
// LogoSquareGrid 'green' maps to TileLogo 'green'
// Spacing tokens - responsive
// Note: Uses centralized spacing tokens from _spacing.scss.
// Mobile (<768px)
$bds-lsg-header-gap-mobile: $bds-space-2xl; // 24px - spacing('2xl')
$bds-lsg-text-gap-mobile: $bds-space-sm; // 8px - spacing('sm')
// Tablet (768px-1023px)
$bds-lsg-header-gap-tablet: $bds-space-3xl; // 32px - spacing('3xl')
// Desktop (≥1024px)
$bds-lsg-header-gap-desktop: $bds-space-4xl; // 40px - spacing('4xl')
$bds-lsg-text-gap-desktop: $bds-space-lg; // 16px - spacing('lg')
// =============================================================================
// Base Component Styles
// =============================================================================
.bds-logo-square-grid {
@extend .d-flex;
@extend .flex-column;
@extend .w-100;
}
// =============================================================================
// Header Section
// =============================================================================
.bds-logo-square-grid__header {
@extend .d-flex;
@extend .flex-column;
margin-top: $bds-space-2xl; // 24px - spacing('2xl')
margin-bottom: $bds-space-2xl; // 24px - spacing('2xl')
// Mobile-first gap
gap: $bds-lsg-header-gap-mobile;
// Tablet breakpoint
@include media-breakpoint-up(md) {
gap: $bds-lsg-header-gap-tablet;
margin-top: $bds-space-3xl; // 32px - spacing('3xl')
margin-bottom: $bds-space-3xl; // 32px - spacing('3xl')
}
// Desktop breakpoint
@include media-breakpoint-up(lg) {
gap: $bds-lsg-header-gap-desktop;
margin-top: $bds-space-4xl; // 40px - spacing('4xl')
margin-bottom: $bds-space-4xl; // 40px - spacing('4xl')
}
}
// =============================================================================
// Text Content
// =============================================================================
.bds-logo-square-grid__text {
@extend .d-flex;
@extend .flex-column;
// Mobile-first gap
gap: $bds-lsg-text-gap-mobile;
// Desktop breakpoint
@include media-breakpoint-up(lg) {
gap: $bds-lsg-text-gap-desktop;
}
}
// =============================================================================
// Action Buttons
// =============================================================================
// Note: Button layout is now handled by the ButtonGroup component
// =============================================================================
// Logo Grid Row
// =============================================================================
// Note: Grid layout is now handled by PageGridRow/PageGridCol
// Each tile uses PageGridCol with span={{ base: 2, lg: 3 }}
// This gives us 2 columns on mobile (2/4) and 4 columns on desktop (3/12)
// Tile rendering and styling is handled by the TileLogo component