Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main page/navigation/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
#home-nav {
/* --- Container Principal --- */
margin-top: 1rem;
}
/* debug navpills */
.main-page-navigation > div.template-navpills {
  position: relative;
}
.template-navpills {
.template-navpills {
   display: grid;
   display: grid;
   gap: var(--space-xs);
   gap: var(--space-xs);
  /* Define 8 colunas por padrão */
   grid-template-columns: repeat(8, minmax(128px, 1fr));
   grid-template-columns: repeat(8, minmax(128px, 1fr));
   grid-auto-rows: 2rem;
   grid-auto-rows: 2rem;
Line 14: Line 9:
}
}


/* Contexto específico se estiver dentro de .main-page-navigation */
.main-page-navigation > div.template-navpills {
  position: relative;
}
/* --- Elementos Individuais (Pills) --- */
.template-navpill {
  position: relative;
  border: 1px solid var(--color-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-xx-small);
  overflow: hidden;
  white-space: nowrap;
}
/* Estilo do Link dentro do Pill */
.template-navpill > a {
  position: relative;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  color: var(--color-emphasized);
  text-decoration: none;
  height: 100%;
}
/* Interatividade (Hover/Active) */
.template-navpill:hover {
  background: var(--background-color-button-quiet--hover);
}
.template-navpill:active {
  background: var(--background-color-button-quiet--active);
}
/* --- Modificadores de Tamanho (big/wide) --- */
.navpill-placeholder {
.navpill-placeholder {
   /* empty cell */
   /* célula vazia */
}
}
.navpill-big {
.navpill-big {
   grid-row: span 2;
   grid-row: span 2;
   justify-items: center;
   justify-items: center;
}
}
.navpill-big > a {
.navpill-big > a {
   text-align: center;
   text-align: center;
   white-space: break-spaces;
   white-space: break-spaces;
}
}
.navpill-wide {
.navpill-wide {
   grid-column: span 2;
   grid-column: span 2;
}
}
.navpill-wide > a {
.navpill-wide > a {
   text-align: center;
   text-align: center;
}
}


.template-navpill {
/* --- Imagens de Fundo e Sobreposições --- */
  position: relative;
  /* No border radius, hard edged border */
  border: 1px solid var(--color-base);
  /* Original 'navpill' Rounded borders
  border: 1px solid var(--border-color-base);
  border-radius: var(--border-radius-medium);*/
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-xx-small);
  overflow: hidden;
  white-space: nowrap;
}
 
.template-navpill-background {
.template-navpill-background {
   position: absolute;
   position: absolute;
Line 51: Line 74:
}
}


/* Gradiente escuro para legibilidade do texto sobre a imagem */
.template-navpill-background:after {
.template-navpill-background:after {
   content: "";
   content: "";
Line 67: Line 91:
}
}


/* Efeitos de Hover na Imagem */
.template-navpill:hover .template-navpill-background::after {
.template-navpill:hover .template-navpill-background::after {
   transform: translateX(-100%);
   transform: translateX(-100%);
Line 75: Line 100:
}
}


.template-navpill > a {
/* Ajuste de cor e sombra do texto quando há imagem de fundo */
  position: relative;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  color: var(--color-emphasized);
  text-decoration: none;
  height: 100%;
}
 
.template-navpill > .template-navpill-background + a {
.template-navpill > .template-navpill-background + a {
   color: #fff;
   color: #fff;
Line 91: Line 107:
}
}


.template-navpill:hover {
/* --- Responsividade (Media Queries) --- */
  background: var(--background-color-button-quiet--hover);
}


.template-navpill:active {
/* Tablet / Telas Médias (901px - 1080px) */
  background: var(--background-color-button-quiet--active);
@media screen and (min-width: 901px) and (max-width: 1080px) {
}
   .template-navpills {
.main-page-navigation {
    /* Reduz para 4 colunas */
  width: 100%;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  display: flex;
    grid-auto-rows: 2.5rem;
  flex-direction: row;
  justify-content: center;
  gap: 0.25rem;
  max-width: 64rem;
   align-self: center;
}
 
/*
.main-page-navigation > div.template-navpills::before {
  content: attr(data-attr);
  background-color: none;
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  font-weight: bold;
  padding: 0rem 0.5rem;
  white-space: nowrap;
}*/
 
@media screen and (max-width: 900px) {
  .main-page-navigation {
    flex-direction: column;
   }
   }
 
   .navpill-placeholder {
   .main-page-navigation > .template-navpills {
    display: none;
   }
   }
}
}
 
@media screen and (min-width: 901px) and (max-width: 1080px) {
  .main-page-navigation {
    flex-direction: column;
  }


  .skill-info-table {
/* Mobile / Telas Pequenas (max 900px) */
    max-width: 100%;
@media screen and (max-width: 900px) {
  }
 
  .main-page-navigation > .template-navpills {
  }
   .template-navpills {
   .template-navpills {
     grid-template-columns: repeat(4, minmax(120px, 1fr));
    /* Reduz para 2 colunas */
     grid-template-columns: repeat(2, minmax(80px, 1fr));
     grid-auto-rows: 2.5rem;
     grid-auto-rows: 2.5rem;
   }
   }
   .navpill-placeholder {
   .navpill-placeholder {
     display: none;
     display: none;
  }
  .navpill-big > a {
    white-space: normal;
   }
   }
}
}

Latest revision as of 15:06, 21 November 2025

/* --- Container Principal --- */
.template-navpills {
  display: grid;
  gap: var(--space-xs);
  /* Define 8 colunas por padrão */
  grid-template-columns: repeat(8, minmax(128px, 1fr));
  grid-auto-rows: 2rem;
  font-size: var(--font-size-small);
}

/* Contexto específico se estiver dentro de .main-page-navigation */
.main-page-navigation > div.template-navpills {
  position: relative;
}

/* --- Elementos Individuais (Pills) --- */
.template-navpill {
  position: relative;
  border: 1px solid var(--color-base);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-xx-small);
  overflow: hidden;
  white-space: nowrap;
}

/* Estilo do Link dentro do Pill */
.template-navpill > a {
  position: relative;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  color: var(--color-emphasized);
  text-decoration: none;
  height: 100%;
}

/* Interatividade (Hover/Active) */
.template-navpill:hover {
  background: var(--background-color-button-quiet--hover);
}

.template-navpill:active {
  background: var(--background-color-button-quiet--active);
}

/* --- Modificadores de Tamanho (big/wide) --- */
.navpill-placeholder {
  /* célula vazia */
}

.navpill-big {
  grid-row: span 2;
  justify-items: center;
}

.navpill-big > a {
  text-align: center;
  white-space: break-spaces;
}

.navpill-wide {
  grid-column: span 2;
}

.navpill-wide > a {
  text-align: center;
}

/* --- Imagens de Fundo e Sobreposições --- */
.template-navpill-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Gradiente escuro para legibilidade do texto sobre a imagem */
.template-navpill-background:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #000, transparent);
  transition: transform 250ms ease;
}

.template-navpill-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-hover);
  transition-property: transform;
}

/* Efeitos de Hover na Imagem */
.template-navpill:hover .template-navpill-background::after {
  transform: translateX(-100%);
}

.template-navpill:hover .template-navpill-background img {
  transform: scale(1.1);
}

/* Ajuste de cor e sombra do texto quando há imagem de fundo */
.template-navpill > .template-navpill-background + a {
  color: #fff;
  text-shadow: -1px 0 0.2em #000, 0 1px 0.2em #000, 1px 0 0.2em #000,
    0 -1px 0.2em #000;
}

/* --- Responsividade (Media Queries) --- */

/* Tablet / Telas Médias (901px - 1080px) */
@media screen and (min-width: 901px) and (max-width: 1080px) {
  .template-navpills {
    /* Reduz para 4 colunas */
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    grid-auto-rows: 2.5rem;
  }
  .navpill-placeholder {
    display: none;
  }
}

/* Mobile / Telas Pequenas (max 900px) */
@media screen and (max-width: 900px) {
  .template-navpills {
    /* Reduz para 2 colunas */
    grid-template-columns: repeat(2, minmax(80px, 1fr));
    grid-auto-rows: 2.5rem;
  }
  .navpill-placeholder {
    display: none;
  }
  .navpill-big > a {
    white-space: normal;
  }
}