Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ docs/_build
docs/_static/ultraplotrc
docs/_static/rctable.rst
docs/_static/*
!docs/_static/why_plots/
*.html
docs/gallery/
docs/sg_execution_times.rst
Expand Down
55 changes: 55 additions & 0 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -1250,3 +1250,58 @@ body.wy-body-for-nav
max-width: 100%;
height: auto;
}

/* Why UltraPlot page: before/after comparison cards */
.uplt-why {
border: 1px solid var(--uplt-color-border-muted);
border-radius: 0.8rem;
background: linear-gradient(
180deg,
var(--uplt-color-white) 0%,
var(--uplt-color-sidebar-bg) 100%
);
box-shadow: 0 4px 14px var(--uplt-color-shadow);
overflow: hidden;
}

.uplt-why-mpl {
border-top: 4px solid #b45309;
}

.uplt-why-uplt {
border-top: 4px solid #178f84;
}

.uplt-why img {
width: 100%;
height: auto;
border-radius: 0.45rem;
background: var(--uplt-color-panel-bg);
}

.uplt-why .sd-card-body > p:first-child {
font-weight: 700;
font-size: 0.9rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}

.uplt-why-mpl .sd-card-body > p:first-child strong {
color: #b45309;
}

.uplt-why-uplt .sd-card-body > p:first-child strong {
color: #178f84;
}

.uplt-why .sd-card-body > p:last-child {
margin-top: auto;
padding-top: 0.35rem;
color: var(--uplt-color-text-secondary);
}

html.dark .uplt-why,
html.dark-theme .uplt-why,
[data-color-mode="dark"] .uplt-why {
background: linear-gradient(180deg, #252525 0%, #1f1f1f 100%);
}
Loading