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

refactor: use Public Sans and Reddit Mono on PAPI docs site #14662

Merged
merged 4 commits into from
Aug 27, 2024
Merged
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
30 changes: 24 additions & 6 deletions api/docs/static/override_sphinx.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700');
@import url('https://fonts.googleapis.com/css?family=Public+Sans:300,400,400i,600,700');
@import url('https://fonts.googleapis.com/css2?family=Reddit+Mono:[email protected]&display=swap');

/* OT NAV */

body {
padding: 0;
margin: 0;
font-family: "Open Sans", "sans-serif";
font-family: "Public Sans", "sans-serif";
}

.highlight-none, .mi, .literal {
Expand Down Expand Up @@ -35,7 +36,18 @@ div.document [id] {

div.body p {
line-height: 20pt;
font-family: "Open Sans", "sans-serif";
font-family: "Public Sans", "sans-serif";
}

pre, tt, code {
font-size: 0.9em;
font-family: "Reddit Mono", "Consolas", "Lucida Console", monospace;
Copy link
Contributor

@koji koji Aug 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to use the parent element as the basis?
if not, recommend you use rem instead em

}

/* classes for API Reference docstring signatures */
.sig, .sig-name, code.descname, .sig-prename, .optional, .sig-paren {
font-size: 1em;
font-family: "Reddit Mono", "Consolas", "Lucida Console", monospace;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same question

}

div.body h1 {
Expand Down Expand Up @@ -90,7 +102,13 @@ div.body h2,
div.body h3,
div.body h4,
div.body h5 {
font-family: "Open Sans", "sans-serif";
font-family: "Public Sans", "sans-serif";
}

/* Links need an extra two pixels of padding to compensate between body font height
being 1em and code font height being 0.9em */
a.reference {
padding-bottom: 2px;
}

/* Suppressing the display of the toctrees rendered in the doc body means we
Expand Down Expand Up @@ -193,13 +211,13 @@ div.body p.caption {

ul {
/* margin-left: 0; */
font-family: "Open Sans", "sans-serif";
font-family: "Public Sans", "sans-serif";
}

ul ul {
list-style-type: circle;
margin-left: 30px;
font-family: "Open Sans", "sans-serif";
font-family: "Public Sans", "sans-serif";
}

@media screen and (min-device-width: 320px)and (max-device-width: 640px) {
Expand Down
Loading