feat: implement mobile reader header and navigation components with updated icon support
This commit is contained in:
@@ -479,7 +479,7 @@ main {
|
||||
|
||||
.platform-mobile .reader-pane {
|
||||
width: 100vw !important;
|
||||
height: calc(100vh - 60px) !important; /* reserve bottom nav height */
|
||||
height: 100vh !important; /* full viewport height */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@@ -496,7 +496,7 @@ main {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.app-container.platform-mobile.active-mobile-tab-insight .nexus-mobile-reader-tabs .insight-tab {
|
||||
.app-container.platform-mobile.active-mobile-tab-concepts .nexus-mobile-reader-tabs .insight-tab {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@@ -508,7 +508,7 @@ main {
|
||||
.platform-mobile .nexus-mobile-reader-tabs {
|
||||
display: none; /* Keep hidden by default */
|
||||
width: 100vw;
|
||||
height: calc(100vh - 60px);
|
||||
height: 100vh; /* full viewport height */
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
@@ -518,8 +518,8 @@ main {
|
||||
}
|
||||
|
||||
.app-container.platform-mobile.active-mobile-tab-graph .nexus-mobile-reader-tabs,
|
||||
.app-container.platform-mobile.active-mobile-tab-insight .nexus-mobile-reader-tabs {
|
||||
display: block; /* Show only when graph or insight tabs are active */
|
||||
.app-container.platform-mobile.active-mobile-tab-concepts .nexus-mobile-reader-tabs {
|
||||
display: block; /* Show only when graph or concepts tabs are active */
|
||||
}
|
||||
|
||||
.nexus-mobile-tab-content {
|
||||
@@ -553,7 +553,17 @@ main {
|
||||
background: #09090b;
|
||||
}
|
||||
|
||||
.nexus-mobile-tab-content.graph-tab :deep(svg) {
|
||||
.nexus-mobile-tab-content.graph-tab ::deep .knowledge-graph-container {
|
||||
height: 100% !important;
|
||||
min-height: 100% !important;
|
||||
}
|
||||
|
||||
.nexus-mobile-tab-content.graph-tab ::deep .graph-controls {
|
||||
bottom: 6.5rem !important;
|
||||
right: 1.5rem !important;
|
||||
}
|
||||
|
||||
.nexus-mobile-tab-content.graph-tab ::deep svg {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
@@ -637,121 +647,4 @@ main {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
/* Three-Tab Bottom Navigation Bar styling */
|
||||
.nexus-mobile-bottom-nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.platform-mobile .nexus-mobile-bottom-nav {
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 60px;
|
||||
background: rgba(13, 13, 13, 0.95);
|
||||
backdrop-filter: blur(16px);
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.05);
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.bottom-nav-item {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.25rem;
|
||||
height: 100%;
|
||||
background: none;
|
||||
border: none;
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
font-family: var(--nexus-font-sans, "Outfit", sans-serif);
|
||||
font-size: 0.65rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.bottom-nav-item.active {
|
||||
color: var(--nexus-neon, #00f0ff);
|
||||
text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
|
||||
}
|
||||
|
||||
.bottom-nav-item.active :deep(svg) {
|
||||
filter: drop-shadow(0 0 5px var(--nexus-neon, #00f0ff));
|
||||
}
|
||||
|
||||
.insight-icon-wrapper {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.nav-quiz-indicator {
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
right: -2px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
background-color: #f43f5e;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 8px #f43f5e;
|
||||
animation: indicator-flash 1.5s infinite ease-in-out;
|
||||
}
|
||||
|
||||
@keyframes indicator-flash {
|
||||
0% { transform: scale(0.8); opacity: 0.6; }
|
||||
50% { transform: scale(1.2); opacity: 1; }
|
||||
100% { transform: scale(0.8); opacity: 0.6; }
|
||||
}
|
||||
|
||||
/* Assistant FAB styling inside ReaderCanvas */
|
||||
:global(.nexus-mobile-assistant-fab) {
|
||||
position: fixed;
|
||||
bottom: 75px;
|
||||
right: 20px;
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 50%;
|
||||
background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(0, 100, 255, 0.15) 100%);
|
||||
border: 1px solid rgba(0, 240, 255, 0.4);
|
||||
box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
z-index: 99;
|
||||
backdrop-filter: blur(8px);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
:global(.nexus-mobile-assistant-fab:hover) {
|
||||
transform: scale(1.1) translateY(-2px);
|
||||
box-shadow: 0 8px 25px rgba(0, 240, 255, 0.4);
|
||||
border-color: var(--nexus-neon, #00f0ff);
|
||||
}
|
||||
|
||||
:global(.nexus-mobile-assistant-fab:active) {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
:global(.nexus-mobile-assistant-fab.has-new-quiz) {
|
||||
border-color: #f43f5e;
|
||||
box-shadow: 0 4px 20px rgba(244, 63, 94, 0.3);
|
||||
}
|
||||
|
||||
:global(.nexus-mobile-assistant-fab .fab-badge) {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
background-color: #f43f5e;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 10px #f43f5e;
|
||||
animation: indicator-flash 1.5s infinite ease-in-out;
|
||||
}
|
||||
/* Obsolescence managed: consolidated mobile toolbar and sheet styled inside respective components */
|
||||
Reference in New Issue
Block a user