Skip to content
Snippets Groups Projects
Commit fb297853 authored by jay's avatar jay
Browse files

Updates for documentation

parent a449183a
No related branches found
No related tags found
No related merge requests found
Showing
with 10188 additions and 0 deletions
{#
scipy/layout.html
~~~~~~~~~~~~~~~~~
Master layout template for Sphinx themes.
:copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
#}
{%- block doctype -%}
<!DOCTYPE html>
{%- endblock %}
{%- set url_root = pathto('', 1) %}
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
{%- if not embedded and docstitle %}
{%- set titlesuffix = " &mdash; "|safe + docstitle|e %}
{%- else %}
{%- set titlesuffix = "" %}
{%- endif %}
{%- macro relbar_top() %}
<ul class="nav nav-pills pull-left">
{%- for link in theme_rootlinks %}
<li class="active"><a href="{{ link[0] }}">{{ link[1] }}</a></li>
{%- endfor %}
{%- block rootrellink %}
{% if pagename != master_doc %}
<li class="active"><a href="{{ pathto(master_doc) }}">{{ shorttitle|e }}</a></li>
{% endif %}
{%- endblock %}
{%- for parent in parents %}
<li class="active"><a href="{{ parent.link|e }}" {% if loop.last %}{{ accesskey("U") }}{% endif %}>{{ parent.title }}</a></li>
{%- endfor %}
{%- block relbaritems %} {% endblock %}
</ul>
{%- endmacro %}
{%- macro relbar_top_right() %}
<ul class="nav nav-pills pull-right">
{%- for rellink in rellinks %}
<li class="active">
<a href="{{ pathto(rellink[0]) }}" title="{{ rellink[1]|striptags|e }}"
{{ accesskey(rellink[2]) }}>{{ rellink[3] }}</a>
</li>
{%- endfor %}
</ul>
{%- endmacro %}
{%- macro relbar_bottom() %}
{%- endmacro %}
{%- macro sidebar() %}
<div class="spc-rightsidebar span3">
<div class="sphinxsidebarwrapper">
{%- block sidebarlogo %}
{%- if logo %}
<p class="logo"><a href="{{ pathto(master_doc) }}">
<img class="logo" src="{{ pathto('_static/' + logo, 1) }}" alt="Logo">
</a></p>
{%- endif %}
{%- endblock %}
{%- if sidebars != None %}
{#- new style sidebar: explicitly include/exclude templates #}
{%- for sidebartemplate in sidebars %}
{%- include sidebartemplate %}
{%- endfor %}
{%- else %}
{#- old style sidebars: using blocks -- should be deprecated #}
{%- block sidebartoc %}
{%- include "localtoc.html" %}
{%- endblock %}
{%- block sidebarrel %}
{%- include "relations.html" %}
{%- endblock %}
{%- block sidebarsourcelink %}
{%- include "sourcelink.html" %}
{%- endblock %}
{%- if customsidebar %}
{%- include customsidebar %}
{%- endif %}
{%- block sidebarsearch %}
{%- include "searchbox.html" %}
{%- endblock %}
{%- endif %}
</div>
</div>
{%- endmacro %}
{%- macro script() %}
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '{{ url_root }}',
VERSION: '{{ release|e }}',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '{{ '' if no_search_suffix else file_suffix }}',
HAS_SOURCE: {{ has_source|lower }}
};
</script>
{%- for scriptfile in script_files %}
<script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script>
{%- endfor %}
<script type="text/javascript" src="{{ pathto('_static/js/copybutton.js', 1) }}"></script>
{%- endmacro %}
{%- macro css() %}
<link rel="stylesheet" type="text/css" href="{{ pathto('_static/css/spc-bootstrap.css', 1) }}">
<link rel="stylesheet" type="text/css" href="{{ pathto('_static/css/spc-extend.css', 1) }}">
<link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" type="text/css" >
<link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" >
{%- for cssfile in css_files %}
<link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" >
{%- endfor %}
{%- endmacro %}
<html>
<head>
<meta charset="{{ encoding }}">
{{ metatags }}
{%- block htmltitle %}
<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{%- endblock %}
{{ css() }}
{%- if not embedded %}
{{ script() }}
{%- if use_opensearch %}
<link rel="search" type="application/opensearchdescription+xml"
title="{% trans docstitle=docstitle|e %}Search within {{ docstitle }}{% endtrans %}"
href="{{ pathto('_static/opensearch.xml', 1) }}">
{%- endif %}
{%- if favicon %}
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}">
{%- endif %}
{%- endif %}
{%- block linktags %}
{%- if hasdoc('about') %}
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" >
{%- endif %}
{%- if hasdoc('genindex') %}
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" >
{%- endif %}
{%- if hasdoc('search') %}
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" >
{%- endif %}
{%- if hasdoc('copyright') %}
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" >
{%- endif %}
<link rel="top" title="{{ docstitle|e }}" href="{{ pathto('index') }}" >
{%- if parents %}
<link rel="up" title="{{ parents[-1].title|striptags|e }}" href="{{ parents[-1].link|e }}" >
{%- endif %}
{%- if next %}
<link rel="next" title="{{ next.title|striptags|e }}" href="{{ next.link|e }}" >
{%- endif %}
{%- if prev %}
<link rel="prev" title="{{ prev.title|striptags|e }}" href="{{ prev.link|e }}" >
{%- endif %}
{%- endblock %}
{%- block extrahead %} {% endblock %}
</head>
<body>
{%- block header %}
{% if theme_scipy_org_logo %}
<div class="container">
<div class="top-scipy-org-logo-header">
<a href="{{ pathto('index') }}">
<img style="border: 0;" alt="SciPy" src="{{ pathto('_static/img/scipy_org_logo.gif', 1) }}"></a>
</div>
</div>
</div>
{% else %}
<div class="container">
<div class="header">
</div>
</div>
{% endif %}
{% endblock %}
{%- block content %}
<div class="container">
<div class="main">
{%- block navbar %}
{% if theme_navigation_links or sidebar == 'left' %}
<div class="row-fluid">
<div class="span12">
<div class="spc-navbar">
{{ relbar_top() }}
{% if theme_navigation_links %}
{{ relbar_top_right() }}
{% endif %}
</div>
</div>
</div>
{% endif %}
{% endblock %}
<div class="row-fluid">
{%- if theme_sidebar == 'left' -%}
{{ sidebar() }}
{%- endif %}
{%- if theme_sidebar == 'none' -%}
<div class="span1"></div>
<div class="span10">
{% else %}
<div class="span9">
{%- endif %}
{% if not theme_navigation_links and sidebar != 'left' %}
<div class="row-fluid">
<div class="span9">
<div class="spc-navbar">
{{ relbar_top() }}
</div>
</div>
</div>
{% endif %}
{%- block document %}
<div class="bodywrapper">
<div class="body" id="spc-section-body">
{% block body %} {% endblock %}
</div>
</div>
{%- endblock %}
</div>
{%- if theme_sidebar == 'right' -%}
{{ sidebar() }}
{%- elif theme_sidebar == 'none' -%}
<div class="span1"></div>
{%- endif %}
</div>
</div>
</div>
{%- endblock %}
<div class="container container-navbar-bottom">
<div class="spc-navbar">
{{ relbar_bottom() }}
</div>
</div>
{%- block footer %}
<div class="container">
<div class="footer">
<div class="row-fluid">
<ul class="inline pull-left">
{%- if show_copyright %}
<li>
{%- if hasdoc('copyright') %}
{% trans path=pathto('copyright'), copyright=copyright|e %}&copy; <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %}
{%- else %}
{% trans copyright=copyright|e %}&copy; Copyright {{ copyright }}.{% endtrans %}
{%- endif %}
</li>
{%- endif %}
{%- if last_updated %}
<li>
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %}
</li>
{%- endif %}
{%- if show_sphinx %}
<li>
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
</li>
{%- endif %}
</ul>
</div>
</div>
</div>
{%- endblock %}
</body>
</html>
{%- if theme_edit_link -%}
{% block edit_link %}
{%- if sourcename %}
<div class="this-page-menu">
{%- if 'generated/' in sourcename %}
<a href="/scipy/docs/{{ sourcename.replace('generated/', '').replace('.txt', '') |e }}">{{_('Edit page')}}</a>
{%- else %}
<a href="/scipy/docs/scipy-docs/{{ sourcename.replace('.txt', '.rst') |e }}">{{_('Edit page')}}</a>
{%- endif %}
</div>
{%- endif %}
{% endblock %}
{%- endif -%}
{%- if show_source and has_source and sourcename %}
<h3>{{ _('This Page') }}</h3>
<div>
<a href="{{ pathto('_sources/' + sourcename, true)|e }}"
rel="nofollow">{{ _('Show Source') }}</a>
</div>
{%- endif %}
.container {
width: 80%;
}
.navbar1 {
padding-bottom: 10px;
}
.navbar1 .nav-pills {
margin-bottom: 0px;
font-size: 12px;
}
.navbar1 .nav-pills > li > a {
padding-top: 2.5px;
padding-bottom: 2.5px;
}
.navbar1 .dropdown.dropdown-menu {
padding: 0px;
}
.header {
padding-top: 30px;
padding-bottom: 18px;
}
.SearchBar .form-search {
margin-bottom: 0px;
}
.SearchBar .input-append input {
height: 12px;
}
body {
font-family: Segoe UI;
background-color: #f9faf7;
}
.main {
background-color: white;
padding: 18px;
-moz-box-shadow: 0 0 3px #888;
-webkit-box-shadow: 0 0 3px #888;
box-shadow: 0 0 3px #888;
}
.MainHeader h1 {
font-weight: normal;
}
.content .contentTitle h4 {
font-size: 18px;
font-weight: normal;
}
.content .meta {
font-size: small;
}
.tags .btn {
border: none;
font-size: 10px;
font-weight: bold;
}
.navigation {
font-size: 12px;
padding-bottom: 12px;
}
.navigation .nav-title {
color: #333333;
font-family: "Segoe UI semibold";
font-size: 16px;
text-transform: uppercase;
}
.navigation li {
margin: 5px;
}
.snippetHeader {
margin-bottom: 5px;
}
.snippetHeader .snippetTitle {
font-size: 21px;
line-height: 40px;
border-bottom: 1px solid #e5e5e5;
display: block;
color: #333333;
}
.snippetInfo {
padding-top: 10px;
}
.snippetInfo .dl-horizontal {
margin: 5px;
}
.snippet-body {
padding: 10px;
}
.snippet-body .accordion-group {
border: none;
}
.snippet-body .accordion-heading {
text-transform: uppercase;
font-size: 14px;
border-bottom: 1px solid #e5e5e5;
}
.snippet-body .accordion-heading .accordion-toggle {
padding-top: 10px;
padding-bottom: 5px;
}
.SearchResult {
padding: 10px;
padding-top: 0px;
}
.SearchResult .PageTitle {
font-size: 21px;
line-height: 40px;
border-bottom: 1px solid #e5e5e5;
padding-bottom: 5px;
display: block;
color: #333333;
}
.footer {
padding: 10px;
}
.footer-inside {
border-top: 1px solid #e5e5e5;
padding: 10px;
}
/* Styling for the source code listings: (mostly from pygments)*/
.highlight pre{
overflow: auto;
padding: 5px;
background-color: #ffffff;
color: #333333;
border: 1px solid #ac9;
border-left: none;
border-right: none;
}
/* Styling for pre elements: from http://perishablepress.com/press/2009/11/09/perfect-pre-tags/ */
/* no vertical scrollbars for IE 6 */
* html pre {
padding-bottom:25px;
overflow-y:hidden;
overflow:visible;
overflow-x:auto
}
/* no vertical scrollbars for IE 7 */
*:first-child+html pre {
padding-bottom:25px;
overflow-y:hidden;
overflow:visible;
overflow-x:auto
}
div#spc-section-body td.linenos pre {
padding: 5px 0px;
border: 0;
background-color: transparent;
color: #aaa;
}
.highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; }
.highlight .c { color: #008000 } /* Comment */
.highlight .k { color: #000080; font-weight: bold } /* Keyword */
.highlight .n { color: #000000 } /* Name */
.highlight .o { color: #000000 } /* Operator */
.highlight .cm { color: #008000 } /* Comment.Multiline */
.highlight .cp { color: #008000 } /* Comment.Preproc */
.highlight .c1 { color: #008000 } /* Comment.Single */
.highlight .cs { color: #008000 } /* Comment.Special */
.highlight .kc { color: #000080; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #000080; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #000080; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #000080; font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { color: #000080; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #000080; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #008080 } /* Literal.Number */
.highlight .s { color: #800080 } /* Literal.String */
.highlight .na { color: #000000 } /* Name.Attribute */
.highlight .nb { color: #407090 } /* Name.Builtin */
.highlight .nc { color: #0000F0; font-weight: bold } /* Name.Class */
.highlight .no { color: #000000 } /* Name.Constant */
.highlight .nd { color: #000000 } /* Name.Decorator */
.highlight .ni { color: #000000 } /* Name.Entity */
.highlight .ne { color: #000000 } /* Name.Exception */
.highlight .nf { color: #008080; font-weight: bold } /* Name.Function */
.highlight .nl { color: #000000 } /* Name.Label */
.highlight .nn { color: #000000 } /* Name.Namespace */
.highlight .nx { color: #000000 } /* Name.Other */
.highlight .py { color: #000000 } /* Name.Property */
.highlight .nt { color: #000000 } /* Name.Tag */
.highlight .nv { color: #000000 } /* Name.Variable */
.highlight .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
.highlight .mf { color: #008080 } /* Literal.Number.Float */
.highlight .mh { color: #008080 } /* Literal.Number.Hex */
.highlight .mi { color: #008080 } /* Literal.Number.Integer */
.highlight .mo { color: #008080 } /* Literal.Number.Oct */
.highlight .sb { color: #800080 } /* Literal.String.Backtick */
.highlight .sc { color: #800080 } /* Literal.String.Char */
.highlight .sd { color: #800000 } /* Literal.String.Doc */
.highlight .s2 { color: #800080 } /* Literal.String.Double */
.highlight .se { color: #800080 } /* Literal.String.Escape */
.highlight .sh { color: #800080 } /* Literal.String.Heredoc */
.highlight .si { color: #800080 } /* Literal.String.Interpol */
.highlight .sx { color: #800080 } /* Literal.String.Other */
.highlight .sr { color: #800080 } /* Literal.String.Regex */
.highlight .s1 { color: #800080 } /* Literal.String.Single */
.highlight .ss { color: #800080 } /* Literal.String.Symbol */
.highlight .bp { color: #407090 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #000000 } /* Name.Variable.Class */
.highlight .vg { color: #000000 } /* Name.Variable.Global */
.highlight .vi { color: #000000 } /* Name.Variable.Instance */
.highlight .il { color: #008080 } /* Literal.Number.Integer.Long */
/*
Styling to add still
--------------------
div: spc-notice (general notices: e.g. submission requested is invalid)
*/
/* -------------------------------------------------------------------------*/
/* Basic layout of the document: no styling - that is applied further down. */
/* -------------------------------------------------------------------------*/
body {
/* From: http://matthewjamestaylor.com/blog/perfect-3-column.htm */
margin:0;
padding:0;
border:0; /* This removes the border around the viewport in old versions of IE */
width:100%;
background:#ffffff;
min-width:600px; /* Minimum width of layout - remove line if not required */
/* The min-width property does not work in old versions of Internet Explorer */
}
#spc-document-container{
position: relative;
min-width: 50em;
max-width: 90em;
}
#spc-header {
clear: both;
float: left;
width: 100%;
display: block;
}
.spc-header-row{
float: left;
width: 100%;
clear: both;
}
.spc-header-left{
float: left;
position: relative;
left: +1%
}
.spc-header-right{
float: right;
position: relative;
left: -1%
}
#spc-contentwrap{
display: block;
overflow: hidden;
}
#spc-content-main{
float: left;
width: 100%;
}
#spc-navigation-bottom{
clear: both;
}
#spc-footer{
clear: both;
}
/* -------------------------------------------- */
/* Now we will begin styling the various blocks */
/* -------------------------------------------- */
/* Document container */
#spc-document-container {
font: 13px/1.5 'Lucida Grande','Lucida Sans Unicode','Geneva','Verdana',sans-serif;
background: #FFFFFF;
margin: auto; /* display container in the center of the page */
padding-top: 12px;
}
#spc-document-container img{
border: 0
}
#spc-document-container a:visited { /* for IE6 */
color: purple;
}
/* Header block styling */
.spc-header-row{
text-align: center;
}
.spc-header-right{
float: right;
text-align: right;
}
#spc-site-notice{
/*display: none;*/
color: #aaf;
font-weight: bold;
padding: 6px 0px;
border-bottom: 1px dashed #aaf;
background: #eee;
/*display: none; Uncomment to remove the site notice*/
}
#spc-site-title{
border-bottom: 1px solid #aaa;
margin-top: -2em;
}
#spc-top-menu{
padding-top: 0.25em;
}
#spc-header h1 a {
color: black;
text-decoration: none;
text-align: center;
font: 36px/1.0 'Inconsolata','Lucida Grande','Lucida Sans Unicode','Geneva','Verdana',sans-serif;
font-weight: bold;
}
#spc-top-menu a {
text-decoration: none;
font-weight: bold;
font: 20px 'Inconsolata','Lucida Grande','Lucida Sans Unicode','Geneva','Verdana',sans-serif;
}
#spc-top-menu a:hover{
text-decoration: underline;
}
/* contentwrap block: applies to everything in the bulk of the page */
#spc-contentwrap {
}
/* The major chunk of content (left side); the sidebar comes later */
#spc-content-main{
background: #FFFFFF;
}
/* Border */
#spc-border {
margin-left: 0px;
background: white;
padding-top: 0em; /* Don't remove top and bottom padding: leads to */
padding-bottom: 0em; /* unwanted horizontal borders around the document.*/
padding-left: 2em;
padding-right: 2em;
}
/* spc-section-body: the current section of the document. The Sphinx
generated HTML is inserted inside this DIV element. Specific formatting for
the HTML should go here */
/* ----------------------- */
#spc-section-body {
margin-bottom: 1em;
}
/* Styling for the headers */
div#spc-section-body h1, h2, h3, h4, h5, h6{
color: #20435C;
font-family: 'Trebuchet MS', sans-serif;
font-weight: normal;
border-bottom: 0px solid #ccc;
margin-bottom: 0.5em;
}
div#spc-section-body h1 { font-size: 200%; font-weight: bold;}
div#spc-section-body h2 { font-size: 160%; font-weight: bold; color: #101074;}
div#spc-section-body h3 { font-size: 140%; color: #362A13;}
div#spc-section-body h4 { font-size: 120%; }
div#spc-section-body h5 { font-size: 110%; }
div#spc-section-body h6 { font-size: 100%; }
.spc-title-in-span{font-size: 160%; font-weight: bold; color: #101074; float: left;}
/* Styling for forms */
input, select, textarea{
border:solid 1px #aacfe4;
padding: 4px 2px;
margin-bottom: 1em;
}
/* Styling for hyperlinks */
div#spc-section-body a{
text-decoration: none;
}
div#spc-section-body a:hover{
text-decoration: underline;
}
/* Styling for images and figures: images are inline, figures are centered */
div#spc-section-body .align-center{
text-align: center;
}
/* Styling for <tt></tt> elements */
tt {
background-color:#EEE;
color:#000;
font: 16px/1.0 'Inconsolata', Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}
/* Main page */
#spc-site-statement{
width: 90%;
margin: auto;
text-align: center;
padding-top: 1em;
}
#spc-search{
clear: both;
float: none;
display: block;
margin: 0 auto;
width: 700px;
}
#spc-search-form{
margin-top: 10pt;
}
#spc-search-input {
cursor: auto;
display: inline;
height: 31px;
float: left;
width: 580px;
border: 2px solid #3e5d34;
padding: 0;
padding-left: 0.5em;
margin: 0;
margin-right: 20px;
color: #555;
font-family: 'Inconsolata', 'Lucida Grande';
font-size: 24px;
text-indent: 0px;
text-shadow: none;
text-transform: none;
word-spacing: 0px;
background: none;
}
#spc-search-button{
border: 1px outset #B6A792;
vertical-align:middle;
border:none;
cursor:pointer;
padding: 0;
display: block;
float: left;
width: 80px;
height: 35px;
margin: 0;
background: #ddd;
display: inline-block;
overflow: hidden;
}
#spc-search-results{
width: 75%;
}
#spc-search-results li{
margin: 0 auto;
list-style-type: none;
padding: 0.5em 0;
float: left;
}
/* Submission buttons */
.spc-button-container {
float: left;
width: 100%;
clear: both;
margin-bottom:1em;
}
#spc-buttonlist {
margin: 0 auto;
list-style-type: none;
padding: 0;
padding-top: 2em;
float: left;
position: relative;
left: 50%;
}
#spc-buttonlist li {
float: left;
position: relative;
right: 50%;
padding: 0em 1em;
}
#spc-buttonlist a {
text-decoration: none;
margin: 0 auto;
display: block;
}
.spc-button{
background-position: 0px 0px;
background-color: #DDDDDD;
border: 1px outset #B6A792;
cursor: auto;
display: inline-block;
vertical-align: middle;
overflow: hidden;
padding: 0;
margin: 0;
}
/* Portals */
.spc-portal-container{
width: 65%;
clear: both;
padding: 0px;
position: relative;
display: block;
margin: 0 auto;
}
.spc-portal-row-container {
clear:both;
float:left;
width:100%; /* width of whole page */
overflow:hidden; /* This chops off any overhanging divs */
}
.spc-portal-row {
float:left;
width:100%;
position:relative;
right:50%; /* right column width */
background:#fff; /* left column background colour */
}
.spc-portal-left,
.spc-portal-right{
float:left;
position:relative;
padding:0 0 1em 0;
overflow:hidden;
}
.spc-portal-left {
width:46%; /* left column content width (column width minus left and right padding) */
left:52%; /* right column width plus left column left padding */
}
.spc-portal-right {
width:46%; /* right column content width (column width minus left and right padding) */
left:56%; /* (right column width) plus (left column left and right padding) plus (right column left padding) */
}
.spc-portal-container h3{
font: 14px/1.0 'Inconsolata', Monaco, Lucida Console, Sans Mono, Courier New, monospace, serif;
text-align: center;
border-bottom: 1px solid;
}
.spc-portal-container a{
text-decoration: none;
font-weight: bold;
font: 14px sans-serif;
}
.spc-portal-container a:hover{
text-decoration: underline;
}
.spc-portal-container ul{
list-style-type: square;
}
.spc-portal-container li{
margin-left: -1em;
}
/* Submission forms */
#spc-form-error-message{
margin-bottom: 1em;
text-align: center;
border-bottom:solid 1px #000;
}
.errorlist{
list-style-type: none;
float: left;
padding: 0;
}
.errorlist li{
font-style: italic;
}
.spc-field-error{
background: #ee8888;
padding: 4px;
}
.spc-form-button{
padding: 5px;
}
/* column container */
/* http://matthewjamestaylor.com/blog/perfect-3-column.htm */
.colmask {
position:relative; /* This fixes the IE7 overflow hidden bug */
clear:both;
float:left;
width:100%; /* width of whole page */
overflow:hidden; /* This chops off any overhanging divs */
padding-bottom: 1em;
}
/* common column settings */
.colright,
.colmid,
.colleft {
float:left;
width:100%; /* width of page */
position:relative;
}
.col1,
.col2,
.col3 {
float:left;
position:relative;
padding:0; /* no left and right padding on columns */
overflow:hidden;
}
/* 3 Column settings */
.threecol {
background:#fff; /* right column background colour */
}
.threecol .colmid {
right:25%; /* width of the right column */
background:#fff; /* center column background colour */
}
.threecol .colleft {
right:60%; /* width of the middle column */
background:#fff; /* left column background colour */
}
.threecol .col1 {
width:58%; /* width of center column content (column width minus padding on either side) */
left:101%; /* 100% plus left padding of center column */
}
.threecol .col2 {
width:13%; /* Width of left column content (column width minus padding on either side) */
left:28%; /* width of (right column) plus (center column left and right padding) plus (left column left padding) */
}
.threecol .col3 {
width:23%; /* Width of right column content (column width minus padding on either side) */
left:90%; /* Please make note of the brackets here:
(100% - left column width) plus (center column left and right padding) plus (left column left and right padding) plus (right column left padding)
(100-15)+(1+1)+(1+1)+(1)*/
}
.form-field input, select, textarea{
width: 98%;
max-width:1000px;
min-width:500px;
}
.form-field-auto-width{
width: auto;
}
.spc-code-description{
height: 15em;
}
span.spc-helptext ul{
margin: 0;
padding-left: 20px;
}
.spc-odd{
background: #DDF;
}
.spc-even{
background: #CCF;
}
li.spc-odd tt{
background-color: #DDF;
}
li.spc-even tt {
background-color: #CCF;
}
/* Image upload */
#spc-item-upload {
}
#spc-item-upload-button{
padding: 0.5em;
text-align: center;
}
.spc-item-upload-success{
background: #ffa;
padding: 4px;
}
/* Tagging */
.ui-autocomplete {
max-height: 150px;
overflow-y: auto;
overflow-x: hidden; /* prevent horizontal scrollbar */
padding-right: 20px; /* add padding to account for vertical scrollbar */
}
/* IE 6 doesn't support max-height
* we use height instead, but this forces the menu to always be this tall */
* html .ui-autocomplete {
height: 100px;
}
.spc-tag{
background-color: #E0EAF1;
color: #3E6D8E;
border-bottom: 1px solid #37607D;
border-right: 1px solid #37607D;
text-decoration: none;
padding: 4px 4px 3px 4px;
margin: 2px 5px 2px 0px;
font-size: 90%;
line-height: 1.4;
white-space: nowrap;
cursor: pointer;
float:left;
}
.spc-tag:hover{
background-color: #3E6D8E;
color: #E0EAF1;
}
.spc-tag-cloud{
background-color: #FFF;
color: #3E6D8E;
border-bottom: 0px solid #37607D;
border-right: 0px solid #37607D;
text-decoration: none;
padding: 0px 4px 0px 4px;
margin: 2px 5px 2px 0px;
font-size: 90%;
white-space: nowrap;
cursor: pointer;
}
.spc-tag-cloud:hover{
background-color: #FFF;
color: #1E4D6E;
}
#spc-preview-edit-submit{
clear: both;
}
#spc-preview-edit-submit form input{
display: inline;
padding: 5px;
}
#spc-item-submit{
margin-left:8em;
font-weight: bold;
}
#spc-item-preview{
width:auto;
min-width:0;
padding: 0.5em;
text-align:center;
}
#spc-item-header{
clear: both;
padding: 0px;
float: left;
width: 102%;
position: relative;
display: block;
margin: 0 auto;
left: -1%;
top: -20px;
}
#spc-item-header-left{
float: left;
text-align: left;
}
#spc-item-header-right{
float: right;
text-align: right;
}
div.spc-item-row {
clear: both;
padding-top: 10px;
}
div.spc-item-row span.spc-item-label {
float: left;
width: 200px;
text-align: left;
padding-right: 20px;
padding-bottom: 4px;
font-weight: bold;
}
div.spc-item-row span.spc-item-entry {
float: left;
min-width: 500px;
max-width: 1000px;
text-align: left;
}
div.spc-item-row span.spc-item-entry ul{
padding: 0;
margin: 0;
list-style-type: none;
}
div.spc-item-row span.spc-50-50{
float: left;
width: 49%;
text-align: left;
}
.spc-help-section a{
color: #0069CC;
margin-top: 1em;
}
.spc-entries-list ul{
padding: 0;
margin: 0;
list-style-type: none;
}
/* Unstyle certain elements in the code/link description fields */
.spc-item-description p{
margin: 0;
margin-bottom: 1em;
}
.spc-item-row pre{
border: 0px solid #FFF;
overflow: auto;
padding: 5px;
background-color: #EEE;
border: none;
margin: 0;
font: 16px/1.0 'Inconsolata', Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}
/* Item display*/
#spc-itemdisp-container{
clear: both;
padding: 0;
padding-top: 1em;
margin: 0 auto;
width: 85%;
}
.spc-itemdisp-row-container {
clear:both;
float:left;
width:100%;
margin: 0 0 1em 0;
}
.spc-itemdisp-row {
float:left;
width:100%;
}
.spc-itemdisp-td{
float: left;
padding-right: 1%;
}
.spc-itemdisp-description{
width: 50%;
}
.spc-itemdisp-link{
float: right;
font-size: 80%;
}
div .spc-itemdisp-mainlink{
text-decoration: underline;
float: left;
width: 100%;
}
.spc-itemdisp-revinfo{
float: right;
font-size: 80%;
}
.spc-itemdisp-created{
width: 23%;
}
.spc-itemdisp-tags{
width: 23%;
}
.spc-itemdisp-odd{
background: #fff8f1;
}
.spc-itemdisp-even{
background: #fff;
}
.spc-itemdisp-header{
background: #f1c79d;
padding: 0.4em 0 0.4em 0;
font-weight: bold;
}
#spc-itemdisp-pageheader{
text-align: center;
font: 24px/1.0 'Inconsolata','Lucida Grande','Lucida Sans Unicode','Geneva','Verdana',sans-serif;
font-weight: bold;
}
.spc-itemdisp-pagination{
float: left;
}
div#spc-itemdisp-container h1, h2, h3, h4, h5, h6{
font-weight: normal;
border-bottom: 1px solid #ccc;}
div#spc-itemdisp-container h1 { font-size: 130%; font-weight: bold;}
div#spc-itemdisp-container h2 { font-size: 120%; font-weight: bold;}
div#spc-itemdisp-container h3 { font-size: 110%;}
div#spc-itemdisp-container h4 { font-size: 100%; }
div#spc-itemdisp-container h5 { font-size: 100%; }
div#spc-itemdisp-container h6 { font-size: 100%; }
/* Permalinks and other minor info*/
.spc-minor-info {
font-size: 80%;
float: left;
border-top: 1px solid #ddd;
}
.spc-minor-info p{
margin: 0;
}
.spc-minor-info a{
text-decoration: none;
}
.spc-minor-info a:hover{
text-decoration: underline;
}
/* User profile pages */
#spc-profile-user-options ul{
margin: 0 auto;
padding: 0 0;
}
#spc-profile-user-options li{
margin: 0 auto;
list-style-type: none;
padding: 0 5px 0 5px;
float: left;
border-right: 1px solid;
}
#spc-profile-user-options li:first-child{
padding-left: 0px;
}
#spc-profile-user-options li:last-child{
border-right: none;
}
/* Styling for certain static pages */
#spc-static-centering{
display: block;
margin: 0 auto;
min-width: 30em;
max-width: 50em;
}
/* spc-footer: http://www.alistapart.com/articles/practicalcss/ */
#spc-footer {
clear: both;
font-size: 90%;
padding: 0px;
float: left;
width: 100%;
position: relative;
display: block;
margin: 0 auto;
border-top: 1px solid #aaa;
}
#spc-footer a{
text-decoration: none;
font-weight: bold;
font: 15px sans-serif;
}
#spc-footer a:hover{
text-decoration: underline;
}
.spc-footer-left{
float: left;
text-align: left;
}
.spc-footer-right{
float: right;
text-align: right;
}
.spc-footer-left ul{
margin: 0;
padding: 0;
}
.spc-footer-left li{
display: inline;
padding-left: 3px;
padding-right: 7px;
border-right: 0px solid #aaa;
}
.spc-indent{
margin-left: 15px;
}
.spc-flag{
padding-left: 1em;
vertical-align: middle;
}
/* ---------------- */
/* Form styling */
/* ---------------- */
.spc-form{
padding-top: 2em;
}
.spc-form-label{
display: block;
font-size: 14px;
color: #444;
}
.spc-centering-div-container{
clear: both;
margin: 0 auto;
border: 1px;
padding: 1em;
float: left;
}
/* ---------------------- */
/* Miscellaneous elements */
/* ---------------------- */
This diff is collapsed.
body {
background-color: #f9faf5;
}
.container {
width: 80%;
}
.main {
background-color: white;
padding: 18px;
-moz-box-shadow: 0 0 3px #888;
-webkit-box-shadow: 0 0 3px #888;
box-shadow: 0 0 3px #888;
}
.underline {
border-bottom: 1.5px solid #eeeeee;
}
.header {
margin-top: 15px;
margin-bottom: 15px;
margin-left: 0px;
margin-right: 0px;
}
.spc-navbar {
margin-top: 15px;
margin-bottom: 5px;
margin-left: 0px;
margin-right: 0px;
}
.spc-navbar .nav-pills {
margin-bottom: 0px;
font-size: 12px;
}
.spc-navbar .nav-pills > li > a {
padding-top: 2.5px;
padding-bottom: 2.5px;
}
.underline {
border-bottom: 1.5px solid #eeeeee;
}
.spc-page-title h1,
.spc-page-title h2,
.spc-page-title h3,
.spc-page-title h4 {
font-weight: normal;
border-bottom: 1.5px solid #eeeeee;
}
.tags .btn {
border: none;
font-size: 9.5px;
font-weight: bold;
}
.spc-search-result-title h1,
.spc-search-result-title h2,
.spc-search-result-title h3,
.spc-search-result-title h4 {
font-weight: normal;
}
.spc-snippet-header {
margin-bottom: 5px;
}
.spc-snippet-info {
padding-top: 10px;
}
.spc-snippet-info .dl-horizontal {
margin: 5px;
}
.spc-snippet-info .dl-horizontal dt {
font-weight: normal;
}
.spc-snippet-body {
padding: 10px;
}
.spc-snippet-body .accordion-group {
border: none;
}
.spc-snippet-body .accordion-heading {
text-transform: uppercase;
font-size: 14px;
border-bottom: 1px solid #e5e5e5;
}
.spc-snippet-body .accordion-heading .accordion-toggle {
padding-top: 10px;
padding-bottom: 5px;
}
.spc-rightsidebar {
color: #555555;
}
.spc-rightsidebar .navigation {
padding: 2px 10px;
font-size: 11.9px;
}
.spc-rightsidebar .navigation .nav-title {
font-weight: bold;
text-transform: uppercase;
}
.spc-rightsidebar .navigation li {
margin: 5px;
}
.footer {
padding: 5px;
font-size: small;
}
docs/_theme/scipy/static/img/glyphicons-halflings-white.png

8.57 KiB

docs/_theme/scipy/static/img/glyphicons-halflings.png

12.5 KiB

docs/_theme/scipy/static/img/scipy_org_logo.gif

2.86 KiB

// Copyright 2014 PSF. Licensed under the PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
// File originates from the cpython source found in Doc/tools/sphinxext/static/copybutton.js
$(document).ready(function() {
/* Add a [>>>] button on the top-right corner of code samples to hide
* the >>> and ... prompts and the output and thus make the code
* copyable. */
var div = $('.highlight-python .highlight,' +
'.highlight-python3 .highlight')
var pre = div.find('pre');
// get the styles from the current theme
pre.parent().parent().css('position', 'relative');
var hide_text = 'Hide the prompts and output';
var show_text = 'Show the prompts and output';
var border_width = pre.css('border-top-width');
var border_style = pre.css('border-top-style');
var border_color = pre.css('border-top-color');
var button_styles = {
'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0',
'border-color': border_color, 'border-style': border_style,
'border-width': border_width, 'color': border_color, 'text-size': '75%',
'font-family': 'monospace', 'padding-left': '0.2em', 'padding-right': '0.2em',
'border-radius': '0 3px 0 0'
}
// create and add the button to all the code blocks that contain >>>
div.each(function(index) {
var jthis = $(this);
if (jthis.find('.gp').length > 0) {
var button = $('<span class="copybutton">&gt;&gt;&gt;</span>');
button.css(button_styles)
button.attr('title', hide_text);
jthis.prepend(button);
}
// tracebacks (.gt) contain bare text elements that need to be
// wrapped in a span to work with .nextUntil() (see later)
jthis.find('pre:has(.gt)').contents().filter(function() {
return ((this.nodeType == 3) && (this.data.trim().length > 0));
}).wrap('<span>');
});
// define the behavior of the button when it's clicked
$('.copybutton').toggle(
function() {
var button = $(this);
button.parent().find('.go, .gp, .gt').hide();
button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'hidden');
button.css('text-decoration', 'line-through');
button.attr('title', show_text);
},
function() {
var button = $(this);
button.parent().find('.go, .gp, .gt').show();
button.next('pre').find('.gt').nextUntil('.gp, .go').css('visibility', 'visible');
button.css('text-decoration', 'none');
button.attr('title', hide_text);
});
});
//
// Accordion
// --------------------------------------------------
// Parent container
.accordion {
margin-bottom: @baseLineHeight;
}
// Group == heading + body
.accordion-group {
margin-bottom: 2px;
border: 1px solid #e5e5e5;
.border-radius(@baseBorderRadius);
}
.accordion-heading {
border-bottom: 0;
}
.accordion-heading .accordion-toggle {
display: block;
padding: 8px 15px;
}
// General toggle styles
.accordion-toggle {
cursor: pointer;
}
// Inner needs the styles because you can't animate properly with any styles on the element
.accordion-inner {
padding: 9px 15px;
border-top: 1px solid #e5e5e5;
}
//
// Alerts
// --------------------------------------------------
// Base styles
// -------------------------
.alert {
padding: 8px 35px 8px 14px;
margin-bottom: @baseLineHeight;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
background-color: @warningBackground;
border: 1px solid @warningBorder;
.border-radius(@baseBorderRadius);
}
.alert,
.alert h4 {
// Specified for the h4 to prevent conflicts of changing @headingsColor
color: @warningText;
}
.alert h4 {
margin: 0;
}
// Adjust close link position
.alert .close {
position: relative;
top: -2px;
right: -21px;
line-height: @baseLineHeight;
}
// Alternate styles
// -------------------------
.alert-success {
background-color: @successBackground;
border-color: @successBorder;
color: @successText;
}
.alert-success h4 {
color: @successText;
}
.alert-danger,
.alert-error {
background-color: @errorBackground;
border-color: @errorBorder;
color: @errorText;
}
.alert-danger h4,
.alert-error h4 {
color: @errorText;
}
.alert-info {
background-color: @infoBackground;
border-color: @infoBorder;
color: @infoText;
}
.alert-info h4 {
color: @infoText;
}
// Block alerts
// -------------------------
.alert-block {
padding-top: 14px;
padding-bottom: 14px;
}
.alert-block > p,
.alert-block > ul {
margin-bottom: 0;
}
.alert-block p + p {
margin-top: 5px;
}
/*!
* Bootstrap v2.3.1
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
// Core variables and mixins
@import "variables.less"; // Modify this for custom colors, font-sizes, etc
@import "mixins.less";
// CSS Reset
@import "reset.less";
// Grid system and page structure
@import "scaffolding.less";
@import "grid.less";
@import "layouts.less";
// Base CSS
@import "type.less";
@import "code.less";
@import "forms.less";
@import "tables.less";
// Components: common
@import "sprites.less";
@import "dropdowns.less";
@import "wells.less";
@import "component-animations.less";
@import "close.less";
// Components: Buttons & Alerts
@import "buttons.less";
@import "button-groups.less";
@import "alerts.less"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
// Components: Nav
@import "navs.less";
@import "navbar.less";
@import "breadcrumbs.less";
@import "pagination.less";
@import "pager.less";
// Components: Popovers
@import "modals.less";
@import "tooltip.less";
@import "popovers.less";
// Components: Misc
@import "thumbnails.less";
@import "media.less";
@import "labels-badges.less";
@import "progress-bars.less";
@import "accordion.less";
@import "carousel.less";
@import "hero-unit.less";
// Utility classes
@import "utilities.less"; // Has to be last to override when necessary
//
// Breadcrumbs
// --------------------------------------------------
.breadcrumb {
padding: 8px 15px;
margin: 0 0 @baseLineHeight;
list-style: none;
background-color: #f5f5f5;
.border-radius(@baseBorderRadius);
> li {
display: inline-block;
.ie7-inline-block();
text-shadow: 0 1px 0 @white;
> .divider {
padding: 0 5px;
color: #ccc;
}
}
> .active {
color: @grayLight;
}
}
//
// Button groups
// --------------------------------------------------
// Make the div behave like a button
.btn-group {
position: relative;
display: inline-block;
.ie7-inline-block();
font-size: 0; // remove as part 1 of font-size inline-block hack
vertical-align: middle; // match .btn alignment given font-size hack above
white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
.ie7-restore-left-whitespace();
}
// Space out series of button groups
.btn-group + .btn-group {
margin-left: 5px;
}
// Optional: Group multiple button groups together for a toolbar
.btn-toolbar {
font-size: 0; // Hack to remove whitespace that results from using inline-block
margin-top: @baseLineHeight / 2;
margin-bottom: @baseLineHeight / 2;
> .btn + .btn,
> .btn-group + .btn,
> .btn + .btn-group {
margin-left: 5px;
}
}
// Float them, remove border radius, then re-add to first and last elements
.btn-group > .btn {
position: relative;
.border-radius(0);
}
.btn-group > .btn + .btn {
margin-left: -1px;
}
.btn-group > .btn,
.btn-group > .dropdown-menu,
.btn-group > .popover {
font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
}
// Reset fonts for other sizes
.btn-group > .btn-mini {
font-size: @fontSizeMini;
}
.btn-group > .btn-small {
font-size: @fontSizeSmall;
}
.btn-group > .btn-large {
font-size: @fontSizeLarge;
}
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group > .btn:first-child {
margin-left: 0;
.border-top-left-radius(@baseBorderRadius);
.border-bottom-left-radius(@baseBorderRadius);
}
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
.btn-group > .btn:last-child,
.btn-group > .dropdown-toggle {
.border-top-right-radius(@baseBorderRadius);
.border-bottom-right-radius(@baseBorderRadius);
}
// Reset corners for large buttons
.btn-group > .btn.large:first-child {
margin-left: 0;
.border-top-left-radius(@borderRadiusLarge);
.border-bottom-left-radius(@borderRadiusLarge);
}
.btn-group > .btn.large:last-child,
.btn-group > .large.dropdown-toggle {
.border-top-right-radius(@borderRadiusLarge);
.border-bottom-right-radius(@borderRadiusLarge);
}
// On hover/focus/active, bring the proper btn to front
.btn-group > .btn:hover,
.btn-group > .btn:focus,
.btn-group > .btn:active,
.btn-group > .btn.active {
z-index: 2;
}
// On active and open, don't show outline
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
outline: 0;
}
// Split button dropdowns
// ----------------------
// Give the line between buttons some depth
.btn-group > .btn + .dropdown-toggle {
padding-left: 8px;
padding-right: 8px;
.box-shadow(~"inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
*padding-top: 5px;
*padding-bottom: 5px;
}
.btn-group > .btn-mini + .dropdown-toggle {
padding-left: 5px;
padding-right: 5px;
*padding-top: 2px;
*padding-bottom: 2px;
}
.btn-group > .btn-small + .dropdown-toggle {
*padding-top: 5px;
*padding-bottom: 4px;
}
.btn-group > .btn-large + .dropdown-toggle {
padding-left: 12px;
padding-right: 12px;
*padding-top: 7px;
*padding-bottom: 7px;
}
.btn-group.open {
// The clickable button for toggling the menu
// Remove the gradient and set the same inset shadow as the :active state
.dropdown-toggle {
background-image: none;
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
}
// Keep the hover's background when dropdown is open
.btn.dropdown-toggle {
background-color: @btnBackgroundHighlight;
}
.btn-primary.dropdown-toggle {
background-color: @btnPrimaryBackgroundHighlight;
}
.btn-warning.dropdown-toggle {
background-color: @btnWarningBackgroundHighlight;
}
.btn-danger.dropdown-toggle {
background-color: @btnDangerBackgroundHighlight;
}
.btn-success.dropdown-toggle {
background-color: @btnSuccessBackgroundHighlight;
}
.btn-info.dropdown-toggle {
background-color: @btnInfoBackgroundHighlight;
}
.btn-inverse.dropdown-toggle {
background-color: @btnInverseBackgroundHighlight;
}
}
// Reposition the caret
.btn .caret {
margin-top: 8px;
margin-left: 0;
}
// Carets in other button sizes
.btn-large .caret {
margin-top: 6px;
}
.btn-large .caret {
border-left-width: 5px;
border-right-width: 5px;
border-top-width: 5px;
}
.btn-mini .caret,
.btn-small .caret {
margin-top: 8px;
}
// Upside down carets for .dropup
.dropup .btn-large .caret {
border-bottom-width: 5px;
}
// Account for other colors
.btn-primary,
.btn-warning,
.btn-danger,
.btn-info,
.btn-success,
.btn-inverse {
.caret {
border-top-color: @white;
border-bottom-color: @white;
}
}
// Vertical button groups
// ----------------------
.btn-group-vertical {
display: inline-block; // makes buttons only take up the width they need
.ie7-inline-block();
}
.btn-group-vertical > .btn {
display: block;
float: none;
max-width: 100%;
.border-radius(0);
}
.btn-group-vertical > .btn + .btn {
margin-left: 0;
margin-top: -1px;
}
.btn-group-vertical > .btn:first-child {
.border-radius(@baseBorderRadius @baseBorderRadius 0 0);
}
.btn-group-vertical > .btn:last-child {
.border-radius(0 0 @baseBorderRadius @baseBorderRadius);
}
.btn-group-vertical > .btn-large:first-child {
.border-radius(@borderRadiusLarge @borderRadiusLarge 0 0);
}
.btn-group-vertical > .btn-large:last-child {
.border-radius(0 0 @borderRadiusLarge @borderRadiusLarge);
}
//
// Buttons
// --------------------------------------------------
// Base styles
// --------------------------------------------------
// Core
.btn {
display: inline-block;
.ie7-inline-block();
padding: 4px 12px;
margin-bottom: 0; // For input.btn
font-size: @baseFontSize;
line-height: @baseLineHeight;
text-align: center;
vertical-align: middle;
cursor: pointer;
.buttonBackground(@btnBackground, @btnBackgroundHighlight, @grayDark, 0 1px 1px rgba(255,255,255,.75));
border: 1px solid @btnBorder;
*border: 0; // Remove the border to prevent IE7's black border on input:focus
border-bottom-color: darken(@btnBorder, 10%);
.border-radius(@baseBorderRadius);
.ie7-restore-left-whitespace(); // Give IE7 some love
.box-shadow(~"inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
// Hover/focus state
&:hover,
&:focus {
color: @grayDark;
text-decoration: none;
background-position: 0 -15px;
// transition is only when going to hover/focus, otherwise the background
// behind the gradient (there for IE<=9 fallback) gets mismatched
.transition(background-position .1s linear);
}
// Focus state for keyboard and accessibility
&:focus {
.tab-focus();
}
// Active state
&.active,
&:active {
background-image: none;
outline: 0;
.box-shadow(~"inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
}
// Disabled state
&.disabled,
&[disabled] {
cursor: default;
background-image: none;
.opacity(65);
.box-shadow(none);
}
}
// Button Sizes
// --------------------------------------------------
// Large
.btn-large {
padding: @paddingLarge;
font-size: @fontSizeLarge;
.border-radius(@borderRadiusLarge);
}
.btn-large [class^="icon-"],
.btn-large [class*=" icon-"] {
margin-top: 4px;
}
// Small
.btn-small {
padding: @paddingSmall;
font-size: @fontSizeSmall;
.border-radius(@borderRadiusSmall);
}
.btn-small [class^="icon-"],
.btn-small [class*=" icon-"] {
margin-top: 0;
}
.btn-mini [class^="icon-"],
.btn-mini [class*=" icon-"] {
margin-top: -1px;
}
// Mini
.btn-mini {
padding: @paddingMini;
font-size: @fontSizeMini;
.border-radius(@borderRadiusSmall);
}
// Block button
// -------------------------
.btn-block {
display: block;
width: 100%;
padding-left: 0;
padding-right: 0;
.box-sizing(border-box);
}
// Vertically space out multiple block buttons
.btn-block + .btn-block {
margin-top: 5px;
}
// Specificity overrides
input[type="submit"],
input[type="reset"],
input[type="button"] {
&.btn-block {
width: 100%;
}
}
// Alternate buttons
// --------------------------------------------------
// Provide *some* extra contrast for those who can get it
.btn-primary.active,
.btn-warning.active,
.btn-danger.active,
.btn-success.active,
.btn-info.active,
.btn-inverse.active {
color: rgba(255,255,255,.75);
}
// Set the backgrounds
// -------------------------
.btn-primary {
.buttonBackground(@btnPrimaryBackground, @btnPrimaryBackgroundHighlight);
}
// Warning appears are orange
.btn-warning {
.buttonBackground(@btnWarningBackground, @btnWarningBackgroundHighlight);
}
// Danger and error appear as red
.btn-danger {
.buttonBackground(@btnDangerBackground, @btnDangerBackgroundHighlight);
}
// Success appears as green
.btn-success {
.buttonBackground(@btnSuccessBackground, @btnSuccessBackgroundHighlight);
}
// Info appears as a neutral blue
.btn-info {
.buttonBackground(@btnInfoBackground, @btnInfoBackgroundHighlight);
}
// Inverse appears as dark gray
.btn-inverse {
.buttonBackground(@btnInverseBackground, @btnInverseBackgroundHighlight);
}
// Cross-browser Jank
// --------------------------------------------------
button.btn,
input[type="submit"].btn {
// Firefox 3.6 only I believe
&::-moz-focus-inner {
padding: 0;
border: 0;
}
// IE7 has some default padding on button controls
*padding-top: 3px;
*padding-bottom: 3px;
&.btn-large {
*padding-top: 7px;
*padding-bottom: 7px;
}
&.btn-small {
*padding-top: 3px;
*padding-bottom: 3px;
}
&.btn-mini {
*padding-top: 1px;
*padding-bottom: 1px;
}
}
// Link buttons
// --------------------------------------------------
// Make a button look and behave like a link
.btn-link,
.btn-link:active,
.btn-link[disabled] {
background-color: transparent;
background-image: none;
.box-shadow(none);
}
.btn-link {
border-color: transparent;
cursor: pointer;
color: @linkColor;
.border-radius(0);
}
.btn-link:hover,
.btn-link:focus {
color: @linkColorHover;
text-decoration: underline;
background-color: transparent;
}
.btn-link[disabled]:hover,
.btn-link[disabled]:focus {
color: @grayDark;
text-decoration: none;
}
//
// Carousel
// --------------------------------------------------
.carousel {
position: relative;
margin-bottom: @baseLineHeight;
line-height: 1;
}
.carousel-inner {
overflow: hidden;
width: 100%;
position: relative;
}
.carousel-inner {
> .item {
display: none;
position: relative;
.transition(.6s ease-in-out left);
// Account for jankitude on images
> img,
> a > img {
display: block;
line-height: 1;
}
}
> .active,
> .next,
> .prev { display: block; }
> .active {
left: 0;
}
> .next,
> .prev {
position: absolute;
top: 0;
width: 100%;
}
> .next {
left: 100%;
}
> .prev {
left: -100%;
}
> .next.left,
> .prev.right {
left: 0;
}
> .active.left {
left: -100%;
}
> .active.right {
left: 100%;
}
}
// Left/right controls for nav
// ---------------------------
.carousel-control {
position: absolute;
top: 40%;
left: 15px;
width: 40px;
height: 40px;
margin-top: -20px;
font-size: 60px;
font-weight: 100;
line-height: 30px;
color: @white;
text-align: center;
background: @grayDarker;
border: 3px solid @white;
.border-radius(23px);
.opacity(50);
// we can't have this transition here
// because webkit cancels the carousel
// animation if you trip this while
// in the middle of another animation
// ;_;
// .transition(opacity .2s linear);
// Reposition the right one
&.right {
left: auto;
right: 15px;
}
// Hover/focus state
&:hover,
&:focus {
color: @white;
text-decoration: none;
.opacity(90);
}
}
// Carousel indicator pips
// -----------------------------
.carousel-indicators {
position: absolute;
top: 15px;
right: 15px;
z-index: 5;
margin: 0;
list-style: none;
li {
display: block;
float: left;
width: 10px;
height: 10px;
margin-left: 5px;
text-indent: -999px;
background-color: #ccc;
background-color: rgba(255,255,255,.25);
border-radius: 5px;
}
.active {
background-color: #fff;
}
}
// Caption for text below images
// -----------------------------
.carousel-caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 15px;
background: @grayDark;
background: rgba(0,0,0,.75);
}
.carousel-caption h4,
.carousel-caption p {
color: @white;
line-height: @baseLineHeight;
}
.carousel-caption h4 {
margin: 0 0 5px;
}
.carousel-caption p {
margin-bottom: 0;
}
//
// Close icons
// --------------------------------------------------
.close {
float: right;
font-size: 20px;
font-weight: bold;
line-height: @baseLineHeight;
color: @black;
text-shadow: 0 1px 0 rgba(255,255,255,1);
.opacity(20);
&:hover,
&:focus {
color: @black;
text-decoration: none;
cursor: pointer;
.opacity(40);
}
}
// Additional properties for button version
// iOS requires the button element instead of an anchor tag.
// If you want the anchor version, it requires `href="#"`.
button.close {
padding: 0;
cursor: pointer;
background: transparent;
border: 0;
-webkit-appearance: none;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment