Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC: Switch to HTML5 and cleanup CSS #23284

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

Merged
merged 2 commits into from
Jun 18, 2022
Merged
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
134 changes: 0 additions & 134 deletions doc/_static/mpl.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,144 +12,10 @@ a:hover {
color: #CA7900;
}

table.highlighttable {
margin-left: 0.5em;
}

table.highlighttable td {
padding: 0 0.5em 0 0.5em;
}

.simple li>p {
margin: 0;
}

div.responsive_screenshots {
/* Horizontally centered */
display: block;
margin: auto;

/* Do not go beyond 1:1 scale (and ensure a 1x4 tight layout) */
max-width: 640px; /* at most 4 x 1:1 subfig width */
max-height: 120px; /* at most 1 x 1:1 subfig height */
}

/* To avoid subfigure parts outside of the responsive_screenshots */
/* element (see <https://stackoverflow.com/q/2062258/>) */
span.clear_screenshots { clear: left; display: block; }

div.responsive_subfig{
float: left;
width: 25%; /* we want 4 subfigs in a row */

/* Include content, padding and border in width. This should */
/* avoid having to use tricks like "width: 24.9999%" */
box-sizing: border-box;
}

div.responsive_subfig img {
/* Horizontally centered */
display: block;
margin: auto;

/* Possible downscaling */
max-width: 162px; /* at most 1 x 1:1 subfig width */
max-height: 139px; /* at most 1 x 1:1 subfig height */

width: 100%;
}

@media only screen and (max-width: 930px){
/* The value of 1000px was handcrafted to provide a more or less */
/* smooth transition between the 1x4 and the 2x2 layouts. It is */
/* NB: it is slightly below 1024px: so one should still have a */
/* row in a 1024x768 window */

div.responsive_screenshots {
/* Do not go beyond 1:1 scale (and ensure a 2x2 tight layout) */
max-width: 324px; /* at most 2 x 1:1 subfig width */
max-height: 278px; /* at most 2 x 1:1 subfig height */
}

div.responsive_subfig {
width: 50%; /* we want 2 subfigs in a row */
}
}

/* bullet boxes on main page */
div.bullet-box-container {
display: flex;
flex-wrap: wrap;
margin: 1em 0;
}

div.bullet-box {
flex-grow: 1;
width: 28%;
margin: 0.4em;
padding: 0 1em;
background: #eff9ff;
}

div.bullet-box p:first-of-type {
font-size: 1.4em;
text-align: center;
}

div.bullet-box ul {
padding-left: 1.2em;
}

div.bullet-box li {
padding-left: 0.3em;
margin-bottom: 0.3em;
}

@media only screen and (max-width: 930px){
div.bullet-box {
flex: 0 0 90%;
}
}

/* community items on main page */
div.box {
display: flex;
flex-flow: row wrap;
}

div.box-item {
flex: 0 0 45%;
padding: 4px;
margin: 8px 12px;
}

div.box-item img {
float: left;
width: 30px;
height: 30px;
fill: #888;

}
div.box-item p {
margin: 0 0 0 50px;
}

div.box-item ul {
margin: 0 0 0 50px;
padding-left: 20px;
}

hr.box-sep {
margin: 1em 2em;
}

@media only screen and (max-width: 930px){
div.box-item {
flex: 0 0 90%;
}
}


/* multi column TOC */
.contents ul {
list-style-type: none;
Expand Down
2 changes: 0 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,6 @@ def matplotlib_reduced_latex_scraper(block, block_vars, gallery_conf,

numpydoc_show_class_members = False

html4_writer = True

inheritance_node_attrs = dict(fontsize=16)

graphviz_dot = shutil.which('dot')
Expand Down