mirror of
https://github.com/dergigi/boris.git
synced 2026-01-08 01:14:37 +01:00
- Use actual highlight visual treatment (marker style) on tab - Text remains in semantic color (--color-text) for readability - Background uses 35% highlight color blend with glow effect - Hover state intensifies to 50% for better interaction feedback - Creates consistent visual language between tabs and content highlights
163 lines
3.6 KiB
CSS
163 lines
3.6 KiB
CSS
/* Me page tabs */
|
|
.me-tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-top: 1rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
overflow-x: auto;
|
|
max-width: 600px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
|
|
.me-tab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.75rem 1.25rem;
|
|
background: none;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.me-tab:hover {
|
|
color: var(--color-text);
|
|
background: var(--color-bg-elevated);
|
|
}
|
|
|
|
.me-tab.active {
|
|
color: var(--color-primary);
|
|
border-bottom-color: var(--color-primary);
|
|
}
|
|
|
|
/* Highlights tab uses the actual highlight style when active */
|
|
.me-tab[data-tab="highlights"].active {
|
|
color: var(--color-text);
|
|
border-bottom-color: var(--highlight-color-mine, rgb(253 224 71)); /* yellow-300 */
|
|
background: color-mix(in srgb, var(--highlight-color-mine, rgb(253 224 71)) 35%, transparent);
|
|
box-shadow: 0 0 8px color-mix(in srgb, var(--highlight-color-mine, rgb(253 224 71)) 20%, transparent);
|
|
}
|
|
|
|
.me-tab[data-tab="highlights"].active:hover {
|
|
background: color-mix(in srgb, var(--highlight-color-mine, rgb(253 224 71)) 50%, transparent);
|
|
box-shadow: 0 0 12px color-mix(in srgb, var(--highlight-color-mine, rgb(253 224 71)) 30%, transparent);
|
|
}
|
|
|
|
/* Reading List tab uses blue color to match bookmarks icon */
|
|
.me-tab[data-tab="reading-list"].active {
|
|
color: var(--color-primary);
|
|
border-bottom-color: var(--color-primary);
|
|
}
|
|
|
|
.me-tab svg {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.me-tab-content {
|
|
padding: 1.5rem 0;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Align highlight list width with profile card width on /me */
|
|
.me-highlights-list { padding-left: 0; padding-right: 0; }
|
|
.explore-header .author-card { max-width: 600px; margin: 0 auto; width: 100%; }
|
|
|
|
/* Bookmarks list */
|
|
.bookmarks-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
text-align: left; /* Override center alignment from .app */
|
|
}
|
|
|
|
/* Ensure all reading list elements are left-aligned */
|
|
.bookmarks-list .individual-bookmark,
|
|
.bookmarks-list .individual-bookmark * {
|
|
text-align: left;
|
|
}
|
|
|
|
/* Enhanced border styling for reading list cards */
|
|
.bookmarks-list .individual-bookmark {
|
|
border: 1px solid var(--color-border-subtle) !important;
|
|
background: var(--color-bg) !important;
|
|
}
|
|
|
|
.bookmarks-list .individual-bookmark:hover {
|
|
border-color: var(--color-border) !important;
|
|
background: var(--color-bg-elevated) !important;
|
|
}
|
|
|
|
.bookmark-item {
|
|
padding: 1rem;
|
|
background: var(--color-bg);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 8px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.bookmark-item:hover {
|
|
border-color: var(--color-primary);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.bookmark-item a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
.bookmark-item h3 {
|
|
margin: 0 0 0.5rem 0;
|
|
font-size: 1.1rem;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.bookmark-item p {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
/* Mobile responsiveness */
|
|
@media (max-width: 768px) {
|
|
/* Add top breathing room so floating sidebar buttons don't overlap header */
|
|
.explore-container .explore-header {
|
|
margin-top: 3.5rem;
|
|
}
|
|
|
|
.me-tabs {
|
|
gap: 0.25rem;
|
|
padding: 0 0.5rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.me-tab {
|
|
padding: 0.5rem 0.7rem;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.me-tab svg {
|
|
font-size: 0.9rem;
|
|
margin-right: 0.25rem;
|
|
}
|
|
|
|
/* Hide counts on mobile to save space */
|
|
.me-tab .tab-count {
|
|
display: none;
|
|
}
|
|
|
|
.me-tab-content {
|
|
padding: 1.25rem 0.75rem;
|
|
}
|
|
}
|
|
|