mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #28343 -- Add an OS chooser for docs command line examples.
This commit is contained in:
parent
a22ef3bb37
commit
37c17846ad
29 changed files with 1399 additions and 90 deletions
46
docs/_theme/djangodocs/static/console-tabs.css
vendored
Normal file
46
docs/_theme/djangodocs/static/console-tabs.css
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
@import url("{{ pathto('_static/fontawesome/css/fa-brands.min.css', 1) }}");
|
||||
|
||||
.console-block {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.console-block *:before,
|
||||
.console-block *:after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.console-block > section {
|
||||
display: none;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.console-block > input.c-tab-unix,
|
||||
.console-block > input.c-tab-win {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.console-block > label {
|
||||
display: inline-block;
|
||||
padding: 4px 8px;
|
||||
font-weight: normal;
|
||||
text-align: center;
|
||||
color: #bbb;
|
||||
border: 1px solid transparent;
|
||||
font-family: fontawesome;
|
||||
}
|
||||
|
||||
.console-block > input:checked + label {
|
||||
color: #555;
|
||||
border: 1px solid #ddd;
|
||||
border-top: 2px solid #ab5603;
|
||||
border-bottom: 1px solid #fff;
|
||||
}
|
||||
|
||||
.console-block > .c-tab-unix:checked ~ .c-content-unix,
|
||||
.console-block > .c-tab-win:checked ~ .c-content-win {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.console-block pre {
|
||||
margin-top: 0px;
|
||||
}
|
34
docs/_theme/djangodocs/static/fontawesome/LICENSE.txt
vendored
Normal file
34
docs/_theme/djangodocs/static/fontawesome/LICENSE.txt
vendored
Normal file
|
@ -0,0 +1,34 @@
|
|||
Font Awesome Free License
|
||||
-------------------------
|
||||
|
||||
Font Awesome Free is free, open source, and GPL friendly. You can use it for
|
||||
commercial projects, open source projects, or really almost whatever you want.
|
||||
Full Font Awesome Free license: https://fontawesome.com/license.
|
||||
|
||||
# Icons: CC BY 4.0 License (https://creativecommons.org/licenses/by/4.0/)
|
||||
In the Font Awesome Free download, the CC BY 4.0 license applies to all icons
|
||||
packaged as SVG and JS file types.
|
||||
|
||||
# Fonts: SIL OFL 1.1 License (https://scripts.sil.org/OFL)
|
||||
In the Font Awesome Free download, the SIL OLF license applies to all icons
|
||||
packaged as web and desktop font files.
|
||||
|
||||
# Code: MIT License (https://opensource.org/licenses/MIT)
|
||||
In the Font Awesome Free download, the MIT license applies to all non-font and
|
||||
non-icon files.
|
||||
|
||||
# Attribution
|
||||
Attribution is required by MIT, SIL OLF, and CC BY licenses. Downloaded Font
|
||||
Awesome Free files already contain embedded comments with sufficient
|
||||
attribution, so you shouldn't need to do anything additional when using these
|
||||
files normally.
|
||||
|
||||
We've kept attribution comments terse, so we ask that you do not actively work
|
||||
to remove them from files, especially code. They're a great way for folks to
|
||||
learn about Font Awesome.
|
||||
|
||||
# Brand Icons
|
||||
All brand icons are trademarks of their respective owners. The use of these
|
||||
trademarks does not indicate endorsement of the trademark holder by Font
|
||||
Awesome, nor vice versa. **Please do not use brand logos for any purpose except
|
||||
to represent the company, product, or service to which they refer.**
|
7
docs/_theme/djangodocs/static/fontawesome/README.md
vendored
Normal file
7
docs/_theme/djangodocs/static/fontawesome/README.md
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Font Awesome 5.0.4
|
||||
|
||||
Thanks for downloading Font Awesome! We're so excited you're here.
|
||||
|
||||
Our documentation is available online. Just head here:
|
||||
|
||||
https://fontawesome.com
|
5
docs/_theme/djangodocs/static/fontawesome/css/fa-brands.min.css
vendored
Normal file
5
docs/_theme/djangodocs/static/fontawesome/css/fa-brands.min.css
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
/*!
|
||||
* Font Awesome Free 5.0.4 by @fontawesome - http://fontawesome.com
|
||||
* License - http://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||
*/
|
||||
@font-face{font-family:Font Awesome\ 5 Brands;font-style:normal;font-weight:400;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:Font Awesome\ 5 Brands}
|
BIN
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.eot
vendored
Normal file
BIN
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.eot
vendored
Normal file
Binary file not shown.
996
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.svg
vendored
Normal file
996
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 491 KiB |
BIN
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.ttf
vendored
Normal file
BIN
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.ttf
vendored
Normal file
Binary file not shown.
BIN
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.woff
vendored
Normal file
BIN
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.woff
vendored
Normal file
Binary file not shown.
BIN
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.woff2
vendored
Normal file
BIN
docs/_theme/djangodocs/static/fontawesome/webfonts/fa-brands-400.woff2
vendored
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue