Files
Investidor-V2/resources/css/tempo-header.css
T
2026-11-23 11:07:22 +02:00

362 lines
8.5 KiB
CSS

/* Presentation choice for Tempo's 21/10/2026 request: one shared navigation. */
.tempo-header {
position: sticky;
top: 0;
z-index: 40;
background: rgba(9, 9, 9, 0.52);
color: #fff;
border-bottom: 1px solid transparent;
-webkit-backdrop-filter: saturate(140%) blur(14px);
backdrop-filter: saturate(140%) blur(14px);
box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
transition:
background-color 0.28s ease,
border-color 0.28s ease,
box-shadow 0.28s ease,
backdrop-filter 0.28s ease;
}
.tempo-header[data-scrolled],
.tempo-header[data-expanded] {
background: rgba(9, 9, 9, 0.88);
border-bottom-color: rgba(255, 255, 255, 0.08);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.tempo-header-inner {
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
grid-template-rows: 56px;
align-items: center;
column-gap: 0.5rem;
max-width: 1600px;
margin-inline: auto;
padding-inline: 0.75rem;
transition: grid-template-rows 0.28s ease;
}
.tempo-logo-link {
grid-area: 1 / 1;
display: inline-flex;
align-items: center;
width: 104px;
max-width: 100%;
border-radius: 0.25rem;
transition: opacity 0.2s ease;
}
.tempo-logo-link:hover {
opacity: 0.92;
}
.tempo-header-logo {
width: 100%;
height: auto;
object-fit: contain;
}
.tempo-primary-navigation {
display: none;
grid-area: 2 / 1 / auto / -1;
min-width: 0;
border-top: 1px solid #ffffff1a;
padding-block: 0.75rem;
}
.tempo-primary-navigation > ul {
display: grid;
gap: 0.25rem;
}
.tempo-nav-trigger {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.35rem;
width: 100%;
min-height: 40px;
padding: 0.375rem 0.625rem;
border-radius: 0.5rem;
color: #e2e8f0;
font-size: 0.9375rem;
line-height: 1.4;
font-weight: 600;
white-space: nowrap;
transition:
color 0.2s ease,
background-color 0.2s ease,
box-shadow 0.2s ease;
}
.tempo-nav-trigger:hover,
.tempo-nav-trigger[data-state='open'] {
background: rgba(255, 255, 255, 0.08);
color: #fff;
}
.tempo-nav-trigger[data-current-group] {
color: #fff;
background: rgba(255, 255, 255, 0.05);
box-shadow: inset 0 -2px #ed1c24;
}
.tempo-nav-trigger > svg {
flex-shrink: 0;
transition: transform 0.2s;
}
.tempo-nav-trigger[data-state='open'] > svg {
transform: rotate(180deg);
}
.tempo-header-extras {
display: none;
grid-area: 3 / 1 / auto / -1;
min-width: 0;
padding-block: 0.75rem;
border-top: 1px solid #ffffff1a;
}
.tempo-header-utilities {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}
.tempo-utility-button {
display: flex;
align-items: center;
gap: 0.4rem;
min-height: 40px;
padding: 0.35rem 0.4rem;
border-radius: 0.5rem;
color: #e2e8f0;
font-size: 0.8125rem;
transition:
background-color 0.2s ease,
color 0.2s ease;
}
.tempo-utility-button:hover {
background: rgba(255, 255, 255, 0.08);
color: #fff;
}
.tempo-header-actions {
grid-area: 1 / 2;
display: flex;
align-items: center;
gap: 0.5rem;
min-width: 0;
}
.tempo-login-button {
display: inline-flex;
align-items: center;
gap: 0.45rem;
min-height: 40px;
padding: 0.4rem 0.625rem;
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 0.5rem;
color: #fff;
font-size: 0.8125rem;
font-weight: 600;
white-space: nowrap;
transition:
background-color 0.2s ease,
border-color 0.2s ease,
color 0.2s ease;
}
.tempo-login-button:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.4);
}
.tempo-login-button > span {
max-width: clamp(2rem, calc(100vw - 18rem), 6rem);
}
.tempo-panel-summary {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
flex-shrink: 0;
border-radius: 0.5rem;
color: #e2e8f0;
transition:
background-color 0.2s ease,
color 0.2s ease;
}
.tempo-panel-summary:hover {
background: rgba(255, 255, 255, 0.08);
color: #fff;
}
.tempo-panel-count {
position: absolute;
top: 0;
right: -0.125rem;
min-width: 17px;
padding-inline: 0.2rem;
border: 2px solid #090909;
border-radius: 999px;
background: #ed1c24;
color: #fff;
font-size: 0.5625rem;
line-height: 1.4;
text-align: center;
}
.tempo-interest-button {
display: none;
grid-area: 4 / 1 / auto / -1;
align-items: center;
justify-content: center;
gap: 0.45rem;
min-height: 40px;
margin-bottom: 0.875rem;
padding: 0.45rem 0.8rem;
border: 1px solid #ed1c24;
border-radius: 0.5rem;
background: #ed1c24;
color: #fff;
font-size: 0.8125rem;
font-weight: 600;
white-space: nowrap;
transition:
background-color 0.2s ease,
border-color 0.2s ease,
transform 0.2s ease;
}
.tempo-interest-button:hover {
background: #c9151c;
border-color: #c9151c;
}
.tempo-header-toggle {
grid-area: 1 / 3;
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 0.5rem;
color: #fff;
cursor: pointer;
transition:
background-color 0.2s ease,
border-color 0.2s ease;
}
.tempo-header-toggle:hover,
.tempo-header-toggle[aria-expanded='true'] {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.32);
}
.tempo-header[data-expanded] .tempo-primary-navigation {
display: block;
}
.tempo-header[data-expanded] .tempo-header-extras {
display: flex;
}
.tempo-header[data-expanded] .tempo-interest-button {
display: inline-flex;
}
.tempo-header :is(a, button):focus-visible {
outline: 2px solid #fff;
outline-offset: 3px;
}
.tempo-submenu {
max-width: min(
calc(100vw - 1.5rem),
var(--radix-dropdown-menu-content-available-width)
);
}
@media (min-width: 640px) {
.tempo-header-inner {
grid-template-columns: minmax(0, 1fr) auto auto auto;
column-gap: 0.625rem;
padding-inline: 1.25rem;
}
.tempo-logo-link {
width: 116px;
}
.tempo-interest-button {
display: inline-flex;
grid-area: 1 / 3;
margin-bottom: 0;
}
.tempo-header-toggle {
grid-area: 1 / 4;
}
}
@media (min-width: 1280px) {
.tempo-header-inner {
grid-template-rows: minmax(56px, auto);
grid-template-columns: auto minmax(0, 1fr) auto auto auto;
column-gap: 0.375rem;
padding-inline: 1.25rem;
}
.tempo-logo-link {
width: 96px;
}
.tempo-login-button > span {
max-width: 3rem;
}
.tempo-primary-navigation,
.tempo-header[data-expanded] .tempo-primary-navigation {
display: block;
grid-area: 1 / 2;
border: 0;
padding: 0;
justify-self: center;
}
.tempo-primary-navigation > ul {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.125rem;
}
.tempo-nav-trigger {
justify-content: center;
min-height: 38px;
padding: 0.375rem 0.5rem;
font-size: 0.9375rem;
letter-spacing: 0.01em;
}
.tempo-header-extras,
.tempo-header[data-expanded] .tempo-header-extras {
display: flex;
grid-area: 1 / 3;
padding: 0 0.5rem 0 0;
border: 0;
border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.tempo-header-utilities {
flex-wrap: nowrap;
}
.tempo-header-actions {
grid-area: 1 / 4;
}
.tempo-interest-button {
grid-area: 1 / 5;
}
.tempo-header-toggle {
display: none;
}
}
@media (min-width: 1440px) {
.tempo-header-inner {
column-gap: 0.625rem;
padding-inline: 1.75rem;
}
.tempo-nav-trigger {
padding-inline: 0.625rem;
font-size: 1rem;
}
.tempo-logo-link {
width: 112px;
}
.tempo-login-button > span {
max-width: 5rem;
}
.tempo-header-extras {
padding-right: 0.625rem;
}
.tempo-primary-navigation > ul {
gap: 0.125rem;
}
}
@media (min-width: 1536px) {
.tempo-header-inner {
column-gap: 0.875rem;
}
.tempo-nav-trigger {
padding-inline: 0.75rem;
}
.tempo-login-button > span {
max-width: 6rem;
}
}