Sjabloon:Hoofdpagina/briljante sjabloon/style.css: verschil tussen versies

Uit De FNM-wiki
Naar navigatie springen Naar zoeken springen
Nieuwe pagina aangemaakt met '.tg-mainpage-header { position: relative; margin-top: -2rem; margin-bottom: -4rem; padding-top: 6rem; padding-bottom: 6rem; clear: both; overflow: hidden; →‎Prevent circular inscription from affecting element size: pointer-events: none; →‎So that you can click elements overlap with the header: } .tg-mainpage-header::before { content: ''; position: absolute; inset: 0; background-image: url(/w/images/7/72/Main_page_header_circular_inscription.…'
 
Geen bewerkingssamenvatting
 
(24 tussenliggende versies door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
.tg-mainpage-header {
.hp-plaatje {
position: relative;
  text-align: center;
margin-top: -2rem;
  margin: 0.5rem;
margin-bottom: -4rem;
padding-top: 6rem;
padding-bottom: 6rem;
clear: both;
overflow: hidden; /* Prevent circular inscription from affecting element size */
pointer-events: none; /* So that you can click elements overlap with the header */
}
}


.tg-mainpage-header::before {
.hp-titel {
content: '';
  text-align: center;
position: absolute;
  font-size: 30px;
inset: 0;
  color: white;
background-image: url(/w/images/7/72/Main_page_header_circular_inscription.svg);
  text-shadow: 0px 0px 0 red,
background-repeat: no-repeat;
              1px 1px 0 orange,
background-position: center;
              2px 2px 0 yellow,
background-size: contain;
              3px 3px 0 green,
opacity: 0.1;
              4px 4px 0 blue,
filter: var(--filter-invert);
              5px 5px 0 purple,
pointer-events: none;
              6px 6px 0 violet,
animation: spin 60s infinite linear;
              7px 7px 0 pink;
}
 
.tg-mainpage-content {
align-items: center;
display: flex;
flex-direction: column;
text-align: center;
pointer-events: auto; /* Reset pointer-events: none from header */
}
 
/* Fellowship background */
.tg-mainpage-header-wordmark::before {
content: '';
position: absolute;
left: 0;
right: 0;
top: -100%;
margin: 0 auto;
width: 50%;
height: 100%;
background-image: url(/w/images/b/bf/The_Fellowship_of_the_Ring_silhouette.svg);
background-repeat: no-repeat;
background-position: bottom center;
opacity: 0.2;
filter: var(--filter-invert);
}
 
/* Temp styles until we have wordmark */
.tg-mainpage-header-wordmark {
position: relative;
margin-top: 2.5rem;
width: 420px;
max-width: 100%;
padding-top: 0.75rem;
}
 
.tg-mainpage-header-wordmark img {
width: 100%;
height: 100%;
filter: var(--filter-invert);
}
 
.tg-mainpage-header-tagline {
margin-top: -0.25rem;
color: var(--tg-color-subtle);
font-size: var(--tg-font-size-small);
line-height: var(--tg-line-height-xx-small);
}


.tg-mainpage-header-search {
align-items: center;
background-color: var(--tg-color-progressive);
border-radius: var(--tg-border-radius-pill);
color: var(--tg-color-inverted-progressive);
cursor: pointer;
display: flex;
font-size: 0.875rem;
font-weight: var(--font-weight-medium);
gap: 0.5rem;
line-height: 1;
margin-top: 1rem;
padding: 1rem 2rem;
user-select: none;
}
}


.tg-mainpage-header-search:before {
content: '';
width: 1rem;
height: 1rem;
mask-image: url(/w/images/a/a5/CdxIconSearch.svg);
mask-size: contain;
background-color: currentColor;
display: block;
}
/* Keyboard hint */
@media (hover: hover) {
.tg-mainpage-header-search:after {
content: '/';
margin-top: -2px;
margin-bottom: -2px;
margin-left: 2px;
width: 18px;
height: 18px;
display: flex;
background-color: var(--tg-color-inverted-progressive);
color: var(--tg-color-progressive);
border-radius: var(--tg-border-radius-small);
line-height: 1;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 900;
opacity: 0.6;
}
}
.tg-mainpage-header-search:hover {
background-color: var(--tg-color-progressive--hover);
}
.tg-mainpage-header-search:active {
background-color: var(--tg-color-progressive--active);
}


@keyframes spin {
img {
from {
  margin: 0.5rem;
transform: rotate(0deg);
  border-radius: 10px;
}
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.3);
to {
transform: rotate(360deg);
}
}
}

Huidige versie van 30 mrt 2025 13:22

.hp-plaatje {
  text-align: center;
  margin: 0.5rem;
}

.hp-titel {
  text-align: center;  
  font-size: 30px;
  color: white;
  text-shadow: 0px 0px 0 red,
               1px 1px 0 orange,
               2px 2px 0 yellow,
               3px 3px 0 green,
               4px 4px 0 blue,
               5px 5px 0 purple,
               6px 6px 0 violet,
               7px 7px 0 pink;

}


img {
  margin: 0.5rem;
  border-radius: 10px;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.3);
}