1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 09:20:52 +01:00

Fixed: admonition codes did not match those of RTD theme

This commit is contained in:
squidfunk 2017-01-05 08:31:58 +01:00
parent f56b070909
commit 45208dea73
4 changed files with 26 additions and 26 deletions

View File

@ -2,7 +2,7 @@
[Admonition][1] is an extension included in the standard Markdown library that [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 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 [1]: https://pythonhosted.org/Markdown/extensions/admonition.html
@ -25,7 +25,7 @@ four spaces.
Example: Example:
``` markdown ``` markdown
!!! hint !!! note
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -33,7 +33,7 @@ Example:
Result: Result:
!!! hint !!! note
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -46,7 +46,7 @@ easily be changed by adding a quoted string after the type qualifier.
Example: Example:
``` markdown ``` 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 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -54,7 +54,7 @@ Example:
Result: 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 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -67,7 +67,7 @@ can be omitted by providing an empty string after the type qualifier:
Example: Example:
``` markdown ``` markdown
!!! hint "" !!! note ""
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -75,7 +75,7 @@ Example:
Result: Result:
!!! hint "" !!! note ""
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -95,7 +95,7 @@ blocks.
Example: Example:
!!! hint !!! note
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -125,14 +125,14 @@ Example:
Admonition supports user-defined type qualifiers which may influence the style 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 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 Material theme, whereas the default type, and thus fallback for unknown type
qualifiers, is [hint](#hint). qualifiers, is [note](#note).
### Hint ### Note
Example: Example:
``` markdown ``` markdown
!!! hint !!! note
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -140,15 +140,15 @@ Example:
Result: Result:
!!! hint !!! note
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
Qualifiers: Qualifiers:
* `hint`
* `note` * `note`
* `seealso`
### Summary ### Summary
@ -194,7 +194,8 @@ Result:
Qualifiers: Qualifiers:
* `tip` * `tip`
* `idea` * `hint`
* `important`
### Success ### Success
@ -241,8 +242,8 @@ Result:
Qualifiers: Qualifiers:
* `warning` * `warning`
* `caution`
* `attention` * `attention`
* `important`
### Failure ### Failure
@ -289,14 +290,14 @@ Result:
Qualifiers: Qualifiers:
* `danger` * `danger`
* `caution` * `error`
### Error ### Bug
Example: Example:
``` markdown ``` markdown
!!! error !!! bug
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
@ -304,12 +305,11 @@ Example:
Result: Result:
!!! error !!! bug
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa. massa, nec semper lorem quam in massa.
Qualifiers: Qualifiers:
* `error`
* `bug` * `bug`

View File

@ -36,7 +36,7 @@
{% include "partials/fonts.html" %} {% include "partials/fonts.html" %}
{% endblock %} {% endblock %}
{% block styles %} {% 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 %} {% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-0352baa348.palette.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-0352baa348.palette.css">
{% endif %} {% endif %}

View File

@ -59,12 +59,12 @@
// Build representational classes // Build representational classes
@each $names, $appearance in ( @each $names, $appearance in (
summary tldr: $clr-light-blue-a400 "subject", 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", 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", failure fail missing: $clr-red-a200 "clear",
danger caution: $clr-red-a400 "flash_on", danger error: $clr-red-a400 "flash_on",
error bug: $clr-pink-a400 "bug_report" bug: $clr-pink-a400 "bug_report"
) { ) {
$tint: nth($appearance, 1); $tint: nth($appearance, 1);
$icon: nth($appearance, 2); $icon: nth($appearance, 2);