Skip to content
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

Dark mode logo #479

Merged
merged 29 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from 27 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
7b23218
Add dark mode logo
segsell Feb 27, 2024
97be925
Modify conf file
segsell Feb 27, 2024
d790467
Switch logos in index.md
segsell Feb 27, 2024
ccd0ecb
Remove commented out code
segsell Feb 27, 2024
a9a2480
Merge branch 'main' into dark_mode_logo
timmens Mar 1, 2024
ccc71c4
Merge branch 'main' into dark_mode_logo
timmens Mar 6, 2024
48e4226
Merge branch 'main' into dark_mode_logo
segsell Mar 19, 2024
af270ac
Merge branch 'main' into dark_mode_logo
timmens Mar 27, 2024
f56e6d1
Merge branch 'main' into dark_mode_logo
segsell Mar 28, 2024
1c1af51
Boxes in dark mode
segsell Apr 5, 2024
79b135f
Increase size of symbols
segsell Apr 5, 2024
5d7d2f6
Add icons
segsell Apr 5, 2024
083d30e
Fix dark mode logo on index page
segsell Apr 5, 2024
f09001c
Merge branch 'main' into dark_mode_logo
segsell Apr 26, 2024
ae5338f
Switch to furo theme
segsell Apr 30, 2024
df0d640
Add sphinx-design
segsell May 8, 2024
21a25a7
Fix image paths
segsell May 8, 2024
7ce9725
Put title at the top in jupyter notebooks
segsell May 8, 2024
487c25c
Remove commented out code
segsell May 8, 2024
df8d2f9
[pre-commit.ci] pre-commit autoupdate (#497)
pre-commit-ci[bot] May 8, 2024
fb2b1e3
Update image links
segsell May 8, 2024
7970fdd
Remove temporary css files
segsell May 8, 2024
b5c9d5f
Turn tabs into dropdown boxes
segsell May 8, 2024
06e8511
Add blue icons #007bff
segsell May 8, 2024
55c1719
Change default header colors
segsell May 13, 2024
087a6b5
Change color of standard icons
segsell May 15, 2024
1e6161a
Modify custom icons
segsell May 15, 2024
368afeb
Address comments
segsell May 16, 2024
8535245
Update docs environment
segsell May 16, 2024
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
always_run: true
require_serial: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args:
Expand Down Expand Up @@ -57,7 +57,7 @@ repos:
- id: yamllint
exclude: tests/optimization/fixtures
- repo: https://github.com/psf/black
rev: 24.3.0
rev: 24.4.2
hooks:
- id: black
language_version: python3.10
Expand All @@ -79,7 +79,7 @@ repos:
- --blank
exclude: src/estimagic/optimization/algo_options.py
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.5
rev: v0.4.3
hooks:
- id: ruff
- repo: https://github.com/nbQA-dev/nbQA
Expand Down
2 changes: 2 additions & 0 deletions docs/rtd_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ dependencies:
- sphinxcontrib-bibtex
- sphinx-copybutton
- sphinx-panels
- sphinx-design
- ipython
- ipython_genutils
- myst-nb
- pydata-sphinx-theme
segsell marked this conversation as resolved.
Show resolved Hide resolved
- furo
- pybaum
- matplotlib
- seaborn
Expand Down
219 changes: 18 additions & 201 deletions docs/source/_static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,218 +3,35 @@ div.prompt {
display: none;
}

/* Getting started index page */


.intro-card .card-text {
margin: 20px 0px;
}


.card-title {
margin-top: 0.25rem;
}

div#index-container {
padding-bottom: 20px;
}

a#index-link {
color: #333;
text-decoration: none;
}

/* reference to user guide */
.gs-torefguide {
align-items: center;
font-size: 0.9rem;
}

.gs-torefguide .badge {
background-color: #130654;
margin: 10px 10px 10px 0px;
padding: 5px;
}

.gs-torefguide a {
margin-left: 5px;
color: #130654;
border-bottom: 1px solid #FFCA00f3;
box-shadow: 0px -10px 0px #FFCA00f3 inset;
}

.gs-torefguide p {
margin-top: 1rem;
}

.gs-torefguide a:hover {
margin-left: 5px;
color: grey;
text-decoration: none;
border-bottom: 1px solid #b2ff80f3;
box-shadow: 0px -10px 0px #b2ff80f3 inset;
}

/* selecting constraints guide */
.intro-card {
background: #fff;
border-radius: 0;
padding: 20px 5px 5px 0px;
margin: 10px 0px;
max-height: 85%;
}



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

.intro-card .card-img-top {
margin: 0px;
}

.install-block {
padding-bottom: 30px;
}

.install-card .card-header {
border: none;
background-color: white;
color: #150458;
font-size: 1.1rem;
font-weight: bold;
padding: 1rem 1rem 0rem 1rem;
}

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

.install-card pre {
margin: 0 1em 1em 1em;
/* Classes for the index page. */
.index-card-image {
padding-top: 1rem;
height: 68px;
text-align: center;
}

.custom-button {
background-color: #DCDCDC;
border: none;
color: #484848;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 0.9rem;
border-radius: 0.5rem;
max-width: 120px;
padding: 0.5rem 0rem;
}

.custom-button a {
color: #484848;
}

.custom-button p {
margin-top: 0;
margin-bottom: 0rem;
color: #484848;
}

/* selecting constraints guide collapsed cards */

.tutorial-accordion {
margin-top: 20px;
margin-bottom: 20px;
}

.tutorial-card .card-header.card-link .btn {
margin-right: 12px;
}

.tutorial-card .card-header.card-link .btn:after {
content: "-";
}

.tutorial-card .card-header.card-link.collapsed .btn:after {
content: "+";
}

.tutorial-card-header-1 {
justify-content: space-between;
align-items: center;
}

.tutorial-card-header-2 {
justify-content: flex-start;
align-items: center;
font-size: 1.3rem;
}

.tutorial-card .card-header {
cursor: pointer;
background-color: white;
}

.tutorial-card .card-body {
background-color: #F0F0F0;
}

.tutorial-card .badge:hover {
background-color: grey;
}

/* tables in selecting constraints guide */

table.rows th {
background-color: #F0F0F0;
border-style: solid solid solid solid;
border-width: 0px 0px 0px 0px;
border-color: #F0F0F0;
text-align: center;
}

table.rows tr:nth-child(even) {
background-color: #F0F0F0;
text-align: right;
}

table.rows tr:nth-child(odd) {
background-color: #FFFFFF;
text-align: right;
}


/* reduce size of dropdown boxes and change color */

/* Title text attributes */
details.dropdown .summary-title {
font-weight: bold !important;
font-family: var(--pst-font-family-monospace) !important;
.index-card-link {
color: var(--sd-color-card-text);
font-weight: bold;
}

/* Space of box around the text */
details.dropdown summary {
padding: 0.4rem !important;
pre {
padding-left: 20px
}

/* Vertical spacing of arrow */
details.dropdown .summary-up,
details.dropdown .summary-down {
top: 0.5em !important;
li pre {
padding-left: 20px
}

/* Vertical space between dropdown boxes */
.mb-3,
.my-3 {
margin-bottom: 0.2rem !important;
.highlight {
background: #f5f5f5
}

/* Background color of dropdown boxes */
.card {
background-color: white !important;
.highlight button.copybtn{
background-color: #f5f5f5;
}

/* Color of inline code */
:root {
--pst-color-inline-code: 160, 4, 4 !important;
.highlight button.copybtn:hover {
background-color: #f5f5f5;
}
110 changes: 110 additions & 0 deletions docs/source/_static/css/termynal.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
/**
* termynal.js
*
* @author Ines Montani <[email protected]>
* @version 0.0.1
* @license MIT
*/

:root {
--color-bg: #0c0c0c;
--color-text: #f2f2f2;
--color-text-subtle: #a2a2a2;
}

[data-termynal] {
width: 750px;
max-width: 100%;
background: var(--color-bg);
color: var(--color-text);
/* font-size: 18px; */
font-size: 15px;
/* font-family: 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace; */
font-family: 'Roboto Mono', 'Fira Mono', Consolas, Menlo, Monaco, 'Courier New', Courier, monospace;
border-radius: 4px;
padding: 75px 45px 35px;
position: relative;
-webkit-box-sizing: border-box;
box-sizing: border-box;
line-height: 1.2;
}

[data-termynal]:before {
content: '';
position: absolute;
top: 15px;
left: 15px;
display: inline-block;
width: 15px;
height: 15px;
border-radius: 50%;
/* A little hack to display the window buttons in one pseudo element. */
background: #d9515d;
-webkit-box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;
box-shadow: 25px 0 0 #f4c025, 50px 0 0 #3ec930;
}

[data-termynal]:after {
content: 'bash';
position: absolute;
color: var(--color-text-subtle);
top: 5px;
left: 0;
width: 100%;
text-align: center;
}

a[data-terminal-control] {
text-align: right;
display: block;
color: #aebbff;
}

[data-ty] {
display: block;
line-height: 2;
}

[data-ty]:before {
/* Set up defaults and ensure empty lines are displayed. */
content: '';
display: inline-block;
vertical-align: middle;
}

[data-ty="input"]:before,
[data-ty-prompt]:before {
margin-right: 0.75em;
color: var(--color-text-subtle);
}

[data-ty="input"]:before {
content: '$';
}

[data-ty][data-ty-prompt]:before {
content: attr(data-ty-prompt);
}

[data-ty-cursor]:after {
content: attr(data-ty-cursor);
font-family: monospace;
margin-left: 0.5em;
-webkit-animation: blink 1s infinite;
animation: blink 1s infinite;
}


/* Cursor animation */

@-webkit-keyframes blink {
50% {
opacity: 0;
}
}

@keyframes blink {
50% {
opacity: 0;
}
}
Loading
Loading