Jump to content
Menú alternativo
Alternar el menú de preferencias
Menú alternativo personal
No has accedido
Tu dirección IP será visible si haces alguna edición

Diferencia entre revisiones de «Plantilla:Portada/styles.css»

De Wikimedia Small Projects
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
Línea 1: Línea 1:
* {
/* Base header styles */
font-family: Ubuntu;
.mainpage_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    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: #202122;
    margin-bottom: 0.5rem;
    text-align: center;
}
}


.main-button {
/* Row and box layout */
float: none;
.mainpage_row {
display: inline-block
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 1rem;
    margin: 0 0 1.2rem 0;
}
}


.main-button:hover a {
.mainpage_box {
color: #3666cc;
    flex: 1;
    min-width: 280px;
}
}


.main-button:active a {
 
color: #fff;
/* Box headers */
.mainpage_box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    color: #202122;
    font-size: 1.2rem;
}
}


/* https://stackoverflow.com/a/51053501 */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
.showcase-container {
    padding-left: 0;
width: 100%;
margin: 0 auto;
padding: 0;
position: relative;
}
}


.showcase-container img {
.mainpage_box h3 .header_icon {
display: block;
    margin-right: 0.5rem;
width: 100%;
    margin-top: 0;
height: auto;
margin: 0 auto;
max-width: 1200px;
}
}


.main-centered {
.mainpage_box .items {
position: absolute;
    padding-top: calc(1rem + 1px);  
top: 30%;
left: 40%;
transform: translate(-50%, -50%);
font-size: 229%;
font-weight: bold;
padding: 10px 20px;
color: #fff;
}
}


h2.main-centered {
/* Get started and function examples sections */
border: none;
#many-examples ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}
}


.main-content {
#many-examples li {
border-spacing: 30px 0;
    display: inline-block;
margin: 30px 0 30px 0;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    width: 100%;
    transition: background 0.2s ease;
}
}


@media (max-width: 1000px) {
#many-examples li:hover {
.mega-header-title {
    background: #eaecf0;
font-size: 115%;
}
width: 75%;
}
 
.main-content {
padding: 0 35px 0 35px !important;
}
 
.bi-buttons span {
display: inline-block;
}
 
.main-centered {
top: 50%;
left: 50%;
width: 75%
}
 
 
body.skin-citizen .main-content {
word-break: break-all !important;
}


body.skin-citizen .main-centered {
#many-examples li::before {
top: 30% !important;
    content: none;
}
}
}

Revisión del 00:27 12 sep 2026

/* Base header styles */
.mainpage_header {
    display: flex; 
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    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: #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;
}


/* Box headers */
.mainpage_box h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    color: #202122;
    font-size: 1.2rem;
}

.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: #f8f9fa;
    border-radius: 4px;
    width: 100%;
    transition: background 0.2s ease;
}

#many-examples li:hover {
    background: #eaecf0;
}

#many-examples li::before {
    content: none;
}