Skip to content

DOC: Update CSS alignment for main documentation page #40650

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion doc/source/_static/css/getting_started.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ ul.task-bullet > li > p:first-child {
/* Getting started index page */

.intro-card {
display: flex;
flex-direction: column;
background:#FFF;
border-radius:0;
padding: 30px 10px 10px 10px;
Expand Down Expand Up @@ -179,7 +181,8 @@ ul.task-bullet > li > p:first-child {
font-size: 0.9rem;
border-radius: 0.5rem;
max-width: 120px;
padding: 0.5rem 0rem;
align-self: flex-end;
margin-bottom: 30px;
}

.custom-button a {
Expand Down
8 changes: 4 additions & 4 deletions doc/source/index.rst.template
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ programming language.
<h5 class="card-title">Getting started</h5>
<p class="card-text">New to <em>pandas</em>? Check out the getting started guides. They
contain an introduction to <em>pandas'</em> main concepts and links to additional tutorials.</p>
</div>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just moving the button out one div so it can sit inside the intro-card element and align with respect to that

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and same here..


.. container:: custom-button

Expand All @@ -42,7 +43,6 @@ programming language.
.. raw:: html

</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 d-flex">
<div class="card text-center intro-card shadow">
Expand All @@ -51,6 +51,7 @@ programming language.
<h5 class="card-title">User guide</h5>
<p class="card-text">The user guide provides in-depth information on the
key concepts of pandas with useful background information and explanation.</p>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this div and img not originally indented as children of the outer div, same as below.


.. container:: custom-button

Expand All @@ -59,7 +60,6 @@ programming language.
.. raw:: html

</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 d-flex">
<div class="card text-center intro-card shadow">
Expand All @@ -69,6 +69,7 @@ programming language.
<p class="card-text">The reference guide contains a detailed description of
the pandas API. The reference describes how the methods work and which parameters can
be used. It assumes that you have an understanding of the key concepts.</p>
</div>

.. container:: custom-button

Expand All @@ -77,7 +78,6 @@ programming language.
.. raw:: html

</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12 d-flex">
<div class="card text-center intro-card shadow">
Expand All @@ -87,6 +87,7 @@ programming language.
<p class="card-text">Saw a typo in the documentation? Want to improve
existing functionalities? The contributing guidelines will guide
you through the process of improving pandas.</p>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this div and img not originally indented as children of the outer div

Copy link
Member Author

@dsaxton dsaxton Mar 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♂️ (hard to see but that's a man shrugging 😄)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeh definitely a shrug!


.. container:: custom-button

Expand All @@ -95,7 +96,6 @@ programming language.
.. raw:: html

</div>
</div>
</div>
</div>
</div>
Expand Down