Skip to content

Commit 567d9e5

Browse files
kevalmahajancrivetimihai
authored andcommitted
fixed stylelinting
Signed-off-by: Keval Mahajan <[email protected]>
1 parent cccd400 commit 567d9e5

File tree

1 file changed

+54
-33
lines changed

1 file changed

+54
-33
lines changed

mcpgateway/static/admin.css

Lines changed: 54 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@
1414

1515
/* preserve original header-inner layout initially (items-start) */
1616
#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 */
1919
height: 64px; /* enforce exact height match to header */
2020
}
2121

22-
2322
/* Make sure header-right stays vertically centered always */
2423
#sticky-header .header-right {
25-
display:flex;
26-
align-items:center;
24+
display: flex;
25+
align-items: center;
2726
}
2827

2928
/* Title: use transform for smoothness */
@@ -37,45 +36,40 @@
3736
#sticky-header .header-left .header-subtitle {
3837
transition: opacity 0.18s ease, transform 0.18s ease;
3938
opacity: 1;
40-
margin-top: .25rem;
41-
font-size: .95rem;
39+
margin-top: 0.25rem;
40+
font-size: 0.95rem;
4241
}
4342

4443
/* right side controls smoothing */
4544
#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);
4746
}
4847

4948
/* COMPACT state after scrolling: reduce height, hide subtitle, apply glass */
5049
#sticky-header.compact {
5150
height: 64px;
5251
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 */
5553
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 */
5755
}
5856

5957
.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 */
6259
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%);
6461
}
6562

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;
7066
}
7167

72-
/* Make header-left a vertical flex that centers its children when compact */
73-
#sticky-header .header-left { display:block; }
7468
#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 */
7973
padding: 0; /* avoid extra internal spacing */
8074
}
8175

@@ -94,19 +88,46 @@
9488
}
9589

9690
/* 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+
}
103120

104121
/* 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+
}
106126

107127
/* ensure dropdowns appear above header */
108-
#sticky-header .z-50 { z-index: 99999; }
109-
128+
#sticky-header .z-50 {
129+
z-index: 99999;
130+
}
110131

111132
.error-status {
112133
margin-top: 10px;

0 commit comments

Comments
 (0)