Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 8 additions & 172 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,177 +1,13 @@
body > div.document > div.sphinxsidebar > div > form > table > tbody > tr:nth-child(2) > td > select {
width: 100%!important;
}

#python27 > a {
color: white;
}

/* Carbon by BuySellAds */
#carbonads {
display: block;
overflow: hidden;
margin: 1.5em 0 2em;
padding: 1em;
border: solid 1px #cccccc;
border-radius: 2px;
background-color: #eeeeee;
text-align: center;
line-height: 1.5;
}

#carbonads a {
border-bottom: 0;
}

#carbonads span {
display: block;
overflow: hidden;
}

.carbon-img {
display: block;
margin: 0 auto 1em;
text-align: center;
}

.carbon-text {
display: block;
margin-bottom: 1em;
}

.carbon-poweredby {
display: block;
text-transform: uppercase;
letter-spacing: 1px;
font-size: 10px;
line-height: 1;
}


/* Native CPC by BuySellAds */

#native-ribbon #_custom_ {
position: fixed;
right: 0;
bottom: 0;
left: 0;
box-shadow: 0 -1px 4px 1px hsla(0, 0%, 0%, .15);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;
transition: all .25s ease-in-out;
transform: translateY(calc(100% - 35px));

flex-flow: column nowrap;
}

#native-ribbon #_custom_:hover {
transform: translateY(0);
}

.native-img {
margin-right: 20px;
max-height: 50px;
border-radius: 3px;
}

.native-sponsor {
margin: 10px 20px;
text-align: center;
text-transform: uppercase;
letter-spacing: .5px;
font-size: 12px;
transition: all .3s ease-in-out;
transform-origin: left;
}

#native-ribbon #_custom_:hover .native-sponsor {
margin: 0 20px;
opacity: 0;
transform: scaleY(0);
}

.native-flex {
display: flex;
padding: 10px 20px 25px;
text-decoration: none;

flex-flow: row nowrap;
justify-content: center;
align-items: center;
}

.native-main {
display: flex;

flex-flow: row nowrap;
align-items: center;
}

.native-details {
display: flex;
margin-right: 30px;

flex-flow: column nowrap;
}

.native-company {
margin-bottom: 4px;
text-transform: uppercase;
letter-spacing: 2px;
font-size: 10px;
}

.native-desc {
letter-spacing: 1px;
font-weight: 300;
font-size: 14px;
line-height: 1.4;
}

.native-cta {
padding: 10px 14px;
border-radius: 3px;
box-shadow: 0 6px 13px 0 hsla(0, 0%, 0%, .15);
text-transform: uppercase;
white-space: nowrap;
letter-spacing: 1px;
font-weight: 400;
font-size: 12px;
transition: all .3s ease-in-out;
transform: translateY(-1px);
}

.native-cta:hover {
box-shadow: none;
transform: translateY(1px);
}

@media only screen and (min-width: 320px) and (max-width: 759px) {
.native-flex {
padding: 5px 5px 15px;
flex-direction: column;

flex-wrap: wrap;
}

.native-img {
margin: 0;
display: none;
}
img.logo {margin-left: -20px!important;}

.native-details {
margin: 0;
}
div#searchbox h3 {text-transform: capitalize;}

.native-main {
flex-direction: column;
text-align: left;
div.document {width: 1008px;}

flex-wrap: wrap;
align-content: center;
}
div.highlight pre {padding: 11px 14px;}

.native-cta {
display: none;
}
@media screen and (max-width: 1008px) {
div.sphinxsidebar {display: none;}
div.document {width: 100%!important;}
div.highlight pre {margin-right: -30px;}
}
80 changes: 0 additions & 80 deletions docs/_templates/hacks.html

This file was deleted.

33 changes: 33 additions & 0 deletions docs/_templates/sidebar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<p class="logo">
<a href="{{ pathto(root_doc) }}">
<img class="logo" src="{{ pathto('_static/requests-sidebar.png', 1) }}" alt="{{ _('Requests logo') }}" />
</a>
</p>

<p>
<iframe src="https://ghbtns.com/github-btn.html?user=psf&repo=requests&type=watch&count=true&size=large"
allowtransparency="true" frameborder="0" scrolling="0" width="200px" height="35px"></iframe>
</p>

<p>
{{ _('Requests is an elegant and simple HTTP library for Python, built for human beings.') }}
</p>

<h3>{{ _('Useful Links') }}</h3>
<ul>
<li><a href="{{ pathto('user/quickstart') }}">{{ _('Quickstart') }}</a></li>
<li><a href="{{ pathto('user/advanced') }}">{{ _('Advanced Usage') }}</a></li>
<li><a href="{{ pathto('api') }}">{{ _('API Reference') }}</a></li>
<li><a href="{{ pathto('community/updates') + '#release-history' }}">{{ _('Release History') }}</a></li>
<li><a href="{{ pathto('dev/contributing') }}">{{ _('Contributors Guide') }}</a></li>

<p></p>

<li><a href="{{ pathto('community/recommended') }}">{{ _('Recommended Packages and Extensions') }}</a></li>

<p></p>

<li><a href="https://github.com/psf/requests">{{ _('Requests @ GitHub') }}</a></li>
<li><a href="https://pypi.org/project/requests/">{{ _('Requests @ PyPI') }}</a></li>
<li><a href="https://github.com/psf/requests/issues">{{ _('Issue Tracker') }}</a></li>
</ul>
37 changes: 0 additions & 37 deletions docs/_templates/sidebarintro.html

This file was deleted.

30 changes: 0 additions & 30 deletions docs/_templates/sidebarlogo.html

This file was deleted.

Loading
Loading