Diferencia entre revisiones de «Plantilla:Portada:Encabezado/OOUI/styles.css»
(No se muestran 11 ediciones intermedias del mismo usuario) | |||
Línea 13: | Línea 13: | ||
.main-top-left > p { | .main-top-left > p { | ||
− | |||
margin: 0; | margin: 0; | ||
+ | } | ||
+ | |||
+ | .main-top-left > p, h1.main-top-header { | ||
+ | padding-right: 4.5rem; | ||
+ | max-width: 860px; | ||
+ | } | ||
+ | .main-top-left > p{ | ||
+ | padding-bottom: 15px; | ||
} | } | ||
.main-top-right { | .main-top-right { | ||
− | |||
margin-top: 0.5em; | margin-top: 0.5em; | ||
} | } | ||
Línea 69: | Línea 75: | ||
*/ | */ | ||
@media (min-width: 720px) { | @media (min-width: 720px) { | ||
+ | .main-top-left { | ||
+ | background-image: linear-gradient(45deg, #fff 0%, #fff 60%, rgba(248, 249, 250, 0) 100%); | ||
+ | flex: 2; | ||
+ | padding: 2rem 0 2rem 0; | ||
+ | padding-bottom: 0; | ||
+ | } | ||
+ | |||
.main-top { | .main-top { | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
Línea 75: | Línea 88: | ||
/*box-shadow: 0 1px 1px rgba(0, 0, 0, .15);*/ | /*box-shadow: 0 1px 1px rgba(0, 0, 0, .15);*/ | ||
margin-bottom: 1rem; | margin-bottom: 1rem; | ||
− | padding: | + | padding: 0; |
} | } | ||
Línea 109: | Línea 122: | ||
margin-top: 0.5rem; | margin-top: 0.5rem; | ||
padding: 0 1.5rem 0 0; | padding: 0 1.5rem 0 0; | ||
+ | padding-right:0; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.main-top-right { | .main-top-right { | ||
flex: 3; | flex: 3; | ||
margin-top: 0; | margin-top: 0; | ||
− | text-align: | + | text-align: left; |
} | } | ||
.main-top-right > ul { | .main-top-right > ul { | ||
align-items: center; | align-items: center; | ||
− | flex-direction: | + | flex-direction: initial; |
margin-top: 0; | margin-top: 0; | ||
text-align: left; | text-align: left; |
Revisión actual del 16:33 16 mar 2021
/*
Nuevo diseño de plantilla [[Plantilla:Portada:Encabezado/OOUI]]
Basado en:
https://github.com/wikimedia/wikimedia-ui-base/blob/master/wikimedia-ui-base.less
https://design.wikimedia.org/style-guide/
*/
.main-top {
font-size: 1rem;
margin-top: 1rem;
padding-bottom: 1.5rem;
}
.main-top-left > p {
margin: 0;
}
.main-top-left > p, h1.main-top-header {
padding-right: 4.5rem;
max-width: 860px;
}
.main-top-left > p{
padding-bottom: 15px;
}
.main-top-right {
margin-top: 0.5em;
}
.main-top-right > ul {
display: none;
margin-top: 0.5rem;
}
.main-top-right .mw-ui-button.mw-ui-quiet {
padding-right: 0;
}
.main-top-header {
border-bottom: 0;
margin-bottom: 0;
margin-top: 0;
}
.main-top-articleCount {
margin-bottom: 0;
}
body.skin-minerva .main-top-articleCount {
display: none;
}
.main-top-mobileSearch {
display: none;
margin-top: 1rem;
}
body.skin-minerva .main-top-mobileSearch {
display: block;
}
.main-top-mobileSearchButton {
background: #fff;
border: none;
box-shadow: 0 2px 2px 0 rgba( 0, 0, 0, 0.25 );
color: #72777d;
font-weight: normal;
max-width: none;
text-align: left;
width: 100%;
}
/*
Tabletas
*/
@media (min-width: 720px) {
.main-top-left {
background-image: linear-gradient(45deg, #fff 0%, #fff 60%, rgba(248, 249, 250, 0) 100%);
flex: 2;
padding: 2rem 0 2rem 0;
padding-bottom: 0;
}
.main-top {
background-color: #f8f9fa;
border: 1px solid #c8ccd1;
border-radius: 2px;
/*box-shadow: 0 1px 1px rgba(0, 0, 0, .15);*/
margin-bottom: 1rem;
padding: 0;
}
.main-top-right > ul {
display: flex;
flex-wrap: wrap;
}
.main-top-articleCount {
margin-bottom: 0.5rem;
}
body.skin-minerva .main-top-articleCount {
display: block;
}
body.skin-minerva .main-top-mobileSearch {
display: none;
}
}
/*
Computadoras
*/
@media (min-width: 1000px) {
.main-top {
align-items: center;
background-image: url(https://upload.wikimedia.org/wikipedia/commons/e/e3/Wikipedia_logo_letters_banner.svg);
background-position: right;
background-repeat: no-repeat;
display: flex;
margin-bottom: 1rem;
margin-top: 0.5rem;
padding: 0 1.5rem 0 0;
padding-right:0;
}
.main-top-right {
flex: 3;
margin-top: 0;
text-align: left;
}
.main-top-right > ul {
align-items: center;
flex-direction: initial;
margin-top: 0;
text-align: left;
}
.main-top-createArticle + li .mw-ui-button.mw-ui-quiet {
padding-right: 1em;
}
}
/* bugfix in skin-modern */
body.skin-modern .main-top-header {
line-height: 1.8rem;
font-size: 1.8rem;
}