Browse Source

🎨 Colorize the "important" admonition blocks

tags/20.3b1
Sviatoslav Sydorenko 2 months ago
parent
commit
13962cd6ad
No known key found for this signature in database GPG Key ID: 9345E8FEA89CA455
3 changed files with 10 additions and 2 deletions
  1. +1
    -1
      MANIFEST.in
  2. +8
    -0
      docs/html/_static/important-admonition.css
  3. +1
    -1
      docs/html/conf.py

+ 1
- 1
MANIFEST.in View File

@@ -22,7 +22,7 @@ exclude noxfile.py

recursive-include src/pip/_vendor *.pem
recursive-include src/pip/_vendor py.typed
recursive-include docs Makefile *.rst *.py *.bat
recursive-include docs *.css *.rst *.py

exclude src/pip/_vendor/six
exclude src/pip/_vendor/six/moves


+ 8
- 0
docs/html/_static/important-admonition.css View File

@@ -0,0 +1,8 @@
.admonition.important {
background-color: rgb(219, 250, 244);
border: 1px solid rgb(26, 188, 156);
}

.admonition.important>.admonition-title {
color: rgb(26, 188, 156);
}

+ 1
- 1
docs/html/conf.py View File

@@ -181,7 +181,7 @@ html_theme_options = {
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
html_static_path = ['_static']

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.


Loading…
Cancel
Save