Diferencia entre revisiones de «Plantilla:Portada/styles.css»
De Wikimedia Small Projects
Más acciones
Página creada con «* { font-family: Ubuntu; } .main-button { float: none; display: inline-block } .main-button:hover a { color: #3666cc; } .main-button:active a { color: #fff; } →https://stackoverflow.com/a/51053501: .showcase-container { width: 100%; margin: 0 auto; padding: 0; position: relative; } .showcase-container img { display: block; width: 100%; height: auto; margin: 0 auto; max-width: 1200px; } .main-centered { position: absolute; top: 30%; left: 40%…» |
Sin resumen de edición |
||
| (No se muestra una edición intermedia del mismo usuario) | |||
| Línea 1: | Línea 1: | ||
* { | /* Base header styles */ | ||
font-family: | .mainpage_header { | ||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
padding: 2rem 1rem; | |||
background: linear-gradient(to bottom, var(--background-color-neutral-subtle, #f8f9fa), var(--background-color-base, #ffffff)); | |||
color: inherit; | |||
margin-bottom: 1rem; | |||
border: none; | |||
} | |||
.mainpage_header .main-title { | |||
font-family: system-ui, -apple-system, sans-serif; | |||
font-size: 2.2rem; | |||
font-weight: bold; | |||
color: var(--color-base, #202122); | |||
margin-bottom: 0.5rem; | |||
text-align: center; | |||
} | } | ||
. | /* Row and box layout */ | ||
.mainpage_row { | |||
display: flex; | |||
flex-flow: row wrap; | |||
justify-content: space-between; | |||
gap: 1rem; | |||
padding: 0 1rem; | |||
margin: 0 0 1.2rem 0; | |||
} | } | ||
. | .mainpage_box { | ||
color: | flex: 1; | ||
min-width: 280px; | |||
border: 1px solid var(--border-color-base, #a2a9b1); | |||
border-radius: 8px; | |||
padding: 1.2rem; | |||
background: var(--background-color-base, #ffffff); | |||
color: inherit; | |||
box-shadow: 0 2px 6px rgba(0,0,0,0.05); | |||
box-sizing: border-box; | |||
} | } | ||
. | |||
/* Box headers */ | |||
.mainpage_box h3 { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.5rem; | |||
padding: 0; | |||
color: var(--color-base, #202122); | |||
font-size: 1.5rem; | |||
} | } | ||
.mainpage_box h3:not(.tpl-vheadanchor-heading) { | |||
padding-left: 0; | |||
} | } | ||
. | .mainpage_box h3 .header_icon { | ||
margin-right: 0.5rem; | |||
margin-top: 0; | |||
} | } | ||
. | .mainpage_box .items { | ||
padding-top: calc(1rem + 1px); | |||
} | } | ||
/* Get started and function examples sections */ | |||
#many-examples ul { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.5rem; | |||
justify-content: center; | |||
padding: 0; | |||
margin: 0; | |||
list-style: none; | |||
} | } | ||
. | #many-examples li { | ||
border- | display: inline-block; | ||
padding: 0.5rem 1rem; | |||
background: var(--background-color-neutral-subtle, #f8f9fa); | |||
color: inherit; | |||
border-radius: 4px; | |||
width: 100%; | |||
transition: background 0.2s ease; | |||
} | } | ||
#many-examples li:hover { | |||
background: var(--background-color-neutral, #eaecf0); | |||
} | |||
#many-examples li::before { | |||
content: none; | |||
} | |||
/* Sister projects section */ | |||
.mainpage-sister-projects { | |||
padding: 1rem 0; | |||
} | |||
.mainpage-sister-projects ul { | |||
display: grid; | |||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); | |||
gap: 1rem; | |||
margin: 0; | |||
padding: 0; | |||
list-style: none; | |||
} | |||
.mainpage-sister-projects li { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.75rem; | |||
padding: 0.75rem; | |||
background: var(--background-color-neutral-subtle, #f8f9fa); | |||
color: inherit; | |||
border-radius: 6px; | |||
transition: background 0.2s ease; | |||
} | |||
.mainpage-sister-projects li:hover { | |||
background: var(--background-color-neutral, #eaecf0); | |||
} | |||
.mainpage-sister-projects div { | |||
margin: 0 0.5rem; | |||
color: var(--color-neutral, #404244); | |||
} | |||
.mainpage-sister-projects span { | |||
color: var(--color-base, #202122); | |||
font-weight: 600; | |||
} | |||
/* Small content box styles */ | |||
.mainpage_boxcontents_small { | |||
font-size: 0.9375rem; | |||
} | |||
/* Sister projects title section */ | |||
.mainpage-sister-title { | |||
margin: 1.5rem auto; | |||
padding-top: 1rem; | |||
border-top: 3px double #a2a9b1; | |||
color: var(--color-base, #202122); | |||
line-height: 1.4; | |||
width: 80%; | |||
text-align: center; | |||
} | |||
/* Language box styles */ | |||
.mw-pt-languages { | |||
background: none; | |||
border: 1px solid var(--border-color-base, #a2a9b1); | |||
border-radius: 8px; | |||
box-shadow: 0 2px 4px rgba(0,0,0,0.08); | |||
width: auto; | |||
margin: 1rem 0; | |||
} | |||
.mw-pt-languages-label { | |||
background: none; | |||
border-right: none; | |||
padding: 0.5rem 1rem; | |||
} | |||
/* Responsive adjustments */ | |||
@media screen and (max-width: 768px) { | |||
.mainpage_row { | |||
flex-direction: column; | |||
padding: 0; | |||
} | |||
.mainpage_box { | |||
width: 100%; | |||
min-width: unset; | |||
margin: 0.5rem 0; | |||
} | |||
.mainpage_header h1 { | |||
font-size: 2rem; | |||
} | |||
.mainpage-sister-projects ul { | |||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); | |||
} | |||
.thumb { | |||
float: none; | |||
margin: 1rem auto; | |||
} | |||
.thumbinner { | |||
margin: 0 auto; | |||
} | |||
#bottom-paragraphs { | |||
visibility: hidden; | |||
display: none; | |||
} | |||
} | |||
li::marker { | |||
color: #4f9160; | |||
} | } | ||
Revisión actual - 00:29 12 sep 2026
/* Base header styles */
.mainpage_header {
display: flex;
flex-direction: column;
align-items: center;
padding: 2rem 1rem;
background: linear-gradient(to bottom, var(--background-color-neutral-subtle, #f8f9fa), var(--background-color-base, #ffffff));
color: inherit;
margin-bottom: 1rem;
border: none;
}
.mainpage_header .main-title {
font-family: system-ui, -apple-system, sans-serif;
font-size: 2.2rem;
font-weight: bold;
color: var(--color-base, #202122);
margin-bottom: 0.5rem;
text-align: center;
}
/* Row and box layout */
.mainpage_row {
display: flex;
flex-flow: row wrap;
justify-content: space-between;
gap: 1rem;
padding: 0 1rem;
margin: 0 0 1.2rem 0;
}
.mainpage_box {
flex: 1;
min-width: 280px;
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
padding: 1.2rem;
background: var(--background-color-base, #ffffff);
color: inherit;
box-shadow: 0 2px 6px rgba(0,0,0,0.05);
box-sizing: border-box;
}
/* Box headers */
.mainpage_box h3 {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0;
color: var(--color-base, #202122);
font-size: 1.5rem;
}
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
margin-right: 0.5rem;
margin-top: 0;
}
.mainpage_box .items {
padding-top: calc(1rem + 1px);
}
/* Get started and function examples sections */
#many-examples ul {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
justify-content: center;
padding: 0;
margin: 0;
list-style: none;
}
#many-examples li {
display: inline-block;
padding: 0.5rem 1rem;
background: var(--background-color-neutral-subtle, #f8f9fa);
color: inherit;
border-radius: 4px;
width: 100%;
transition: background 0.2s ease;
}
#many-examples li:hover {
background: var(--background-color-neutral, #eaecf0);
}
#many-examples li::before {
content: none;
}
/* Sister projects section */
.mainpage-sister-projects {
padding: 1rem 0;
}
.mainpage-sister-projects ul {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 1rem;
margin: 0;
padding: 0;
list-style: none;
}
.mainpage-sister-projects li {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem;
background: var(--background-color-neutral-subtle, #f8f9fa);
color: inherit;
border-radius: 6px;
transition: background 0.2s ease;
}
.mainpage-sister-projects li:hover {
background: var(--background-color-neutral, #eaecf0);
}
.mainpage-sister-projects div {
margin: 0 0.5rem;
color: var(--color-neutral, #404244);
}
.mainpage-sister-projects span {
color: var(--color-base, #202122);
font-weight: 600;
}
/* Small content box styles */
.mainpage_boxcontents_small {
font-size: 0.9375rem;
}
/* Sister projects title section */
.mainpage-sister-title {
margin: 1.5rem auto;
padding-top: 1rem;
border-top: 3px double #a2a9b1;
color: var(--color-base, #202122);
line-height: 1.4;
width: 80%;
text-align: center;
}
/* Language box styles */
.mw-pt-languages {
background: none;
border: 1px solid var(--border-color-base, #a2a9b1);
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.08);
width: auto;
margin: 1rem 0;
}
.mw-pt-languages-label {
background: none;
border-right: none;
padding: 0.5rem 1rem;
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
.mainpage_row {
flex-direction: column;
padding: 0;
}
.mainpage_box {
width: 100%;
min-width: unset;
margin: 0.5rem 0;
}
.mainpage_header h1 {
font-size: 2rem;
}
.mainpage-sister-projects ul {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.thumb {
float: none;
margin: 1rem auto;
}
.thumbinner {
margin: 0 auto;
}
#bottom-paragraphs {
visibility: hidden;
display: none;
}
}
li::marker {
color: #4f9160;
}