Skip to content

Commit 2feeeeb

Browse files
gustavocidornelaswhoseoyster
authored andcommitted
added css styling file similar to pandas and reduced logo size
1 parent fa89472 commit 2feeeeb

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

docs/source/_static/css/style.css

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/* Override some aspects of the pydata-sphinx-theme */
2+
3+
:root {
4+
/* Use softer blue from bootstrap's default info color */
5+
--pst-color-info: 23, 162, 184;
6+
}
7+
8+
/* Main index page overview cards */
9+
10+
.intro-card {
11+
background: #fff;
12+
border-radius: 0;
13+
padding: 30px 10px 20px 10px;
14+
margin: 10px 0px;
15+
}
16+
17+
.intro-card p.card-text {
18+
margin: 0px;
19+
}
20+
21+
.intro-card .card-img-top {
22+
margin: 10px;
23+
height: 52px;
24+
}
25+
26+
.intro-card .card-header {
27+
border: none;
28+
background-color:white;
29+
color: #150458 !important;
30+
font-size: var(--pst-font-size-h5);
31+
font-weight: bold;
32+
padding: 2.5rem 0rem 0.5rem 0rem;
33+
}
34+
35+
.intro-card .card-footer {
36+
border: none;
37+
background-color:white;
38+
}
39+
40+
.intro-card .card-footer p.card-text{
41+
max-width: 220px;
42+
margin-left: auto;
43+
margin-right: auto;
44+
}
45+
46+
.navbar-brand img {
47+
max-width: 80%;
48+
height: 100%;
49+
width: auto;
50+
}

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
# relative to this directory. They are copied after the builtin static files,
117117
# so a file named "default.css" will overwrite the builtin "default.css".
118118
html_static_path = ["_static"]
119+
html_css_files = ["css/style.css"]
119120

120121
html_css_files = [
121122
"css/logo.css",

0 commit comments

Comments
 (0)