User:Þjarkur/Antivandalism/styles.css
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
Documentation for this user script can be added at User:Þjarkur/Antivandalism/styles. |
/*
Design from the Spanish Wikipedia: [[:es:Plantilla:Portada/OOUI/styles.css]]
Based on
https://design.wikimedia.org/style-guide/
https://github.com/wikimedia/wikimedia-ui-base/blob/master/wikntilla:Portada:Encabezimedia-ui-base.less
*/
/* Encabezados estándar */
.main-header {
border-bottom-color: transparent;
margin-bottom: 0.25em;
margin-top: 0;
padding-bottom: 0;
padding-top: 0;
}
/* Listas no ordenadas */
.main-plainlist>ul {
list-style: none;
margin: 0;
padding: 0;
}
.main-plainlist li {
margin-bottom: 0;
}
/* Enlaces-botones */
.main-top-right .mw-ui-quiet:hover, .main-top-right .mw-ui-quiet:focus, .main-footer .mw-ui-quiet:hover, .main-footer .mw-ui-quiet:focus {
color: #0645ad;
}
/* Eliminar la numeración de los encabezados creados por la opción «Numerar automáticamente los encabezados»
en [[Especial:Preferencias#mw-prefsection-rendering]] */
.mw-headline-number {
display: none;
}
/*
Tabletas
*/
@media (min-width: 720px) {
.main-wikimedia {
padding-top: 1rem;
padding-left: 1rem;
padding-right: 1rem;
}
}
/*
Computadoras
*/
@media (min-width: 1000px) {
.forsida-grid {
display: grid;
grid-template-columns: 3fr 2fr;
grid-gap: 0 14px;
}
.main-wrapper {
display: flex;
/* margin: 0 -0.5rem; */
}
.main-wrapper-column {
flex: 1;
margin: 0 0.5rem;
}
.main-wikimedia {
padding-top: 1rem;
padding-left: 1rem;
padding-right: 1rem;
}
}
/* Reparto columnas al 55-45 % */
@media (min-width: 1000px) {
.main-wrapper-column {
width: 55%;
}
.main-wrapper-column+.main-wrapper-column {
width: 45%;
}
.main-wrapper-column {
flex: inherit;
}
}
/*
[[:es:Plantilla:Portada:Sección/styles.css]]
*/
.main-box {
background: #fff;
border: solid #c8ccd1;
border-width: 1px 0;
box-shadow: 0 1px 1px rgba( 0, 0, 0, 0.15);
margin: 0 -1rem 1rem;
padding: 1rem;
}
.main-box>p:last-child {
margin-bottom: 0;
}
/* Recurso del día */
.main-box-image-only>.main-box-content {
margin: 0.5rem -1rem 0;
text-align: center;
}
.main-box-image-only>.main-box-content img {
height: auto;
max-width: 100%;
}
.main-box-imageCaption {
text-align: center;
}
.main-box-imageCaption>p {
display: inline-block;
margin-bottom: 0;
text-align: left;
}
/* Sección */
.main-box-section {
color: #72777d;
line-height: 1.25;
margin-top: -.125em;
/* Equilibrando el límite superior de nombre de sección debido a line-height: 1.25; */
}
/* Encabezado */
.main-box-header {
margin-top: -.15em;
/* Equilibrando el límite superior del encabezado debido a line-height: 1.3; */
}
.main-box-header a {
color: inherit;
}
.main-box-section+.main-box-header {
/* Cuando existe el nombre, restablecer el margen al valor estándar */
margin-top: 0;
}
.main-box-header a:focus, .main-box:hover .main-box-header a, .main-box:hover .main-featuredLists-item>a {
color: #0645ad;
}
/*
Teléfonos móviles
*/
@media (max-width: 719px) {
.main-box {
margin-bottom: 0;
border-bottom: 0;
}
.main-box-responsive-image>.floatleft, .main-box-responsive-image>.floatright {
float: none;
margin-left: -1rem;
margin-right: -1rem;
text-align: center;
}
.main-box-responsive-image>.floatleft>a, .main-box-responsive-image>.floatright>a {
display: block;
}
}
/*
Tabletas
*/
@media (min-width: 720px) {
.main-box {
border-radius: 2px;
border-width: 1px;
margin-bottom: 1rem;
margin-left: 0;
margin-right: 0;
}
}
/*
Computadoras
*/
@media (min-width: 1000px) {
.main-box {
margin-bottom: 1rem;
padding: 1rem;
}
.main-box-image-only>.main-box-content {
margin-left: -1rem;
margin-right: -1rem;
}
}
.main-box {
display: flex;
flex-direction: column;
padding-bottom: 10px
}
.main-box-content {
flex: 1;
}
/* Pie */
.main-footer {
border-top: 1px solid #d6d6d6;
margin-top: 7px;
padding-top: 9px;
}