Skip to content

Commit 2a53f0a

Browse files
authored
Update certStyles.css
1 parent f41335c commit 2a53f0a

File tree

1 file changed

+43
-21
lines changed

1 file changed

+43
-21
lines changed

web/certStyles.css

Lines changed: 43 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
11
/* =========================================
22
certStyles.css
33
ONLY extra styles for Certificate Manager
4-
(Relies on variables & layout from styles.css)
54
========================================= */
65

6+
/* -------------------------
7+
Panel layout tweak
8+
(allow inner scrolling sections)
9+
------------------------- */
10+
11+
.panel {
12+
overflow: hidden; /* prevent horizontal scroll */
13+
display: flex;
14+
flex-direction: column;
15+
}
16+
717
/* -------------------------
818
Recommended box
919
------------------------- */
1020

1121
.recommended-box {
12-
margin-bottom: 16px;
22+
margin-bottom: 14px;
1323
padding: 14px 16px;
1424
border-radius: 12px;
1525
background: linear-gradient(
@@ -19,17 +29,35 @@
1929
);
2030
border: 1px solid var(--border);
2131
font-weight: 500;
32+
flex-shrink: 0;
2233
}
2334

2435
/* -------------------------
2536
Cert list container
37+
(OWN SCROLL AREA)
2638
------------------------- */
2739

2840
.cert-list {
41+
flex: 1; /* fill remaining panel space */
42+
overflow-y: auto; /* vertical scroll ONLY */
43+
overflow-x: hidden;
44+
2945
display: grid;
30-
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
3146
gap: 16px;
32-
margin-top: 12px;
47+
padding-right: 6px; /* room for scrollbar */
48+
}
49+
50+
/* Responsive grid: multiple certs across */
51+
@media (min-width: 600px) {
52+
.cert-list {
53+
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
54+
}
55+
}
56+
57+
@media (max-width: 599px) {
58+
.cert-list {
59+
grid-template-columns: 1fr;
60+
}
3361
}
3462

3563
/* -------------------------
@@ -57,32 +85,30 @@
5785
.updates-box {
5886
position: sticky;
5987
bottom: 16px;
60-
margin-top: 20px;
88+
margin-top: 16px;
6189

6290
background: var(--panel);
6391
border-radius: 14px;
6492
border: 1px solid var(--border);
6593
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
6694

67-
overflow: visible; /* IMPORTANT: allow upward expansion */
68-
z-index: 50;
95+
overflow: visible;
96+
z-index: 60;
97+
flex-shrink: 0;
6998
}
7099

71-
/* Header row */
72100
.updates-header {
73101
display: flex;
74102
align-items: center;
75103
justify-content: space-between;
76104
padding: 12px 14px;
77-
cursor: pointer;
78105
}
79106

80107
.updates-title {
81108
margin: 0;
82109
font-size: 15px;
83110
}
84111

85-
/* Caret toggle */
86112
.updates-toggle {
87113
border: none;
88114
background: transparent;
@@ -91,17 +117,14 @@
91117
transition: transform 0.18s ease;
92118
}
93119

94-
/* -------------------------
95-
Updates content (STARTS CLOSED)
96-
------------------------- */
97-
120+
/* START CLOSED */
98121
.updates-inner {
99122
position: absolute;
100-
bottom: 100%; /* EXPAND UPWARDS */
123+
bottom: 100%;
101124
left: 0;
102125
width: 100%;
103126

104-
max-height: 0; /* START MINIMISED */
127+
max-height: 0;
105128
overflow: hidden;
106129

107130
background: var(--panel);
@@ -112,18 +135,17 @@
112135
transition: max-height 0.28s ease;
113136
}
114137

115-
/* Expanded state (set via JS) */
138+
/* Expanded state */
116139
.updates-box.expanded .updates-inner {
117-
max-height: 80vh; /* grow to fit content */
140+
max-height: 80vh;
118141
overflow-y: auto;
119142
}
120143

121-
/* Rotate caret when open */
144+
/* Rotate caret */
122145
.updates-box.expanded .updates-toggle {
123146
transform: rotate(180deg);
124147
}
125148

126-
/* Inner content padding */
127149
.updates-inner > * {
128150
padding: 12px 14px;
129151
}
@@ -139,7 +161,7 @@
139161
display: none;
140162
align-items: center;
141163
justify-content: center;
142-
z-index: 100;
164+
z-index: 120;
143165
}
144166

145167
.modal[aria-hidden="false"] {

0 commit comments

Comments
 (0)