From 73cf50798769c625bc9ca327937836a4637fd682 Mon Sep 17 00:00:00 2001 From: "Bruno P. Kinoshita" Date: Mon, 20 Jun 2022 22:26:03 +1200 Subject: [PATCH] Upgrade from Bootstrap 3 to Bootstrap 5 (#543) --- schema_salad/makedoc.py | 56 ++++++++++++++++++++++++++++++----------- 1 file changed, 41 insertions(+), 15 deletions(-) diff --git a/schema_salad/makedoc.py b/schema_salad/makedoc.py index f7eb749e..e2416e27 100644 --- a/schema_salad/makedoc.py +++ b/schema_salad/makedoc.py @@ -519,10 +519,10 @@ def avrold_doc( if brandstyle is None: bootstrap_url = ( - "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" + "https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" ) bootstrap_integrity = ( - "sha384-604wwakM23pEysLJAhja8Lm42IIwYrJ0dEAqzFsj9pJ/P5buiujjywArgPCi8eoz" + "sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" ) brandstyle_template = ( '' @@ -564,15 +564,43 @@ def avrold_doc( padding-top: 61px; margin-top: -61px; } - body { - padding-top: 61px; - } .tocnav ol { list-style: none } pre { - margin-left: 2em; - margin-right: 2em; + margin: 0 2em 10px 2em; + padding: 9.5px; + line-height: 1.42857143; + color: #333; + word-break: break-all; + word-wrap: break-word; + background-color: #f5f5f5; + border: 1px solid #ccc; + border-radius: 4px; + } + pre code { + padding: 0; + font-size: inherit; + color: inherit; + white-space: pre-wrap; + background-color: transparent; + border-radius: 0; + } + code { + background-color: #f9f2f4; + border-radius: 4px; + padding: 2px 4px; + color: #c7254e; + } + blockquote { + padding: 10px 20px 1px 20px; + border-left: 5px solid #eee; + } + a { + text-decoration: none; + } + a code { + color: #c7254e; } .section a { visibility: hidden; @@ -629,10 +657,9 @@ def avrold_doc( navbar_extraclass = "navbar-inverse" if brandinverse else "" outdoc.write( """ -