Skip to content

Commit

Permalink
Update image links
Browse files Browse the repository at this point in the history
  • Loading branch information
segsell committed May 8, 2024
1 parent df8d2f9 commit fb2b1e3
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 107 deletions.
58 changes: 21 additions & 37 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,52 +1,36 @@
/* Override some aspects of the pydata-sphinx-theme */

:root {
/* Use softer blue from bootstrap's default info color */
--pst-color-info: 23, 162, 184;
}

table {
width: auto; /* Override fit-content which breaks Styler user guide ipynb */
}

/* Main index page overview cards */

.intro-card {
padding: 30px 10px 20px 10px;
/* Remove execution count for notebook cells. */
div.prompt {
display: none;
}

.intro-card .sd-card-img-top {
margin: 10px;
height: 52px;
background: none !important;
/* Classes for the index page. */
.index-card-image {
padding-top: 1rem;
height: 68px;
text-align: center;
}

.intro-card .sd-card-title {
color: var(--pst-color-primary);
font-size: var(--pst-font-size-h5);
padding: 1rem 0rem 0.5rem 0rem;
.index-card-link {
color: var(--sd-color-card-text);
font-weight: bold;
}

.intro-card .sd-card-footer {
border: none !important;
pre {
padding-left: 20px
}

.intro-card .sd-card-footer p.sd-card-text {
max-width: 220px;
margin-left: auto;
margin-right: auto;
li pre {
padding-left: 20px
}

.intro-card .sd-btn-secondary {
background-color: #6c757d !important;
border-color: #6c757d !important;
.highlight {
background: #f5f5f5
}

.intro-card .sd-btn-secondary:hover {
background-color: #5a6268 !important;
border-color: #545b62 !important;
.highlight button.copybtn{
background-color: #f5f5f5;
}

.card, .card img {
background-color: var(--pst-color-background);
.highlight button.copybtn:hover {
background-color: #f5f5f5;
}
52 changes: 52 additions & 0 deletions docs/source/_static/css/custom_intermediate.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/* Override some aspects of the pydata-sphinx-theme */

:root {
/* Use softer blue from bootstrap's default info color */
--pst-color-info: 23, 162, 184;
}

table {
width: auto; /* Override fit-content which breaks Styler user guide ipynb */
}

/* Main index page overview cards */

.intro-card {
padding: 30px 10px 20px 10px;
}

.intro-card .sd-card-img-top {
margin: 10px;
height: 52px;
background: none !important;
}

.intro-card .sd-card-title {
color: var(--pst-color-primary);
font-size: var(--pst-font-size-h5);
padding: 1rem 0rem 0.5rem 0rem;
}

.intro-card .sd-card-footer {
border: none !important;
}

.intro-card .sd-card-footer p.sd-card-text {
max-width: 220px;
margin-left: auto;
margin-right: auto;
}

.intro-card .sd-btn-secondary {
background-color: #6c757d !important;
border-color: #6c757d !important;
}

.intro-card .sd-btn-secondary:hover {
background-color: #5a6268 !important;
border-color: #545b62 !important;
}

.card, .card img {
background-color: var(--pst-color-background);
}
36 changes: 0 additions & 36 deletions docs/source/_static/css/custom_tobi.css

This file was deleted.

39 changes: 5 additions & 34 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@

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

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
Expand Down Expand Up @@ -165,41 +164,15 @@
# Add any paths that contain custom static files (such as style sheets) here, relative
# to this directory. They are copied after the built-in static files, so a file named
# "default.css" will overwrite the built-in "default.css".
html_css_files = ["css/termynal.css", "css/termynal_custom.css", "css/custom_tobi.css"]
html_css_files = ["css/termynal.css", "css/termynal_custom.css", "css/custom.css"]

html_js_files = ["js/termynal.js", "js/custom.js"]
# html_css_files = ["css/custom.css"]

# html_theme_options = {
# "github_url": "https://github.com/OpenSourceEconomics/estimagic",
# "logo": {
# "text": "estimagic",
# "image_dark": "_static/images/estimagic_icon_dark_mode.svg",
# },
# }


# # Add any paths that contain custom static files (such as style sheets) here,
# # relative to this directory. They are copied after the builtin static files,
# # so a file named "default.css" will overwrite the builtin "default.css".
# # html_static_path = ["_static"]

# # Custom sidebar templates, must be a dictionary that maps document names
# # to template names.
# #
# # This is required for the alabaster theme
# # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
# html_sidebars = {
# "**": [
# "relations.html", # needs 'show_related': True theme option to display
# "searchbox.html",
# ]
# }


# Add any paths that contain custom static files (such as style sheets) here, relative
# to this directory. They are copied after the builtin static files, so a file named
# "default.css" will overwrite the builtin "default.css".
# html_static_path = ["_static"]
html_static_path = ["_static"]

# If false, no module index is generated.
html_domain_indices = True
Expand All @@ -224,8 +197,6 @@
html_theme_options = {
"sidebar_hide_name": True,
"navigation_with_keys": True,
# "light_logo": "_static/images/estimagic_icon.svg",
# "dark_logo": "_static/images/estimagic_icon_dark_mode.svg",
"light_logo": "_static/images/estimagic_logo",
"dark_logo": "_static/images/estimagic_logo_dark_mode",
"light_logo": "images/estimagic_logo.svg",
"dark_logo": "images/estimagic_logo_dark_mode.svg",
}

0 comments on commit fb2b1e3

Please sign in to comment.