|
1001 | 1001 | */ |
1002 | 1002 | .yii-debug-request-hero-method, |
1003 | 1003 | .yii-debug-snapshot-status, |
| 1004 | + .yii-debug-hero-status > .yii-debug-badge, |
1004 | 1005 | .yii-debug-level-chip, |
1005 | 1006 | .yii-debug-db-type, |
1006 | 1007 | .yii-debug-dump-type, |
|
3742 | 3743 | white-space: nowrap; |
3743 | 3744 | } |
3744 | 3745 |
|
| 3746 | + /** |
| 3747 | + * =================================================================== |
| 3748 | + * Hero — the header of a panel about one subject. |
| 3749 | + * =================================================================== |
| 3750 | + * The Request overview rail, generalized: an accent rail, a mark tile, |
| 3751 | + * the title and subtitle, a status chip, and one metric row. The status |
| 3752 | + * tone sets `--yii-debug-hue`, so the rail, the mark, and the chip share |
| 3753 | + * one hue; the muted variant keeps the neutral fallback. |
| 3754 | + */ |
| 3755 | + .yii-debug-hero { |
| 3756 | + overflow: hidden; |
| 3757 | + margin-bottom: var(--yii-debug-space-5); |
| 3758 | + border: var(--yii-debug-border); |
| 3759 | + border-inline-start: 4px solid |
| 3760 | + color-mix( |
| 3761 | + in srgb, |
| 3762 | + var(--yii-debug-hue, var(--yii-debug-panel-muted)) 76%, |
| 3763 | + var(--yii-debug-panel-text) |
| 3764 | + ); |
| 3765 | + border-radius: var(--yii-debug-radius-lg); |
| 3766 | + background: var(--yii-debug-panel-surface); |
| 3767 | + box-shadow: var(--yii-debug-shadow-sm); |
| 3768 | + } |
| 3769 | + |
| 3770 | + .yii-debug-hero-danger { |
| 3771 | + --yii-debug-hue: var(--yii-debug-danger); |
| 3772 | + } |
| 3773 | + |
| 3774 | + .yii-debug-hero-info { |
| 3775 | + --yii-debug-hue: var(--yii-debug-info); |
| 3776 | + } |
| 3777 | + |
| 3778 | + .yii-debug-hero-success { |
| 3779 | + --yii-debug-hue: var(--yii-debug-success); |
| 3780 | + } |
| 3781 | + |
| 3782 | + .yii-debug-hero-warning { |
| 3783 | + --yii-debug-hue: var(--yii-debug-warning); |
| 3784 | + } |
| 3785 | + |
| 3786 | + .yii-debug-hero-header { |
| 3787 | + display: grid; |
| 3788 | + grid-template-columns: minmax(0, 1fr) auto; |
| 3789 | + gap: var(--yii-debug-space-4); |
| 3790 | + align-items: center; |
| 3791 | + padding: var(--yii-debug-space-4); |
| 3792 | + } |
| 3793 | + |
| 3794 | + .yii-debug-hero-identity { |
| 3795 | + display: flex; |
| 3796 | + min-width: 0; |
| 3797 | + align-items: center; |
| 3798 | + gap: var(--yii-debug-space-3); |
| 3799 | + } |
| 3800 | + |
| 3801 | + .yii-debug-hero-mark { |
| 3802 | + display: inline-flex; |
| 3803 | + width: 40px; |
| 3804 | + height: 40px; |
| 3805 | + flex: none; |
| 3806 | + align-items: center; |
| 3807 | + justify-content: center; |
| 3808 | + border: 1px solid |
| 3809 | + color-mix( |
| 3810 | + in srgb, |
| 3811 | + var(--yii-debug-hue, var(--yii-debug-panel-muted)), |
| 3812 | + transparent 65% |
| 3813 | + ); |
| 3814 | + border-radius: var(--yii-debug-radius-md); |
| 3815 | + background: color-mix( |
| 3816 | + in srgb, |
| 3817 | + var(--yii-debug-hue, var(--yii-debug-panel-muted)), |
| 3818 | + transparent 88% |
| 3819 | + ); |
| 3820 | + color: color-mix( |
| 3821 | + in srgb, |
| 3822 | + var(--yii-debug-hue, var(--yii-debug-panel-muted)) 80%, |
| 3823 | + var(--yii-debug-panel-text) |
| 3824 | + ); |
| 3825 | + font-family: var(--yii-debug-font-mono); |
| 3826 | + font-size: var(--yii-debug-fs-sm); |
| 3827 | + font-weight: 700; |
| 3828 | + letter-spacing: 0.04em; |
| 3829 | + text-transform: uppercase; |
| 3830 | + } |
| 3831 | + |
| 3832 | + .yii-debug-hero-text { |
| 3833 | + display: flex; |
| 3834 | + min-width: 0; |
| 3835 | + flex-direction: column; |
| 3836 | + gap: 2px; |
| 3837 | + } |
| 3838 | + |
| 3839 | + .yii-debug-hero-title, |
| 3840 | + .yii-debug-hero-subtitle { |
| 3841 | + overflow: hidden; |
| 3842 | + font-family: var(--yii-debug-font-mono); |
| 3843 | + text-overflow: ellipsis; |
| 3844 | + white-space: nowrap; |
| 3845 | + } |
| 3846 | + |
| 3847 | + .yii-debug-hero-title { |
| 3848 | + color: var(--yii-debug-panel-text); |
| 3849 | + font-size: var(--yii-debug-fs-base); |
| 3850 | + font-weight: 600; |
| 3851 | + } |
| 3852 | + |
| 3853 | + .yii-debug-hero-subtitle { |
| 3854 | + color: var(--yii-debug-panel-muted); |
| 3855 | + font-size: var(--yii-debug-fs-xs); |
| 3856 | + } |
| 3857 | + |
| 3858 | + .yii-debug-hero-status > .yii-debug-badge { |
| 3859 | + padding: 3px 12px; |
| 3860 | + font-family: var(--yii-debug-font-mono); |
| 3861 | + font-size: var(--yii-debug-fs-sm); |
| 3862 | + font-weight: 700; |
| 3863 | + letter-spacing: 0.02em; |
| 3864 | + } |
| 3865 | + |
| 3866 | + .yii-debug-hero-metrics { |
| 3867 | + display: grid; |
| 3868 | + margin: 0; |
| 3869 | + grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); |
| 3870 | + border-top: var(--yii-debug-border); |
| 3871 | + background: var(--yii-debug-panel-border); |
| 3872 | + gap: 1px; |
| 3873 | + } |
| 3874 | + |
| 3875 | + .yii-debug-hero-metric { |
| 3876 | + min-width: 0; |
| 3877 | + padding: var(--yii-debug-space-3) var(--yii-debug-space-4); |
| 3878 | + background: var(--yii-debug-panel-surface-muted); |
| 3879 | + |
| 3880 | + dt { |
| 3881 | + margin-bottom: 2px; |
| 3882 | + color: var(--yii-debug-panel-muted); |
| 3883 | + font-family: var(--yii-debug-font-sans); |
| 3884 | + font-size: 0.6875rem; |
| 3885 | + font-weight: 700; |
| 3886 | + letter-spacing: 0.07em; |
| 3887 | + text-transform: uppercase; |
| 3888 | + } |
| 3889 | + |
| 3890 | + dd { |
| 3891 | + overflow: hidden; |
| 3892 | + margin: 0; |
| 3893 | + color: var(--yii-debug-panel-text); |
| 3894 | + font-family: var(--yii-debug-font-mono); |
| 3895 | + font-size: var(--yii-debug-fs-sm); |
| 3896 | + font-weight: 600; |
| 3897 | + text-overflow: ellipsis; |
| 3898 | + white-space: nowrap; |
| 3899 | + } |
| 3900 | + } |
| 3901 | + |
3745 | 3902 | /** |
3746 | 3903 | * =================================================================== |
3747 | 3904 | * Entity inventory — stat tiles, entity cards, file lists, and link |
|
0 commit comments