forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme_overrides.css
More file actions
159 lines (130 loc) · 3.79 KB
/
Copy paththeme_overrides.css
File metadata and controls
159 lines (130 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/* Customizing with theme CSS variables */
:root {
--pst-color-active-navigation: 215, 70, 51;
--pst-color-link-hover: 215, 70, 51;
--pst-color-headerlink: 215, 70, 51;
/* Use normal text color (like h3, ..) instead of primary color */
--pst-color-h1: var(--color-text-base);
--pst-color-h2: var(--color-text-base);
/* Use softer blue from bootstrap's default info color */
--pst-color-info: 23, 162, 184;
--pst-header-height: 0px;
}
code {
color: rgb(215, 70, 51);
}
.footer {
text-align: center;
}
/* Ensure the logo is properly displayed */
.navbar-brand {
height: auto;
width: auto;
}
a.navbar-brand img {
height: auto;
width: auto;
max-height: 15vh;
max-width: 100%;
}
/* Contibuting landing page overview cards */
.contrib-card {
background: #fff;
border-radius: 0;
padding: 30px 10px 20px 10px;
margin: 10px 0px;
}
.contrib-card p.card-text {
margin: 0px;
}
.contrib-card .sd-card-img-top {
margin: 2px;
height: 75px;
}
.contrib-card .sd-card-title {
/* color: rgb(var(--pst-color-h1)) !important; */
font-size: var(--pst-font-size-h3);
/* font-weight: bold; */
padding: 1rem 0rem 0.5rem 0rem;
}
.contrib-card .sd-card-footer {
border: none;
}
.contib-card .sd-card-footer p.sd-card-text{
max-width: 220px;
margin-left: auto;
margin-right: auto;
}
/* This is the bootstrap CSS style for "table-striped". Since the theme does
not yet provide an easy way to configure this globaly, it easier to simply
include this snippet here than updating each table in all rst files to
add ":class: table-striped" */
.table tbody tr:nth-of-type(odd) {
background-color: rgba(0, 0, 0, 0.05);
}
/* Iprove the vertical spacing in the C++ API docs
(ideally this should be upstreamed to the pydata-sphinx-theme */
dl.cpp dd p {
margin-bottom:.4rem;
}
dl.cpp.enumerator {
margin-bottom: 0.2rem;
}
p.breathe-sectiondef-title {
margin-top: 1rem;
}
/* Limit the max height of the sidebar navigation section. Because in our
custimized template, there is more content above the navigation, i.e.
larger logo: if we don't decrease the max-height, it will overlap with
the footer.
Details: min(15vh, 110px) for the logo size, 8rem for search box etc*/
@media (min-width:720px) {
@supports (position:-webkit-sticky) or (position:sticky) {
.bd-links {
max-height: calc(100vh - min(15vh, 110px) - 8rem)
}
}
}
/* Styling to get the version dropdown and search box side-by-side on wide screens */
#version-search-wrapper {
width: inherit;
display: flex;
flex-wrap: wrap;
justify-content: left;
align-items: center;
}
#version-button {
padding-left: 0.5rem;
padding-right: 1rem;
}
#search-box {
flex: 1 0 12em;
}
/* Fix table text wrapping in RTD theme,
* see https://rackerlabs.github.io/docs-rackspace/tools/rtd-tables.html
*/
@media screen {
table.docutils td {
/* !important prevents the common CSS stylesheets from overriding
this as on RTD they are loaded after this stylesheet */
white-space: normal !important;
}
}