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.
239 lines
4.6 KiB
239 lines
4.6 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-light); |
|
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-mid); |
|
} |
|
|
|
.highlight-date { |
|
font-size: 0.85rem; |
|
color: var(--color-text-mid); |
|
} |
|
|
|
.highlight-content { |
|
font-size: 1.1rem; |
|
line-height: 1.3; |
|
color: var(--color-text); |
|
} |
|
|
|
.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; |
|
} |
|
|
|
.highlight-footer .article-preview { |
|
margin-top: 0.5rem; |
|
} |
|
|
|
.article-reference { |
|
display: flex; |
|
align-items: center; |
|
gap: 0.5rem; |
|
font-size: 0.9rem; |
|
color: var(--color-accent-strong); |
|
text-decoration: none; |
|
transition: color 0.2s; |
|
} |
|
|
|
.article-reference:hover { |
|
color: var(--color-primary); |
|
text-decoration: underline; |
|
} |
|
|
|
.no-highlights { |
|
text-align: center; |
|
padding: 4rem 2rem; |
|
color: var(--color-text-mid); |
|
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-light); |
|
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: var(--color-accent-300); |
|
border-bottom-color: var(--color-accent-300); |
|
} |
|
|
|
.article-highlight.visible:hover { |
|
background: var(--color-accent-300); |
|
border-bottom-color: var(--color-accent); |
|
} |
|
|
|
/* Toggle button active state */ |
|
.btn[aria-pressed="true"] { |
|
background-color: var(--color-accent-300); |
|
border-color: var(--color-accent-300); |
|
} |
|
|
|
.btn[aria-pressed="true"]:hover { |
|
color: var(--color-text); |
|
background-color: var(--color-accent-400); |
|
} |
|
|
|
/* Sidebar highlights - compact cards */ |
|
.highlights-sidebar { |
|
display: flex; |
|
flex-direction: column; |
|
gap: 1rem; |
|
} |
|
|
|
.highlight-card-compact { |
|
background: var(--color-bg-light); |
|
padding: var(--spacing-2); |
|
transition: transform 0.2s, box-shadow 0.2s; |
|
} |
|
|
|
.highlight-card-compact:hover { |
|
transform: translateY(-2px); |
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
|
} |
|
|
|
.highlight-header-compact { |
|
display: flex; |
|
justify-content: space-between; |
|
align-items: center; |
|
margin-bottom: 0.75rem; |
|
font-size: 0.85rem; |
|
gap: 0.5rem; |
|
} |
|
|
|
.highlight-content-compact { |
|
font-size: 0.95rem; |
|
line-height: 1.4; |
|
color: var(--color-text); |
|
word-wrap: break-word; |
|
} |
|
|
|
.highlight-mark-compact { |
|
background: var(--color-accent-300); |
|
padding: 0.1em 0.2em; |
|
font-weight: 500; |
|
border-radius: 2px; |
|
} |
|
|
|
.context-text-compact { |
|
margin-bottom: 0.5rem; |
|
font-style: normal; |
|
color: var(--color-text-mid); |
|
} |
|
|
|
.sidebar-section { |
|
margin-bottom: 2rem; |
|
} |
|
|
|
.sidebar-heading { |
|
font-size: 1.1rem; |
|
font-weight: 600; |
|
margin-bottom: 1rem; |
|
} |
|
|
|
/* Mobile highlights - hidden by default, shown when sidebar is not visible */ |
|
.highlights-mobile-section { |
|
display: none; |
|
margin-top: 3rem; |
|
padding-top: 2rem; |
|
border-top: 2px solid var(--color-border); |
|
} |
|
|
|
.highlights-mobile-heading { |
|
font-size: 1.3rem; |
|
font-weight: 600; |
|
margin-bottom: 1.5rem; |
|
color: var(--color-text); |
|
} |
|
|
|
.highlights-mobile-grid { |
|
display: grid; |
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); |
|
gap: 1.5rem; |
|
} |
|
|
|
/* Show mobile highlights when sidebar is hidden (1200px and below) */ |
|
@media (max-width: 1200px) { |
|
.highlights-mobile-section { |
|
display: block; |
|
} |
|
} |
|
|
|
@media (max-width: 768px) { |
|
.highlights-grid { |
|
column-count: 1; |
|
} |
|
|
|
.highlight-card { |
|
margin-bottom: 1.5rem; |
|
} |
|
|
|
.highlights-mobile-grid { |
|
grid-template-columns: 1fr; |
|
} |
|
} |
|
|
|
@media (min-width: 769px) and (max-width: 1400px) { |
|
.highlights-grid { |
|
column-count: 2; |
|
} |
|
}
|
|
|