mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-28 01:10:58 +01:00
Fixed: admonition codes did not match those of RTD theme
This commit is contained in:
parent
f56b070909
commit
45208dea73
@ -2,7 +2,7 @@
|
||||
|
||||
[Admonition][1] is an extension included in the standard Markdown library that
|
||||
makes it possible to add block-styled side content to your documentation, for
|
||||
example summaries, hints, notes or warnings.
|
||||
example summaries, notes, hints or warnings.
|
||||
|
||||
[1]: https://pythonhosted.org/Markdown/extensions/admonition.html
|
||||
|
||||
@ -25,7 +25,7 @@ four spaces.
|
||||
Example:
|
||||
|
||||
``` markdown
|
||||
!!! hint
|
||||
!!! note
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -33,7 +33,7 @@ Example:
|
||||
|
||||
Result:
|
||||
|
||||
!!! hint
|
||||
!!! note
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -46,7 +46,7 @@ easily be changed by adding a quoted string after the type qualifier.
|
||||
Example:
|
||||
|
||||
``` markdown
|
||||
!!! hint "Phasellus posuere in sem ut cursus"
|
||||
!!! note "Phasellus posuere in sem ut cursus"
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -54,7 +54,7 @@ Example:
|
||||
|
||||
Result:
|
||||
|
||||
!!! hint "Phasellus posuere in sem ut cursus"
|
||||
!!! note "Phasellus posuere in sem ut cursus"
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -67,7 +67,7 @@ can be omitted by providing an empty string after the type qualifier:
|
||||
Example:
|
||||
|
||||
``` markdown
|
||||
!!! hint ""
|
||||
!!! note ""
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -75,7 +75,7 @@ Example:
|
||||
|
||||
Result:
|
||||
|
||||
!!! hint ""
|
||||
!!! note ""
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -95,7 +95,7 @@ blocks.
|
||||
|
||||
Example:
|
||||
|
||||
!!! hint
|
||||
!!! note
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -125,14 +125,14 @@ Example:
|
||||
Admonition supports user-defined type qualifiers which may influence the style
|
||||
of the inserted block. Following is a list of type qualifiers supported by the
|
||||
Material theme, whereas the default type, and thus fallback for unknown type
|
||||
qualifiers, is [hint](#hint).
|
||||
qualifiers, is [note](#note).
|
||||
|
||||
### Hint
|
||||
### Note
|
||||
|
||||
Example:
|
||||
|
||||
``` markdown
|
||||
!!! hint
|
||||
!!! note
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -140,15 +140,15 @@ Example:
|
||||
|
||||
Result:
|
||||
|
||||
!!! hint
|
||||
!!! note
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
|
||||
Qualifiers:
|
||||
|
||||
* `hint`
|
||||
* `note`
|
||||
* `seealso`
|
||||
|
||||
### Summary
|
||||
|
||||
@ -194,7 +194,8 @@ Result:
|
||||
Qualifiers:
|
||||
|
||||
* `tip`
|
||||
* `idea`
|
||||
* `hint`
|
||||
* `important`
|
||||
|
||||
### Success
|
||||
|
||||
@ -241,8 +242,8 @@ Result:
|
||||
Qualifiers:
|
||||
|
||||
* `warning`
|
||||
* `caution`
|
||||
* `attention`
|
||||
* `important`
|
||||
|
||||
### Failure
|
||||
|
||||
@ -289,14 +290,14 @@ Result:
|
||||
Qualifiers:
|
||||
|
||||
* `danger`
|
||||
* `caution`
|
||||
* `error`
|
||||
|
||||
### Error
|
||||
### Bug
|
||||
|
||||
Example:
|
||||
|
||||
``` markdown
|
||||
!!! error
|
||||
!!! bug
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
@ -304,12 +305,11 @@ Example:
|
||||
|
||||
Result:
|
||||
|
||||
!!! error
|
||||
!!! bug
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
|
||||
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
|
||||
massa, nec semper lorem quam in massa.
|
||||
|
||||
Qualifiers:
|
||||
|
||||
* `error`
|
||||
* `bug`
|
||||
|
File diff suppressed because one or more lines are too long
@ -36,7 +36,7 @@
|
||||
{% include "partials/fonts.html" %}
|
||||
{% endblock %}
|
||||
{% block styles %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-7822ba8d37.css">
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-6b630276ef.css">
|
||||
{% if config.extra.palette %}
|
||||
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-0352baa348.palette.css">
|
||||
{% endif %}
|
||||
|
@ -59,12 +59,12 @@
|
||||
// Build representational classes
|
||||
@each $names, $appearance in (
|
||||
summary tldr: $clr-light-blue-a400 "subject",
|
||||
tip idea: $clr-teal-a700 "whatshot",
|
||||
tip hint important : $clr-teal-a700 "whatshot",
|
||||
success check done: $clr-green-a400 "done",
|
||||
warning attention important: $clr-orange-a400 "warning",
|
||||
warning caution attention: $clr-orange-a400 "warning",
|
||||
failure fail missing: $clr-red-a200 "clear",
|
||||
danger caution: $clr-red-a400 "flash_on",
|
||||
error bug: $clr-pink-a400 "bug_report"
|
||||
danger error: $clr-red-a400 "flash_on",
|
||||
bug: $clr-pink-a400 "bug_report"
|
||||
) {
|
||||
$tint: nth($appearance, 1);
|
||||
$icon: nth($appearance, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user