Files
cibuildwheel/docs/extra.css
T

222 lines
4.0 KiB
CSS
Raw Normal View History

2019-10-06 20:36:21 +01:00
/* Global styles */
2021-06-21 12:26:46 -04:00
body {
overflow-wrap: break-word;
}
2019-10-06 20:36:21 +01:00
p {
margin-bottom: 12px;
2021-04-23 11:05:27 +01:00
line-height: 26px;
2019-10-06 20:36:21 +01:00
}
code {
font-size: 85%;
background-color: rgba(27,31,35,.05);
border-radius: 3px;
2021-04-23 11:05:27 +01:00
padding: .15em .4em;
2019-10-06 20:36:21 +01:00
color: inherit;
border: none;
margin: 0 1px;
}
code, pre, tt {
font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
}
2021-06-21 12:26:46 -04:00
pre code, pre code.hljs {
padding: 1em;
background-color: #f6f8fa;
2019-10-06 20:36:21 +01:00
}
2019-11-03 18:35:06 +00:00
h1, h2, h3, h4, h5, h6 {
margin-top: 2em;
2019-11-09 19:38:59 +00:00
border-bottom: 1px solid #e1e4e5;
margin-bottom: 0.8em;
padding-bottom: 0.2em;
}
.rst-content blockquote {
margin-bottom: 14px;
2019-11-03 18:35:06 +00:00
}
2019-11-10 13:22:35 +00:00
.rst-content th {
white-space: normal;
}
.rst-content .admonition {
line-height: inherit;
}
.admonition code {
border: none;
}
2019-10-06 20:36:21 +01:00
/*
Code block filename style
Use by putting a quote before a code block e.g.
> filename.txt
```
code here
```
JS adds the relevant classes to make the following selectors work.
*/
.rst-content .code-block-filename {
margin: 0;
padding: 2px 1em;
background-color: #eff1f3;
font-size: 85%;
font-weight: bold;
2020-08-14 16:12:24 -04:00
2019-10-06 20:36:21 +01:00
border-top-left-radius: 3px;
border-top-right-radius: 3px;
border-bottom: 1px solid #e6e8e9;
color: #444;
}
.rst-content .code-block-filename * {
font-size: inherit;
}
.rst-content .code-block-filename :last-child {
margin-bottom: 0;
}
.code-block-filename + pre {
margin-top: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
.code-block-filename + pre code {
padding-top: 0.9em;
}
2021-01-24 16:12:30 +00:00
.toctree-l3 {
border-left: 10px solid transparent;
}
2019-10-06 20:36:21 +01:00
/* import font awesome 4 for icons */
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css);
2021-02-12 11:08:43 -05:00
/* Tabs */
/* Style the tab */
.tabs {
margin-bottom: 1em;
-webkit-font-smoothing: antialiased;
}
.tabs-header {
background-color: white;
display: flex;
justify-content: flex-start;
2021-06-21 12:26:46 -04:00
overflow-x: auto;
overflow-y: hidden;
position: relative;
}
.tabs-header::before {
position: absolute;
content: "";
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: #ccc;
}
.tabs-header > * {
position: relative;
2021-02-12 11:08:43 -05:00
}
/* Style the buttons that are used to open the tab content */
.tabs-header button {
background-color: transparent;
border: none;
outline: none;
cursor: pointer;
color: inherit;
font: inherit;
font-size: 0.9em;
font-weight: 600;
padding: 8px 16px;
2021-06-21 12:26:46 -04:00
border-bottom: 2px solid #ccc;
2021-02-12 11:08:43 -05:00
}
.tabs-header button:focus-visible {
/* preserve an outline for accesibility purposes */
outline: 1px solid currentColor;
2021-06-21 12:26:46 -04:00
outline-offset: -1px;
2021-02-12 11:08:43 -05:00
}
/* Change background color of buttons on hover */
.tabs-header button:hover {
background-color: rgba(0, 0, 0, 0.02);
}
/* Create an active/current tablink class */
.tabs-header button.active {
color: #4086bd;
border-bottom-color: currentColor;
}
/* Style the tab content */
.tabs-content {
background-color: #f1f6fa;
padding: 1px 1em;
padding-top: 0.8em;
2021-06-21 12:26:46 -04:00
/* don't collapse inner margins */
overflow-y: hidden;
}
/* Examples tabs styling */
.tabs.examples .tabs-header {
justify-content: flex-end;
background-color: transparent;
border-bottom-style: none;
padding: 0;
}
.tabs.examples .tabs-header::before {
height: 0;
}
.tabs.examples .tabs-header button {
padding: 6px 12px;
border-bottom: none;
color: rgba(0, 0, 0, 0.3);
font-size: 0.8em;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
}
.tabs-header button:hover {
background-color: unset;
}
.tabs.examples .tabs-header button.active {
border-bottom-style: none;
background: #f6f8fa;
color: inherit;
}
.tabs.examples .tabs-content {
padding: 0;
background-color: transparent;
background-color: #f6f8fa;
}
.tabs.examples .tabs-content .tab > * {
padding-left: 0.8em;
padding-right: 0.8em;
}
.tabs.examples .tabs-content .tab > pre {
padding-left: 0;
padding-right: 0;
margin-bottom: 0.5em;
}
.tabs.examples pre:first-child {
margin-top: 0;
2021-02-12 11:08:43 -05:00
}