Update theorem formatting

This commit is contained in:
Dimitri Lozeve 2018-11-20 20:08:47 +01:00
parent c8509dfb40
commit 3dda0c55ed
2 changed files with 10 additions and 4 deletions

View file

@ -65,8 +65,8 @@ a.icon {
.definition, .proposition, .theorem {
display: block;
border: 1px solid #000;
padding: 1rem;
border-left: 2px solid #808080;
padding-left: 1rem;
margin-top: 1rem;
margin-bottom: 1rem;
}
@ -75,10 +75,16 @@ a.icon {
font-style: italic;
}
.definition p, .proposition p, .theorem p, .proof p {
.definition p:first-child, .proposition p:first-child, .theorem p:first-child, .proof p:first-child {
display: inline;
}
.definition p, .proposition p, .theorem p, .proof p {
margin-top: 0.4rem;
margin-bottom: 0.4rem;
padding-left: 1rem;
}
.theorem:before {
counter-increment: theorem;
content: "Theorem " counter(theorem) ". ";