mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 04:02:35 +03:00
made base.html resposive on all screens
This commit is contained in:
parent
4bbfa8d455
commit
2f480f6750
|
@ -1,21 +1,21 @@
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 45px;
|
font-size: 45px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.intro-code {
|
.intro-code {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre.highlight code * {
|
pre.highlight code * {
|
||||||
white-space: nowrap; /* this sets all children inside to nowrap */
|
white-space: nowrap; /* this sets all children inside to nowrap */
|
||||||
}
|
}
|
||||||
|
|
||||||
pre.highlight {
|
pre.highlight {
|
||||||
overflow-x: auto; /* this sets the scrolling in x */
|
overflow-x: auto; /* this sets the scrolling in x */
|
||||||
}
|
}
|
||||||
|
|
||||||
pre.highlight code {
|
pre.highlight code {
|
||||||
white-space: pre; /* forces <code> to respect <pre> formatting */
|
white-space: pre; /* forces <code> to respect <pre> formatting */
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
.main-container {
|
||||||
|
@ -42,16 +42,16 @@ pre.highlight code {
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .brand {
|
.sidebar .brand {
|
||||||
background-color: #23282e;
|
background-color: #23282e;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 25px 0;
|
padding: 25px 0;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .brand a {
|
.sidebar .brand a {
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .brand a:hover,
|
.sidebar .brand a:hover,
|
||||||
|
@ -123,7 +123,6 @@ pre.highlight code {
|
||||||
background-color: #020203;
|
background-color: #020203;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.sidebar .menu-list ul .sub-menu li a,
|
.sidebar .menu-list ul .sub-menu li a,
|
||||||
.sidebar .menu-list li .sub-menu li a {
|
.sidebar .menu-list li .sub-menu li a {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -179,9 +178,9 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.coredocs-section-title {
|
.coredocs-section-title {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
border-bottom: 1px solid lightgrey;
|
border-bottom: 1px solid lightgrey;
|
||||||
}
|
}
|
||||||
|
|
||||||
.coredocs-link-title a,
|
.coredocs-link-title a,
|
||||||
|
@ -201,20 +200,19 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.coredocs-section-title:last-child {
|
.coredocs-section-title:last-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* @group Language Switcher */
|
/* @group Language Switcher */
|
||||||
|
|
||||||
.sidebar .menu-list.menu-list-bottom {
|
.sidebar .menu-list.menu-list-bottom {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: inherit;
|
width: inherit;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
border-top: 1px solid #23282e;
|
border-top: 1px solid #23282e;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .menu-list-bottom li span {
|
.sidebar .menu-list-bottom li span {
|
||||||
|
@ -225,19 +223,18 @@ body {
|
||||||
|
|
||||||
/* @end Language Switcher */
|
/* @end Language Switcher */
|
||||||
|
|
||||||
|
|
||||||
/* @group Docs Content */
|
/* @group Docs Content */
|
||||||
|
|
||||||
.docs-content .meta .label {
|
.docs-content .meta .label {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.docs-content .meta code {
|
.docs-content .meta code {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding: .2em .6em .3em;
|
padding: .2em .6em .3em;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.docs-content .btn {
|
.docs-content .btn {
|
||||||
|
@ -251,54 +248,54 @@ body {
|
||||||
/* @end Docs Content */
|
/* @end Docs Content */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
.main-container {
|
.main-container {
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
padding-right: 15px;
|
padding-right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .toggle-btn {
|
.sidebar .toggle-btn {
|
||||||
display: block;
|
display: block;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
z-index: 10 !important;
|
z-index: 10 !important;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .menu-list.menu-list-bottom {
|
.sidebar .menu-list.menu-list-bottom {
|
||||||
position: static;
|
position: static;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar .brand {
|
.sidebar .brand {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
text-align: left !important;
|
||||||
text-align: left !important;
|
font-size: 22px;
|
||||||
font-size: 22px;
|
padding: 0;
|
||||||
padding: 0;
|
padding-left: 20px;
|
||||||
padding-left: 20px;
|
line-height: 50px !important;
|
||||||
line-height: 50px !important;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 767px) {
|
@media (min-width: 767px) {
|
||||||
.sidebar .menu-list .menu-content {
|
.sidebar .menu-list .menu-content {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
#main {
|
#main {
|
||||||
width:calc(100% - 225px);
|
width: calc(100% - 225px);
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -323,15 +320,15 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.api-modal .modal-body .meta .label {
|
.api-modal .modal-body .meta .label {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
.api-modal .modal-body .meta code {
|
.api-modal .modal-body .meta code {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding: .2em .6em .3em;
|
padding: .2em .6em .3em;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.api-modal .modal-content .toggle-view {
|
.api-modal .modal-content .toggle-view {
|
||||||
|
@ -345,15 +342,15 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.highlight {
|
.highlight {
|
||||||
background-color: #f7f7f9
|
background-color: #f7f7f9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox label.control-label {
|
.checkbox label.control-label {
|
||||||
font-weight: bold
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
.navbar-nav.navbar-right:last-child {
|
.navbar-nav.navbar-right:last-child {
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user