Skip to content

DOC: use the sphinx-panels extension for cards instead of raw html #34065

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
25 changes: 19 additions & 6 deletions doc/source/_static/css/getting_started.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,30 @@ ul.task-bullet > li > p:first-child {

/* Getting started index page */

.intro-card {
.comparison-card {
background:#FFF;
border-radius:0;
padding: 30px 10px 10px 10px;
margin: 10px 0px;
}

.intro-card .card-text {
margin:20px 0px;
/*min-height: 150px; */
.comparison-card p.card-text {
margin: 0px;
}

.intro-card .card-img-top {
.comparison-card .card-img-top {
margin: 10px;
margin-bottom: 20px;
height: 72px;
}

.comparison-card-excel .card-img-top, .comparison-card-stata .card-img-top, .comparison-card-sas .card-img-top {
height: 52px;
}

.comparison-card .card-footer {
border: none;
background-color:white;
}

.install-block {
Expand All @@ -154,10 +164,13 @@ ul.task-bullet > li > p:first-child {
.install-card .card-header {
border: none;
background-color:white;
padding: 1rem 1rem 0rem 1rem;
}

.install-card .card-header p.card-text {
color: #150458;
font-size: 1.1rem;
font-weight: bold;
padding: 1rem 1rem 0rem 1rem;
}

.install-card .card-footer {
Expand Down
43 changes: 22 additions & 21 deletions doc/source/_static/css/pandas.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,39 +5,40 @@
--pst-color-info: 23, 162, 184;
}

/* Getting started index page */
/* Main index page overview cards */

.intro-card {
background: #fff;
border-radius: 0;
padding: 30px 10px 10px 10px;
padding: 30px 10px 20px 10px;
margin: 10px 0px;
}

.intro-card .card-text {
margin: 20px 0px;
/*min-height: 150px; */
.intro-card p.card-text {
margin: 0px;
}

.custom-button {
background-color: #dcdcdc;
.intro-card .card-img-top {
margin: 10px;
height: 52px;
}

.intro-card .card-header {
border: none;
color: #484848;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 0.9rem;
border-radius: 0.5rem;
max-width: 220px;
padding: 0.5rem 0rem;
background-color:white;
color: #150458 !important;
font-size: var(--pst-font-size-h5);
font-weight: bold;
padding: 2.5rem 0rem 0.5rem 0rem;
}

.custom-button a {
color: #484848;
.intro-card .card-footer {
border: none;
background-color:white;
}

.custom-button p {
margin-top: 0;
margin-bottom: 0rem;
color: #484848;
.intro-card .card-footer p.card-text{
max-width: 220px;
margin-left: auto;
margin-right: auto;
}
5 changes: 5 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"sphinx.ext.ifconfig",
"sphinx.ext.linkcode",
"nbsphinx",
"sphinx_panels",
"contributors", # custom pandas extension
]

Expand Down Expand Up @@ -139,6 +140,10 @@
# nbsphinx do not use requirejs (breaks bootstrap)
nbsphinx_requirejs_path = ""

# sphinx-panels shouldn't add bootstrap css since the pydata-sphinx-theme
# already loads it
panels_add_bootstrap_css = False

# Add any paths that contain templates here, relative to this directory.
templates_path = ["../_templates"]

Expand Down
Loading