From c5a999682bf94cfd08cc64b49efef38371cbdb2e Mon Sep 17 00:00:00 2001 From: Ross Barnowski Date: Sat, 14 May 2022 16:56:53 -0700 Subject: DOC: Proposal - make the doc landing page cards more similar to scipy/pandas (#21491) * DOC: Add panel elements to index matching scipy/pandas. * DOC: Update card styling in css to match scipy/pandas. * DOC: Add release notes to nav bar. * DOC: replace css in layout with html_css_files conf val. * DOC: Fix page layout. Co-authored-by: Stefan van der Walt Co-authored-by: Stefan van der Walt --- doc/source/_static/numpy.css | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) (limited to 'doc/source/_static/numpy.css') diff --git a/doc/source/_static/numpy.css b/doc/source/_static/numpy.css index 09f6db3e2..fc296e8ab 100644 --- a/doc/source/_static/numpy.css +++ b/doc/source/_static/numpy.css @@ -32,13 +32,17 @@ h3 { letter-spacing: -.03em; } +/* Main page overview cards */ + .intro-card { - padding: 20px 10px 20px 10px; - margin: 10px; + background: #fff; + border-radius: 0; + padding: 30px 10px 20px 10px; + margin: 10px 0px; } .intro-card p.card-text { - margin: 0; + margin: 0px; } .intro-card .card-img-top { @@ -49,6 +53,21 @@ h3 { } .intro-card .card-header { - margin-top: 20px; + border: none; + background-color: white; + color: #150458 !important; font-size: var(--pst-font-size-h5); + font-weight: bold; + padding: 2.5rem 0rem 0.5rem 0rem; +} + +.intro-card .card-footer { + border: none; + background-color: white; +} + +.intro-card .card-footer p.card-text { + max-width: 220px; + margin-left: auto; + margin-right: auto; } -- cgit v1.2.1