mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue