Skip to content

Commit f41335c

Browse files
authored
Update certStyles.css
1 parent 21a6d31 commit f41335c

File tree

1 file changed

+171
-0
lines changed

1 file changed

+171
-0
lines changed

web/certStyles.css

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,172 @@
1+
/* =========================================
2+
certStyles.css
3+
ONLY extra styles for Certificate Manager
4+
(Relies on variables & layout from styles.css)
5+
========================================= */
16

7+
/* -------------------------
8+
Recommended box
9+
------------------------- */
10+
11+
.recommended-box {
12+
margin-bottom: 16px;
13+
padding: 14px 16px;
14+
border-radius: 12px;
15+
background: linear-gradient(
16+
90deg,
17+
rgba(78, 229, 255, 0.15),
18+
rgba(139, 92, 246, 0.12)
19+
);
20+
border: 1px solid var(--border);
21+
font-weight: 500;
22+
}
23+
24+
/* -------------------------
25+
Cert list container
26+
------------------------- */
27+
28+
.cert-list {
29+
display: grid;
30+
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
31+
gap: 16px;
32+
margin-top: 12px;
33+
}
34+
35+
/* -------------------------
36+
Individual cert card
37+
------------------------- */
38+
39+
.cert-card {
40+
background: var(--panel);
41+
border-radius: 14px;
42+
padding: 14px 16px;
43+
border: 1px solid var(--border);
44+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
45+
transition: transform 0.12s ease, box-shadow 0.12s ease;
46+
}
47+
48+
.cert-card:hover {
49+
transform: translateY(-2px);
50+
box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
51+
}
52+
53+
/* -------------------------
54+
Updates dropdown (collapsible)
55+
------------------------- */
56+
57+
.updates-box {
58+
position: sticky;
59+
bottom: 16px;
60+
margin-top: 20px;
61+
62+
background: var(--panel);
63+
border-radius: 14px;
64+
border: 1px solid var(--border);
65+
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
66+
67+
overflow: visible; /* IMPORTANT: allow upward expansion */
68+
z-index: 50;
69+
}
70+
71+
/* Header row */
72+
.updates-header {
73+
display: flex;
74+
align-items: center;
75+
justify-content: space-between;
76+
padding: 12px 14px;
77+
cursor: pointer;
78+
}
79+
80+
.updates-title {
81+
margin: 0;
82+
font-size: 15px;
83+
}
84+
85+
/* Caret toggle */
86+
.updates-toggle {
87+
border: none;
88+
background: transparent;
89+
font-size: 16px;
90+
cursor: pointer;
91+
transition: transform 0.18s ease;
92+
}
93+
94+
/* -------------------------
95+
Updates content (STARTS CLOSED)
96+
------------------------- */
97+
98+
.updates-inner {
99+
position: absolute;
100+
bottom: 100%; /* EXPAND UPWARDS */
101+
left: 0;
102+
width: 100%;
103+
104+
max-height: 0; /* START MINIMISED */
105+
overflow: hidden;
106+
107+
background: var(--panel);
108+
border-radius: 14px;
109+
border: 1px solid var(--border);
110+
box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14);
111+
112+
transition: max-height 0.28s ease;
113+
}
114+
115+
/* Expanded state (set via JS) */
116+
.updates-box.expanded .updates-inner {
117+
max-height: 80vh; /* grow to fit content */
118+
overflow-y: auto;
119+
}
120+
121+
/* Rotate caret when open */
122+
.updates-box.expanded .updates-toggle {
123+
transform: rotate(180deg);
124+
}
125+
126+
/* Inner content padding */
127+
.updates-inner > * {
128+
padding: 12px 14px;
129+
}
130+
131+
/* -------------------------
132+
Modal (cert details)
133+
------------------------- */
134+
135+
.modal {
136+
position: fixed;
137+
inset: 0;
138+
background: rgba(0, 0, 0, 0.45);
139+
display: none;
140+
align-items: center;
141+
justify-content: center;
142+
z-index: 100;
143+
}
144+
145+
.modal[aria-hidden="false"] {
146+
display: flex;
147+
}
148+
149+
.modal-panel {
150+
background: var(--panel);
151+
border-radius: 18px;
152+
padding: 22px;
153+
width: min(520px, 92vw);
154+
box-shadow: 0 28px 60px rgba(0, 0, 0, 0.25);
155+
position: relative;
156+
}
157+
158+
.modal-close {
159+
position: absolute;
160+
top: 14px;
161+
right: 14px;
162+
border: none;
163+
background: transparent;
164+
font-size: 18px;
165+
cursor: pointer;
166+
}
167+
168+
.modal-meta,
169+
.modal-dates,
170+
.modal-download {
171+
margin-top: 12px;
172+
}

0 commit comments

Comments
 (0)