Skip to content

Commit 5feaefc

Browse files
Merge pull request #45 from mcclatchy/2.8.5
SDS 2.8.5
2 parents 5b2610b + 55a3240 commit 5feaefc

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

layouts/shortcodes/ai-summary.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="ai-summary-wrapper">
22
<div class="ai-summary">
3-
<a class="expander" onclick="this.classList.toggle('open');">
3+
<div class="expander" onclick="this.classList.toggle('open');">
44
<div class="grid">
55
<div class="ai-summary-header">
66
<svg xmlns="http://www.w3.org/2000/svg" width="15" height="16" viewBox="0 0 15 16" fill="none"><title>Key Takeaways</title>
@@ -14,16 +14,14 @@
1414
</svg>
1515
<div class="h3">Key Takeaways</div>
1616
</div>
17-
<p class="summary">AI generated summary reviewed by our newsroom</p>
17+
<p class="summary">AI generated summary reviewed by our newsroom. <a href="#">Read our AI Policy.</a></p>
1818
</div>
19-
</a>
19+
</div>
2020
<hr>
2121
<ul>
2222
<li>Kevin Wang, a New College professor, was fired under Florida's SB 846 law.</li>
2323
<li>Wang, a Chinese asylum seeker, taught for nearly two years before his dismissal.</li>
2424
<li>His firing sparked student outrage and concerns about academic freedom.</li>
25-
<li>The law faces criticism and legal challenges for potential discrimination.</li>
26-
<li>Wang plans to leave Florida but will continue seeking asylum in the U.S.</li>
2725
</ul>
2826
</div>
2927
</div>

static/css/cards/ai-summary.css

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@
2222
--grid-row-gap: 5px;
2323
--columns: auto;
2424
--secondary-text-color: var(--lightgray);
25-
--link-color: var(--text-color);
2625
}
2726

28-
@media (min-width: 630px) {
27+
@media (min-width: 797px) {
2928
.ai-summary .grid {
3029
grid-auto-flow: column;
3130
align-items: baseline;
@@ -39,16 +38,20 @@
3938

4039
.ai-summary-header {
4140
display: flex;
42-
gap: var(--space-sm);
41+
gap: 5px;
4342
align-items: center;
4443
}
4544

4645
.ai-summary p {
47-
font-size: 0.677em;
46+
font-size: 0.67em;
4847
color: var(--darkgray);
4948
margin: 0;
5049
}
5150

51+
.ai-summary p a {
52+
display: inline-block;
53+
}
54+
5255
.ai-summary ul {
5356
list-style-type: square;
5457
font-size: 0.78em;

0 commit comments

Comments
 (0)