mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/site_users.git
synced 2026-05-04 04:40:40 -03:00
Sub-módulo com ThemeNegotiator, controller de listagem de conteúdo por usuário, formulário de configuração de tipos de conteúdo por papel e serviços registrados. Tema com regiões header, highlighted, tabs, messages, content, sidebar, social e footer; template page.html.twig com header padrão gerado a partir dos dados do usuário (foto, nome, roles) quando a região header estiver vazia. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
196 lines
3.5 KiB
CSS
196 lines
3.5 KiB
CSS
/**
|
|
* Microsite theme — estilos base.
|
|
* Ponto de partida minimalista. Personalize conforme o design do site.
|
|
*/
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body.microsite {
|
|
margin: 0;
|
|
font-family: system-ui, sans-serif;
|
|
background: #f5f5f5;
|
|
color: #222;
|
|
}
|
|
|
|
/* Skip link */
|
|
.skip-link {
|
|
position: absolute;
|
|
top: -100%;
|
|
left: 0;
|
|
padding: 0.5rem 1rem;
|
|
background: #000;
|
|
color: #fff;
|
|
z-index: 9999;
|
|
}
|
|
.skip-link:focus {
|
|
top: 0;
|
|
}
|
|
|
|
/* Header ------------------------------------------------------------------- */
|
|
|
|
.microsite-header {
|
|
background: #1a1a2e;
|
|
color: #fff;
|
|
padding: 2rem 1.5rem;
|
|
}
|
|
|
|
.microsite-header__inner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.microsite-header__photo img {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.microsite-header__name {
|
|
margin: 0 0 0.25rem;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.microsite-header__roles {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.microsite-header__role {
|
|
font-size: 0.8rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
background: rgba(255, 255, 255, 0.15);
|
|
padding: 0.2rem 0.6rem;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
/* Navigation --------------------------------------------------------------- */
|
|
|
|
.microsite-nav {
|
|
background: #16213e;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.microsite-nav ul.tabs {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0 1.5rem;
|
|
display: flex;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.microsite-nav ul.tabs li {
|
|
margin: 0;
|
|
}
|
|
|
|
.microsite-nav ul.tabs a {
|
|
display: block;
|
|
padding: 0.75rem 1.25rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
text-decoration: none;
|
|
font-size: 0.9rem;
|
|
border-bottom: 3px solid transparent;
|
|
transition: color 0.2s, border-color 0.2s;
|
|
}
|
|
|
|
.microsite-nav ul.tabs a:hover,
|
|
.microsite-nav ul.tabs a:focus {
|
|
color: #fff;
|
|
}
|
|
|
|
.microsite-nav ul.tabs li.is-active a,
|
|
.microsite-nav ul.tabs a.is-active {
|
|
color: #fff;
|
|
border-bottom-color: #e94560;
|
|
}
|
|
|
|
/* Highlighted -------------------------------------------------------------- */
|
|
|
|
.microsite-highlighted {
|
|
max-width: 900px;
|
|
margin: 1.5rem auto 0;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
/* Main + Sidebar ----------------------------------------------------------- */
|
|
|
|
.microsite-main-wrapper {
|
|
max-width: 900px;
|
|
margin: 2rem auto;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
.microsite-main-wrapper--has-sidebar {
|
|
display: grid;
|
|
grid-template-columns: 1fr 280px;
|
|
gap: 2rem;
|
|
max-width: 1200px;
|
|
}
|
|
|
|
.microsite-main {
|
|
min-width: 0;
|
|
}
|
|
|
|
.microsite-sidebar {
|
|
min-width: 0;
|
|
}
|
|
|
|
.microsite-messages {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
/* Social ------------------------------------------------------------------- */
|
|
|
|
.microsite-social {
|
|
max-width: 900px;
|
|
margin: 0 auto 2rem;
|
|
padding: 0 1.5rem;
|
|
}
|
|
|
|
/* Footer ------------------------------------------------------------------- */
|
|
|
|
.microsite-footer {
|
|
background: #16213e;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
padding: 2rem 1.5rem;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.microsite-footer a {
|
|
color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
/* Responsividade básica ---------------------------------------------------- */
|
|
|
|
@media (max-width: 768px) {
|
|
.microsite-main-wrapper--has-sidebar {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.microsite-header__inner {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.microsite-header__roles {
|
|
justify-content: center;
|
|
}
|
|
}
|