| 1 |
/* Deprecated get a red border spanning the entire length of the doc |
| 2 |
* (class, function, etc.), and the message itself has a faint red |
| 3 |
* background shading, but no border. */ |
| 4 |
dl.py:where(.class,.exception,.method,.function):has(> dd > div.deprecated) |
| 5 |
{ |
| 6 |
margin-inline-start: -0.6rem; |
| 7 |
border-inline-start: 0.4rem solid #f00; |
| 8 |
padding: 0 0.6rem 0 0.2rem; |
| 9 |
} |
| 10 |
|
| 11 |
span.deprecated { |
| 12 |
background-color: #fee; |
| 13 |
font-weight: bold; |
| 14 |
text-decoration: #f00 underline; |
| 15 |
padding: 0 0.5rem; |
| 16 |
} |
| 17 |
|
| 18 |
/* Added and changed get a blue or orange (respectively) border next to |
| 19 |
* the message only, plus a light background shade of the same color |
| 20 |
* (again, only on the message, not the rest of the doc). */ |
| 21 |
div.versionadded, div.versionchanged |
| 22 |
{ |
| 23 |
border-inline-start: 0.4rem solid transparent; |
| 24 |
} |
| 25 |
|
| 26 |
div.versionchanged p, |
| 27 |
div.versionadded p, |
| 28 |
span.versionmodified { |
| 29 |
line-height: initial; |
| 30 |
padding-bottom: 0.2rem; |
| 31 |
padding-top: 0.2rem; |
| 32 |
} |
| 33 |
span.versionmodified { |
| 34 |
padding-inline-start: 0.5rem; |
| 35 |
padding-inline-end: 0.2rem; |
| 36 |
margin-inline-end: 0.5rem; |
| 37 |
line-height: 130%; |
| 38 |
} |
| 39 |
|
| 40 |
div.versionchanged p, |
| 41 |
div.versionadded p { |
| 42 |
padding-inline-start: 0.5rem; |
| 43 |
} |
| 44 |
span.versionmodified { |
| 45 |
margin-inline-start: -0.5rem; /* Make up for padding above */ |
| 46 |
} |
| 47 |
|
| 48 |
div.versionadded { border-color: #2d67f3; } |
| 49 |
div.versionadded span.added { background-color: #d1e5ff; } |
| 50 |
|
| 51 |
div.versionchanged { border-color: #ff9800; } |
| 52 |
div.versionchanged span.changed { background-color: #ffddac; } |