Mudanças entre as edições de "MediaWiki: Common.css"
De WikiAjuda
Linha 2: | Linha 2: | ||
body { | body { | ||
− | counter-reset : h2; | + | counter-reset : h2.counter; |
} | } | ||
− | h2 { | + | h2.counter { |
− | counter-reset : h3; | + | counter-reset : h3.counter; |
} | } | ||
− | .newsection h2:before { | + | .newsection h2.counter:before { |
− | content : counter(h2,decimal) ". "; | + | content : counter(h2.counter,decimal) ". "; |
− | counter-increment : h2; | + | counter-increment : h2.counter; |
} | } | ||
− | .newsection h3:before { | + | .newsection h3.counter:before { |
− | content : counter(h2,decimal) "." counter(h3,decimal) ". "; | + | content : counter(h2.counter,decimal) "." counter(h3.counter,decimal) ". "; |
− | counter-increment : h3; | + | counter-increment : h3.counter; |
} | } | ||
Edição das 01h08min de 26 de abril de 2020
/** o código CSS colocado aqui será aplicado a todos os temas */
body {
counter-reset : h2.counter;
}
h2.counter {
counter-reset : h3.counter;
}
.newsection h2.counter:before {
content : counter(h2.counter,decimal) ". ";
counter-increment : h2.counter;
}
.newsection h3.counter:before {
content : counter(h2.counter,decimal) "." counter(h3.counter,decimal) ". ";
counter-increment : h3.counter;
}
.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;
}