ajuste no header e organizaco de elementos, e ajuste no footer
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-20 11:39:25 +02:00
parent a128c5a1b8
commit 97a08df2a0
33 changed files with 2272 additions and 166 deletions
+254 -68
View File
@@ -14,20 +14,59 @@
background: #090909;
color: #fff;
}
.tempo-logo-link {
display: inline-flex;
.tempo-header-inner {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) auto auto;
grid-template-rows: 72px;
column-gap: 0.5rem;
align-items: center;
max-width: 1440px;
margin-inline: auto;
padding-inline: 0.75rem;
}
.tempo-logo-link {
grid-area: 1 / 1;
display: inline-flex;
width: fit-content;
align-items: center;
flex-shrink: 0;
border-radius: 0.25rem;
}
.tempo-header-logo {
width: auto;
height: 36px;
object-fit: contain;
}
.tempo-primary-navigation {
display: none;
grid-area: 2 / 1 / auto / -1;
min-width: 0;
border-top: 1px solid #ffffff1a;
}
.tempo-primary-navigation > ul {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.25rem 0.5rem;
padding-block: 0.75rem;
}
.tempo-primary-navigation .tempo-nav-trigger {
font-size: 0.9375rem;
padding-inline: 0.5rem;
}
.tempo-nav-trigger {
display: flex;
width: 100%;
min-height: 44px;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 0.75rem;
border-radius: 0.5rem;
font-size: 0.875rem;
justify-content: space-between;
gap: 0.4rem;
padding: 0.5rem 0.75rem;
border-radius: 0.4rem;
font-size: 1rem;
line-height: 1.5;
font-weight: 600;
white-space: nowrap;
color: #eee;
transition:
color 0.2s,
@@ -45,16 +84,85 @@
.tempo-nav-trigger[data-state='open'] > svg {
transform: rotate(180deg);
}
@media (max-width: 640px) {
.tempo-nav-trigger {
gap: 0.25rem;
padding-inline: 0.25rem;
font-size: 0.75rem;
.tempo-primary-navigation .tempo-nav-trigger > svg {
transform: none;
flex-shrink: 0;
}
.tempo-section-bar {
border-top: 1px solid #ffffff14;
background: inherit;
}
.tempo-section-inner {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 0.25rem 0.75rem;
max-width: 1440px;
margin-inline: auto;
padding: 0 0.75rem 0.5rem;
}
.tempo-section-navigation {
grid-area: 1 / 1 / auto / -1;
min-width: 0;
}
.tempo-section-navigation > ul {
display: flex;
justify-content: center;
gap: 0.25rem;
}
.tempo-section-navigation .tempo-nav-trigger {
justify-content: center;
min-height: 44px;
gap: 0.25rem;
padding: 0.5rem 0.375rem;
border-radius: 0;
font-size: 0.8125rem;
letter-spacing: normal;
}
@media (min-width: 640px) {
.tempo-section-navigation .tempo-nav-trigger {
min-height: 48px;
gap: 0.5rem;
padding-inline: 0.75rem;
font-size: 1rem;
}
.tempo-nav-trigger > svg {
width: 12px;
height: 12px;
}
@media (min-width: 768px) {
.tempo-section-inner {
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
padding: 0.25rem 1.25rem;
}
.tempo-section-navigation {
grid-area: 1 / 2;
}
.tempo-section-inner .tempo-panel-summary {
grid-area: 1 / 1;
}
.tempo-section-inner .tempo-interest-button {
grid-area: 1 / 3;
}
}
.tempo-header-extras {
display: none;
grid-area: 3 / 1 / auto / -1;
flex-direction: column;
gap: 0.75rem;
min-width: 0;
padding-block: 0.75rem;
border-top: 1px solid #ffffff1a;
}
.tempo-header[data-expanded] .tempo-primary-navigation {
display: block;
}
.tempo-header[data-expanded] .tempo-header-extras {
display: flex;
}
.tempo-header-utilities {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
}
.tempo-utility-button {
display: flex;
@@ -63,7 +171,7 @@
gap: 0.4rem;
padding: 0.4rem;
border-radius: 0.5rem;
font-size: 0.75rem;
font-size: 0.8125rem;
color: #e2e8f0;
}
.tempo-utility-button:hover {
@@ -85,11 +193,6 @@
transform: translateY(-2px);
opacity: 0.8;
}
@media (max-width: 360px) {
.tempo-header-social {
width: 26px;
}
}
.tempo-login-button {
display: inline-flex;
min-height: 40px;
@@ -97,9 +200,10 @@
gap: 0.5rem;
border: 1px solid #ffffff50;
border-radius: 0.4rem;
padding: 0.5rem 0.85rem;
font-size: 0.8rem;
padding: 0.5rem 0.75rem;
font-size: 0.875rem;
font-weight: 600;
white-space: nowrap;
color: #fff;
transition:
background 0.2s,
@@ -109,19 +213,23 @@
background: #ed1c24;
border-color: #ed1c24;
}
.tempo-login-button > span {
max-width: clamp(2rem, calc(100vw - 18rem), 6rem);
}
.tempo-header-actions {
order: 2;
grid-area: 1 / 2;
display: flex;
min-width: 0;
align-items: center;
gap: 0.5rem;
margin-left: auto;
}
.tempo-interest-button {
display: inline-flex;
grid-area: 2 / 2;
justify-self: end;
align-items: center;
justify-content: center;
min-height: 40px;
padding: 0.5rem 0.75rem;
padding: 0.5rem 0.65rem;
border: 1px solid #ed1c24;
border-radius: 0.4rem;
background: #ed1c24;
@@ -135,56 +243,119 @@
background: #c9151c;
}
.tempo-panel-summary {
order: 4;
grid-area: 2 / 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
width: 100%;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 0.1rem;
min-height: 44px;
padding-block: 0.5rem;
border-top: 1px solid #ffffff1a;
font-size: 0.75rem;
}
.tempo-panel-summary a {
font-size: 0.8125rem;
line-height: 1.4;
color: #fff;
text-underline-offset: 3px;
}
.tempo-panel-summary a:hover {
.tempo-panel-summary:hover {
text-decoration: underline;
}
.tempo-panel-summary span {
.tempo-panel-count {
color: #cbd5e1;
font-size: 0.6875rem;
white-space: nowrap;
}
@media (max-width: 480px) {
.tempo-header-actions {
flex-direction: column;
align-items: flex-end;
padding-block: 0.65rem;
.tempo-header-toggle {
grid-area: 1 / 3;
display: inline-flex;
width: 44px;
height: 44px;
flex-shrink: 0;
align-items: center;
justify-content: center;
border: 1px solid #ffffff33;
border-radius: 0.4rem;
color: #fff;
cursor: pointer;
}
.tempo-header-toggle:hover,
.tempo-header-toggle[aria-expanded='true'] {
background: #ffffff10;
}
@media (min-width: 640px) {
.tempo-header-inner {
padding-inline: 1.25rem;
}
.tempo-header-logo {
height: 44px;
}
.tempo-primary-navigation > ul {
display: flex;
justify-content: space-between;
}
}
@media (min-width: 1024px) {
.tempo-header-inner {
grid-template-rows: 88px;
padding-inline: 1.5rem;
}
.tempo-header-logo {
height: 56px;
}
}
@media (min-width: 1280px) {
.tempo-header-actions {
order: 6;
margin-left: 0;
.tempo-header-inner {
display: flex;
min-height: 88px;
gap: 0.75rem;
padding-inline: 2rem;
}
.tempo-header-inner .tempo-nav-trigger {
padding-inline: 0.5rem;
font-size: 0.8125rem;
.tempo-header-logo {
height: 64px;
}
.tempo-panel-summary {
order: 0;
flex-direction: column;
align-items: flex-start;
.tempo-primary-navigation {
display: block;
flex: 1;
border: 0;
}
.tempo-primary-navigation > ul {
justify-content: center;
gap: 0.1rem;
width: auto;
min-width: 102px;
gap: 0.25rem;
padding: 0;
}
.tempo-nav-trigger {
justify-content: center;
padding-inline: 0.875rem;
font-size: 1.125rem;
letter-spacing: 0.025em;
}
.tempo-primary-navigation .tempo-nav-trigger {
padding-inline: 0.625rem;
font-size: 1.125rem;
}
.tempo-header-extras {
display: flex;
flex-shrink: 0;
padding: 0 0.75rem;
border-top: 0;
border-left: 1px solid #ffffff1a;
padding-left: 0.75rem;
border-inline: 1px solid #ffffff1a;
}
.tempo-header-utilities {
flex-wrap: nowrap;
gap: 0.5rem;
}
.tempo-header-social {
width: 26px;
}
.tempo-header-toggle {
display: none;
}
.tempo-section-inner {
padding-inline: 2rem;
}
.tempo-section-navigation .tempo-nav-trigger {
padding-inline: 1.25rem;
}
.tempo-interest-button {
padding-inline: 0.85rem;
font-size: 0.8125rem;
}
}
.tempo-header :is(a, button):focus-visible {
@@ -223,18 +394,18 @@
color: #fff;
}
.tempo-footer-heading {
margin-bottom: 1.4rem;
font-size: 0.75rem;
font-size: 0.875rem;
line-height: 1.25rem;
font-weight: 600;
letter-spacing: 0.15em;
letter-spacing: 0.2em;
text-transform: uppercase;
}
.tempo-footer-link {
display: inline-flex;
align-items: baseline;
gap: 0.35rem;
font-size: 0.8125rem;
line-height: 1.5;
font-size: 0.875rem;
line-height: 1.25rem;
color: #e2e8f0;
transition:
color 0.2s,
@@ -252,7 +423,7 @@
.tempo-contact-link {
display: flex;
align-items: center;
gap: 0.7rem;
gap: 1rem;
transition: color 0.2s;
}
.tempo-contact-link:hover {
@@ -260,8 +431,8 @@
}
.tempo-contact-icon {
display: flex;
width: 36px;
height: 36px;
width: 40px;
height: 40px;
flex-shrink: 0;
align-items: center;
justify-content: center;
@@ -271,7 +442,7 @@
}
.tempo-footer-social {
display: flex;
width: 40px;
width: 44px;
height: 44px;
align-items: center;
justify-content: center;
@@ -283,6 +454,14 @@
border-color 0.2s,
transform 0.2s;
}
.tempo-footer [aria-label='Redes sociais da Revista Tempo'] {
gap: 0.75rem;
}
.tempo-footer-social > svg {
width: 20px;
height: 20px;
flex-shrink: 0;
}
.tempo-footer-social:hover {
color: var(--social-color);
border-color: var(--social-color);
@@ -292,6 +471,13 @@
outline: 2px solid #fb7185;
outline-offset: 4px;
}
.tempo-source-page {
overflow-x: hidden;
}
.tempo-about-page {
--primary: #1f1f1f;
--color-primary: #1f1f1f;
}
@media (prefers-reduced-motion: reduce) {
.tempo-header *,
.tempo-footer *,