Skip to content

Commit b028878

Browse files
authored
Update certStyles.css
1 parent 1052374 commit b028878

File tree

1 file changed

+165
-38
lines changed

1 file changed

+165
-38
lines changed

web/certStyles.css

Lines changed: 165 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,188 @@
1-
#recommended, #updates {
2-
margin: 20px 0;
3-
padding: 16px;
4-
border-radius: 12px;
5-
background: linear-gradient(135deg, #1a1f3c, #12152a);
1+
:root{
2+
--bg: #f6f7fb;
3+
--panel: #ffffff;
4+
--muted: #6b7280;
5+
--text: #0f1724;
6+
--primary: #2563eb; /* blue */
7+
--revoked: #ef4444;
8+
--valid: #10b981;
9+
--card-border: rgba(15,23,36,0.06);
10+
--glass: rgba(15,23,36,0.02);
11+
--shadow: 0 6px 18px rgba(15,23,36,0.06);
12+
font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
613
}
714

8-
#recommended {
9-
border-left: 5px solid #4f7cff;
15+
html,body{
16+
height:100%;
17+
margin:0;
18+
background:var(--bg);
19+
color:var(--text);
20+
-webkit-font-smoothing:antialiased;
21+
-moz-osx-font-smoothing:grayscale;
22+
font-size:14px;
1023
}
1124

12-
#recommended h2 {
13-
margin: 0 0 6px 0;
14-
color: #4f7cff;
25+
/* keep your main styles intact, this just targets the new components */
26+
.panel {
27+
background: var(--panel);
28+
padding: 22px;
29+
border-radius: 12px;
30+
box-shadow: var(--shadow);
31+
margin: 18px;
1532
}
1633

17-
#updates h2 {
18-
margin-bottom: 10px;
34+
/* Recommended box */
35+
.recommended-box {
36+
border-left: 4px solid var(--primary);
37+
padding: 12px 14px;
38+
background: linear-gradient(180deg, #ffffff, #fbfcff);
39+
border-radius: 8px;
40+
margin-bottom: 14px;
1941
}
20-
21-
.update-item {
22-
opacity: 0.9;
23-
margin-bottom: 6px;
24-
font-size: 14px;
42+
.recommended-box h3 {
43+
margin: 0 0 6px 0;
44+
color: var(--primary);
45+
font-weight:600;
46+
}
47+
.recommended-box p {
48+
margin:0;
49+
color:var(--muted);
2550
}
2651

27-
.cert-table {
28-
width: 100%;
29-
border-collapse: collapse;
30-
margin-top: 20px;
52+
/* Certificate list (cards) */
53+
.cert-list {
54+
display: grid;
55+
grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
56+
gap: 12px;
57+
margin-top: 18px;
3158
}
3259

33-
.cert-table th, .cert-table td {
60+
/* individual card */
61+
.cert-card {
62+
background: var(--panel);
63+
border: 1px solid var(--card-border);
3464
padding: 12px;
35-
text-align: left;
65+
border-radius: 10px;
66+
cursor: pointer;
67+
transition: transform .12s ease, box-shadow .12s ease;
68+
display:flex;
69+
flex-direction:column;
70+
gap:8px;
3671
}
37-
38-
.cert-table th {
39-
background: #181c36;
72+
.cert-card:hover {
73+
transform: translateY(-6px);
74+
box-shadow: 0 10px 26px rgba(15,23,36,0.08);
4075
}
41-
42-
.cert-table tr {
43-
border-bottom: 1px solid #2a2f55;
76+
.card-top {
77+
display:flex;
78+
align-items:center;
79+
justify-content:space-between;
80+
}
81+
.card-title {
82+
font-weight:600;
83+
font-size:15px;
84+
color:var(--text);
85+
line-height:1.2;
86+
}
87+
.card-meta {
88+
font-size:13px;
89+
color:var(--muted);
90+
}
91+
.badge {
92+
padding:6px 8px;
93+
border-radius:999px;
94+
font-size:12px;
95+
font-weight:600;
96+
display:inline-block;
97+
}
98+
.badge.revoked {
99+
background: rgba(239,68,68,0.08);
100+
color: var(--revoked);
101+
border: 1px solid rgba(239,68,68,0.12);
102+
}
103+
.badge.valid {
104+
background: rgba(16,185,129,0.08);
105+
color: var(--valid);
106+
border: 1px solid rgba(16,185,129,0.12);
44107
}
45108

46-
.status {
47-
font-weight: bold;
109+
/* small footer row inside card */
110+
.card-footer {
111+
display:flex;
112+
justify-content:space-between;
113+
align-items:center;
114+
gap:10px;
115+
margin-top:6px;
116+
}
117+
.card-footer .small {
118+
font-size:12px;
119+
color:var(--muted);
48120
}
49121

50-
.status.revoked {
51-
color: #ff5f57;
122+
/* Updates box */
123+
.updates-box {
124+
margin-top:20px;
125+
padding:12px;
126+
background:var(--glass);
127+
border-radius:10px;
128+
border:1px solid var(--card-border);
129+
}
130+
.updates-title { margin: 0 0 8px 0; font-weight:600; color:var(--text); }
131+
.updates-inner {
132+
max-height:140px; /* prevents cutting off — will scroll */
133+
overflow-y:auto;
134+
padding-right:6px;
135+
}
136+
.update-item {
137+
margin-bottom:8px;
138+
font-size:13px;
139+
color:var(--muted);
52140
}
53141

54-
.cert-table a {
55-
color: #4f7cff;
56-
text-decoration: none;
142+
/* Modal */
143+
.modal {
144+
position:fixed;
145+
inset:0;
146+
display:none;
147+
align-items:center;
148+
justify-content:center;
149+
background: rgba(10,12,20,0.35);
150+
z-index:9999;
151+
}
152+
.modal.show { display:flex; }
153+
.modal-panel {
154+
background:var(--panel);
155+
width: min(720px, 96%);
156+
border-radius:12px;
157+
padding:20px;
158+
box-shadow: 0 20px 60px rgba(2,6,23,0.35);
159+
position:relative;
160+
}
161+
.modal-close {
162+
position:absolute;
163+
right:12px;
164+
top:10px;
165+
border:none;
166+
background:transparent;
167+
font-size:16px;
168+
cursor:pointer;
169+
color:var(--muted);
170+
}
171+
.modal-meta { color:var(--muted); margin:8px 0; font-size:13px; }
172+
.modal-dates { margin:8px 0; font-size:13px; color:var(--muted); }
173+
.modal-download a {
174+
display:inline-block;
175+
margin-top:10px;
176+
padding:10px 14px;
177+
border-radius:8px;
178+
background:var(--primary);
179+
color:white;
180+
text-decoration:none;
181+
font-weight:600;
57182
}
58183

59-
.cert-table a:hover {
60-
text-decoration: underline;
184+
/* small responsive tweaks */
185+
@media (max-width:420px){
186+
.cert-list { grid-template-columns: 1fr; }
187+
.modal-panel { padding:14px; }
61188
}

0 commit comments

Comments
 (0)