Diferencia entre revisiones de «Plantilla:Portada/styles.css»
De Wikimedia Small Projects
Más acciones
Sin resumen de edición |
Sin resumen de edición |
||
| Línea 5: | Línea 5: | ||
align-items: center; | align-items: center; | ||
padding: 2rem 1rem; | padding: 2rem 1rem; | ||
background: linear-gradient(to bottom, #f8f9fa, #ffffff); | background: linear-gradient(to bottom, var(--background-color-neutral-subtle, #f8f9fa), var(--background-color-base, #ffffff)); | ||
color: inherit; | |||
margin-bottom: 1rem; | margin-bottom: 1rem; | ||
border: none; | border: none; | ||
| Línea 14: | Línea 15: | ||
font-size: 2.2rem; | font-size: 2.2rem; | ||
font-weight: bold; | font-weight: bold; | ||
color: #202122; | color: var(--color-base, #202122); | ||
margin-bottom: 0.5rem; | margin-bottom: 0.5rem; | ||
text-align: center; | text-align: center; | ||
| Línea 32: | Línea 33: | ||
flex: 1; | flex: 1; | ||
min-width: 280px; | 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; | |||
} | } | ||
| Línea 41: | Línea 49: | ||
gap: 0.5rem; | gap: 0.5rem; | ||
padding: 0; | padding: 0; | ||
color: #202122; | color: var(--color-base, #202122); | ||
font-size: 1. | font-size: 1.5rem; | ||
} | } | ||
| Línea 72: | Línea 80: | ||
display: inline-block; | display: inline-block; | ||
padding: 0.5rem 1rem; | padding: 0.5rem 1rem; | ||
background: #f8f9fa; | background: var(--background-color-neutral-subtle, #f8f9fa); | ||
color: inherit; | |||
border-radius: 4px; | border-radius: 4px; | ||
width: 100%; | width: 100%; | ||
| Línea 79: | Línea 88: | ||
#many-examples li:hover { | #many-examples li:hover { | ||
background: #eaecf0; | background: var(--background-color-neutral, #eaecf0); | ||
} | } | ||
#many-examples li::before { | #many-examples li::before { | ||
content: none; | 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;
}