370 lines
6.8 KiB
CSS
370 lines
6.8 KiB
CSS
/**
|
|
* DBIS Dashboard — mobile-first hub styling
|
|
*/
|
|
|
|
.dbis-dashboard {
|
|
background:
|
|
radial-gradient(ellipse 120% 80% at 50% -20%, rgba(34, 197, 94, 0.12), transparent 55%),
|
|
var(--nasa-bg, #141a16);
|
|
}
|
|
|
|
.dbis-dashboard__inner {
|
|
width: 100%;
|
|
max-width: 56rem;
|
|
margin: 0 auto;
|
|
padding: 1rem 0.75rem 5.5rem;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.dbis-dashboard__inner {
|
|
padding: 1.5rem 1rem 2rem;
|
|
}
|
|
}
|
|
|
|
.dbis-dashboard__hero {
|
|
text-align: center;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.dbis-dashboard__hero {
|
|
margin-bottom: 2rem;
|
|
}
|
|
}
|
|
|
|
.dbis-dashboard__logo {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 4rem;
|
|
height: 4rem;
|
|
border-radius: 1rem;
|
|
background: linear-gradient(145deg, #16a34a, #065f46);
|
|
color: #fff;
|
|
border: 1px solid rgba(74, 222, 128, 0.35);
|
|
box-shadow: 0 8px 32px rgba(22, 163, 74, 0.35);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.dbis-dashboard__logo {
|
|
width: 4.5rem;
|
|
height: 4.5rem;
|
|
border-radius: 1.125rem;
|
|
}
|
|
}
|
|
|
|
.dbis-dashboard__eyebrow {
|
|
font-size: 0.65rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.14em;
|
|
text-transform: uppercase;
|
|
color: #22c55e;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.dbis-dashboard__title {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
letter-spacing: -0.03em;
|
|
color: var(--nasa-text, #eaecef);
|
|
line-height: 1.15;
|
|
}
|
|
|
|
@media (min-width: 640px) {
|
|
.dbis-dashboard__title {
|
|
font-size: 2.25rem;
|
|
}
|
|
}
|
|
|
|
.dbis-dashboard__subtitle {
|
|
margin-top: 0.5rem;
|
|
font-size: 0.875rem;
|
|
color: var(--nasa-muted, #848e9c);
|
|
max-width: 28rem;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.dbis-status-pills {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.dbis-status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
padding: 0.35rem 0.65rem;
|
|
border-radius: 999px;
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
border: 1px solid rgba(34, 197, 94, 0.25);
|
|
background: rgba(34, 197, 94, 0.08);
|
|
color: #4ade80;
|
|
}
|
|
|
|
/* Featured horizontal strip */
|
|
.dbis-featured {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.dbis-featured__label {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--nasa-muted);
|
|
margin-bottom: 0.65rem;
|
|
padding-left: 0.15rem;
|
|
}
|
|
|
|
.dbis-featured__scroll {
|
|
display: flex;
|
|
gap: 0.65rem;
|
|
overflow-x: auto;
|
|
padding-bottom: 0.35rem;
|
|
-webkit-overflow-scrolling: touch;
|
|
scroll-snap-type: x mandatory;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.dbis-featured__scroll::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.dbis-featured__item {
|
|
flex: 0 0 auto;
|
|
scroll-snap-align: start;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-width: 5.25rem;
|
|
max-width: 5.5rem;
|
|
padding: 0.75rem 0.5rem;
|
|
border-radius: 1rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
background: var(--nasa-panel);
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: border-color 0.2s, transform 0.2s, background 0.2s;
|
|
min-height: 5.5rem;
|
|
}
|
|
|
|
.dbis-featured__item:active {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
.dbis-featured__item:hover {
|
|
border-color: rgba(34, 197, 94, 0.4);
|
|
background: var(--nasa-panel-elevated);
|
|
}
|
|
|
|
.dbis-featured__icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2.75rem;
|
|
height: 2.75rem;
|
|
border-radius: 0.875rem;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.dbis-featured__name {
|
|
font-size: 0.65rem;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
line-height: 1.2;
|
|
color: var(--nasa-text);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.dbis-featured__scroll {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
overflow: visible;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.dbis-featured__item {
|
|
min-width: 0;
|
|
max-width: none;
|
|
}
|
|
}
|
|
|
|
/* Collapsible sections on mobile */
|
|
.dbis-section-fold {
|
|
margin-bottom: 0.75rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 0.875rem;
|
|
background: rgba(30, 35, 41, 0.5);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dbis-section-fold__summary {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
padding: 0.875rem 1rem;
|
|
cursor: pointer;
|
|
list-style: none;
|
|
min-height: 3rem;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
color: var(--nasa-text);
|
|
user-select: none;
|
|
}
|
|
|
|
.dbis-section-fold__summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.dbis-section-fold__chevron {
|
|
margin-left: auto;
|
|
color: var(--nasa-muted);
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.dbis-section-fold[open] .dbis-section-fold__chevron {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.dbis-section-fold__body {
|
|
padding: 0 0.75rem 0.875rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.dbis-section-fold {
|
|
border: none;
|
|
background: transparent;
|
|
border-radius: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.dbis-section-fold__summary {
|
|
display: none;
|
|
}
|
|
|
|
.dbis-section-fold__body {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
/* Link cards */
|
|
.hub-link-card {
|
|
min-height: 8.5rem;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
@media (max-width: 639px) {
|
|
.hub-link-card {
|
|
min-height: 7.5rem;
|
|
padding: 0.875rem;
|
|
}
|
|
|
|
.hub-link-card__icon {
|
|
width: 3rem !important;
|
|
height: 3rem !important;
|
|
border-radius: 0.75rem !important;
|
|
}
|
|
}
|
|
|
|
.hub-link-card--list {
|
|
flex-direction: row !important;
|
|
align-items: center !important;
|
|
text-align: left !important;
|
|
min-height: 3.75rem !important;
|
|
padding: 0.75rem 1rem !important;
|
|
gap: 0.75rem !important;
|
|
}
|
|
|
|
.hub-link-card--list .hub-link-card__icon {
|
|
width: 2.5rem !important;
|
|
height: 2.5rem !important;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.hub-link-card--list .hub-link-card__text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.hub-link-card--list .hub-link-card__open {
|
|
display: none;
|
|
}
|
|
|
|
.hub-link-card--list h3 {
|
|
text-align: left;
|
|
}
|
|
|
|
.hub-link-card--list p {
|
|
text-align: left;
|
|
margin-top: 0.15rem !important;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Mobile bottom nav */
|
|
.dbis-bottom-nav {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 60;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: stretch;
|
|
min-height: 3.5rem;
|
|
padding-bottom: env(safe-area-inset-bottom, 0);
|
|
background: rgba(26, 36, 28, 0.96);
|
|
border-top: 1px solid rgba(74, 222, 128, 0.3);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.dbis-bottom-nav {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.dbis-bottom-nav__item {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.15rem;
|
|
padding: 0.4rem 0.25rem;
|
|
min-height: 3.5rem;
|
|
font-size: 0.6rem;
|
|
font-weight: 500;
|
|
color: #c7d0c9;
|
|
text-decoration: none;
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.dbis-bottom-nav__item--active {
|
|
color: #bbf7d0;
|
|
}
|
|
|
|
.dbis-bottom-nav__item:active {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.dbis-has-bottom-nav {
|
|
padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0));
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.dbis-has-bottom-nav {
|
|
padding-bottom: 0;
|
|
}
|
|
}
|