clone of github.com/decent-newsroom/newsroom
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

149 lines
2.9 KiB

.highlights-container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem 1rem;
}
.highlights-grid {
column-count: 3;
column-gap: 2rem;
margin-top: 2rem;
}
.highlight-card {
background: var(--color-bg-secondary, #f9f9f9);
padding: var(--spacing-3);
transition: transform 0.2s;
margin-bottom: 2rem;
display: inline-block;
width: 100%;
}
.highlight-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
padding-bottom: 0.75rem;
}
.highlight-author {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: var(--color-text-secondary, #666);
}
.highlight-date {
font-size: 0.85rem;
color: var(--color-text-muted, #999);
}
.highlight-content {
font-size: 1.1rem;
line-height: 1.3;
color: var(--color-text-primary, #333);
}
.highlight-mark {
background: var(--color-accent-300);
padding: 0.1em 0.2em;
font-weight: 500;
}
.context-text {
margin-bottom: 0.5rem;
font-style: normal;
}
.highlight-footer {
margin-top: 1rem;
padding-top: 1rem;
}
.article-reference {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: var(--color-link, #0066cc);
text-decoration: none;
transition: color 0.2s;
}
.article-reference:hover {
color: var(--color-link-hover, #004499);
text-decoration: underline;
}
.no-highlights {
text-align: center;
padding: 4rem 2rem;
color: var(--color-text-secondary, #666);
font-size: 1.1rem;
}
.error-message {
background: #fee;
border: 1px solid #fcc;
padding: 1rem;
margin: 1rem 0;
color: #c00;
}
.highlights-stats {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background: var(--color-bg-secondary, #f9f9f9);
margin-bottom: 1.5rem;
}
/* Article inline highlights */
.article-highlight {
background: transparent;
border-bottom: 2px solid transparent;
padding: 0.1em 0;
transition: all 0.3s ease;
cursor: help;
}
.article-highlight.visible {
background: linear-gradient(to bottom,
rgba(255, 237, 74, 0.3) 0%,
rgba(255, 237, 74, 0.5) 100%);
border-bottom: 2px solid rgba(255, 200, 0, 0.6);
}
.article-highlight.visible:hover {
background: linear-gradient(to bottom,
rgba(255, 237, 74, 0.5) 0%,
rgba(255, 237, 74, 0.7) 100%);
border-bottom-color: rgba(255, 200, 0, 0.8);
}
/* Toggle button active state */
.btn[aria-pressed="true"] {
background-color: rgba(255, 237, 74, 0.3);
border-color: rgba(255, 200, 0, 0.6);
}
.btn[aria-pressed="true"]:hover {
background-color: rgba(255, 237, 74, 0.5);
}
@media (max-width: 768px) {
.highlights-grid {
column-count: 1;
}
.highlight-card {
margin-bottom: 1.5rem;
}
}
@media (min-width: 769px) and (max-width: 1200px) {
.highlights-grid {
column-count: 2;
}
}