Mudanças entre as edições de "MediaWiki: Common.css"

De WikiAjuda
Ir para: navegação, pesquisa
Linha 2: Linha 2:
  
 
body {
 
body {
     counter-reset : h2.counter;
+
     counter-reset : h2;
 
}
 
}
  
 
h2.counter {
 
h2.counter {
     counter-reset : h3.counter;
+
     counter-reset : h3;
 
}
 
}
  
.newsection h2.counter:before {
+
.newsection h2:before {
 
     content : counter(h2,decimal) ". ";
 
     content : counter(h2,decimal) ". ";
 
     counter-increment : h2.counter;
 
     counter-increment : h2.counter;
 
}
 
}
  
.newsection h3.counter:before {
+
.newsection h3:before {
 
     content : counter(h2,decimal) "." counter(h3,decimal) ". ";
 
     content : counter(h2,decimal) "." counter(h3,decimal) ". ";
     counter-increment : h3.counter;
+
     counter-increment : h3;
 
}
 
}
  

Edição das 01h12min de 26 de abril de 2020

/** o código CSS colocado aqui será aplicado a todos os temas */

body {
    counter-reset : h2;
}

h2.counter {
    counter-reset : h3;
}

.newsection h2:before {
    content : counter(h2,decimal) ". ";
    counter-increment : h2.counter;
}

.newsection h3:before {
    content : counter(h2,decimal) "." counter(h3,decimal) ". ";
    counter-increment : h3;
}

.h2, h2 {
    font-size: 40px;
    line-height: auto !important;
    margin-top:20px;
}

.form-control.select2-container .select2-choices {
    border: 1px solid #aaa !important;
}

.img-mobile.center-block {
    max-width: 380px;
    height: auto;
}

.newsection img {
    visibility: hidden;
}

.steps-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1em;
    background: #dedede;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.steps-item > div {
    flex: 0 min-content;
    padding: .5em 1em;
}

.steps-item-number {
    color: #444;
    font-weight: bold;
    font-size: 100%;
}

.steps-item-text {
    flex-grow: 1 !important;
    border-top: 1px solid #dedede;
    background: #fff;
}