|
14 | 14 |
|
15 | 15 | /* preserve original header-inner layout initially (items-start) */
|
16 | 16 | #sticky-header.compact .header-inner {
|
17 |
| - padding: 0 16px; /* remove extra vertical padding */ |
18 |
| - align-items: center; /* ensures children are centered vertically */ |
| 17 | + padding: 0 16px; |
| 18 | + align-items: center; /* ensure header rows center vertically */ |
19 | 19 | height: 64px; /* enforce exact height match to header */
|
20 | 20 | }
|
21 | 21 |
|
22 |
| - |
23 | 22 | /* Make sure header-right stays vertically centered always */
|
24 | 23 | #sticky-header .header-right {
|
25 |
| - display:flex; |
26 |
| - align-items:center; |
| 24 | + display: flex; |
| 25 | + align-items: center; |
27 | 26 | }
|
28 | 27 |
|
29 | 28 | /* Title: use transform for smoothness */
|
|
37 | 36 | #sticky-header .header-left .header-subtitle {
|
38 | 37 | transition: opacity 0.18s ease, transform 0.18s ease;
|
39 | 38 | opacity: 1;
|
40 |
| - margin-top: .25rem; |
41 |
| - font-size: .95rem; |
| 39 | + margin-top: 0.25rem; |
| 40 | + font-size: 0.95rem; |
42 | 41 | }
|
43 | 42 |
|
44 | 43 | /* right side controls smoothing */
|
45 | 44 | #sticky-header .header-right > * {
|
46 |
| - transition: transform .28s cubic-bezier(.2,.9,.3,1), opacity .28s ease, padding .28s cubic-bezier(.2,.9,.3,1); |
| 45 | + transition: transform 0.28s cubic-bezier(.2,.9,.3,1), opacity 0.28s ease, padding 0.28s cubic-bezier(.2,.9,.3,1); |
47 | 46 | }
|
48 | 47 |
|
49 | 48 | /* COMPACT state after scrolling: reduce height, hide subtitle, apply glass */
|
50 | 49 | #sticky-header.compact {
|
51 | 50 | height: 64px;
|
52 | 51 | margin-bottom: 0;
|
53 |
| - background-color: rgba(255, 255, 255, 0.80); /* slightly more opaque for contrast */ |
54 |
| - -webkit-backdrop-filter: blur(8px); |
| 52 | + background-color: rgb(255 255 255 / 80%); /* slightly more opaque for contrast */ |
55 | 53 | backdrop-filter: blur(8px);
|
56 |
| - box-shadow: 0 6px 20px rgba(2, 6, 23, 0.12); /* slightly stronger shadow for depth */ |
| 54 | + box-shadow: 0 6px 20px rgb(2 6 23 / 12%); /* slightly stronger shadow for depth */ |
57 | 55 | }
|
58 | 56 |
|
59 | 57 | .dark #sticky-header.compact {
|
60 |
| - background-color: rgba(17, 24, 39, 0.88); /* a bit darker in dark mode */ |
61 |
| - -webkit-backdrop-filter: blur(8px); |
| 58 | + background-color: rgb(17 24 39 / 88%); /* a bit darker in dark mode */ |
62 | 59 | backdrop-filter: blur(8px);
|
63 |
| - box-shadow: 0 6px 20px rgba(2, 6, 23, 0.25); |
| 60 | + box-shadow: 0 6px 20px rgb(2 6 23 / 25%); |
64 | 61 | }
|
65 | 62 |
|
66 |
| -/* center vertically only in compact mode so it matches your original initial layout but centered when small */ |
67 |
| -#sticky-header.compact .header-inner { |
68 |
| - padding: 8px 16px; |
69 |
| - align-items:center; /* ensure header rows center vertically */ |
| 63 | +/* Make header-left a vertical flex that centers its children when compact */ |
| 64 | +#sticky-header .header-left { |
| 65 | + display: block; |
70 | 66 | }
|
71 | 67 |
|
72 |
| -/* Make header-left a vertical flex that centers its children when compact */ |
73 |
| -#sticky-header .header-left { display:block; } |
74 | 68 | #sticky-header.compact .header-left {
|
75 |
| - display:flex; |
76 |
| - flex-direction:column; |
77 |
| - justify-content:center; |
78 |
| - height:100%; /* ensure it fills header-inner for perfect centering */ |
| 69 | + display: flex; |
| 70 | + flex-direction: column; |
| 71 | + justify-content: center; |
| 72 | + height: 100%; /* ensure it fills header-inner for perfect centering */ |
79 | 73 | padding: 0; /* avoid extra internal spacing */
|
80 | 74 | }
|
81 | 75 |
|
|
94 | 88 | }
|
95 | 89 |
|
96 | 90 | /* compact right-side controls: slightly smaller */
|
97 |
| -#sticky-header .header-team-btn, #sticky-header .header-admin-btn { padding: .25rem .5rem; font-size: .82rem; } |
98 |
| -#sticky-header.compact .header-team-btn, #sticky-header.compact .header-admin-btn { padding: .2rem .45rem; font-size: .78rem; } |
99 |
| -#sticky-header .header-user { padding-left: 0; padding-right: 0; } |
100 |
| -#sticky-header.compact .header-user { font-size: .78rem; } |
101 |
| -#sticky-header .header-logout-btn { transition: background-color .16s ease, color .16s ease, padding .16s ease; } |
102 |
| -#sticky-header.compact .header-logout-btn { padding: .25rem .6rem; font-size: .78rem; } |
| 91 | +#sticky-header .header-team-btn, |
| 92 | +#sticky-header .header-admin-btn { |
| 93 | + padding: 0.25rem 0.5rem; |
| 94 | + font-size: 0.82rem; |
| 95 | +} |
| 96 | + |
| 97 | +#sticky-header.compact .header-team-btn, |
| 98 | +#sticky-header.compact .header-admin-btn { |
| 99 | + padding: 0.2rem 0.45rem; |
| 100 | + font-size: 0.78rem; |
| 101 | +} |
| 102 | + |
| 103 | +#sticky-header .header-user { |
| 104 | + padding-left: 0; |
| 105 | + padding-right: 0; |
| 106 | +} |
| 107 | + |
| 108 | +#sticky-header.compact .header-user { |
| 109 | + font-size: 0.78rem; |
| 110 | +} |
| 111 | + |
| 112 | +#sticky-header .header-logout-btn { |
| 113 | + transition: background-color 0.16s ease, color 0.16s ease, padding 0.16s ease; |
| 114 | +} |
| 115 | + |
| 116 | +#sticky-header.compact .header-logout-btn { |
| 117 | + padding: 0.25rem 0.6rem; |
| 118 | + font-size: 0.78rem; |
| 119 | +} |
103 | 120 |
|
104 | 121 | /* subtle child pop for nicer visual */
|
105 |
| -#sticky-header.compact .header-right > * { transform: translateY(-2px) scale(0.97); filter: saturate(1.02); } |
| 122 | +#sticky-header.compact .header-right > * { |
| 123 | + transform: translateY(-2px) scale(0.97); |
| 124 | + filter: saturate(1.02); |
| 125 | +} |
106 | 126 |
|
107 | 127 | /* ensure dropdowns appear above header */
|
108 |
| -#sticky-header .z-50 { z-index: 99999; } |
109 |
| - |
| 128 | +#sticky-header .z-50 { |
| 129 | + z-index: 99999; |
| 130 | +} |
110 | 131 |
|
111 | 132 | .error-status {
|
112 | 133 | margin-top: 10px;
|
|
0 commit comments