Skip to content

Commit 074b195

Browse files
committed
fix: fonts are pretty
1 parent a35e0da commit 074b195

File tree

5 files changed

+52
-215
lines changed

5 files changed

+52
-215
lines changed

_includes/head/custom.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<!-- custom head content-->
22
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
3+
<link rel="preconnect" href="https://fonts.googleapis.com">
4+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
5+
<link href="https://fonts.googleapis.com/css2?family=Itim&family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet" async fetchpriority="high">
6+
<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap" rel="stylesheet">
37
<!-- Matomo -->
48
<script type="text/javascript">
59
var _paq = window._paq = window._paq || [];

_pages/how-to-submit-package.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ You’ve created a Python package—now what? How do you ensure it follows best
2727

2828

2929
<figure>
30-
<source srcset="{{ page.url | relative_url }}/images/peer-review/pyos-joss-peer-review.webp" type="image/webp">
31-
<img src="{{ page.url | relative_url }}/images/peer-review/pyos-joss-peer-review.png" alt="A flowchart showing how a package submitted to pyOpenSci can also be fast-tracked for JOSS publication.">
30+
<source srcset="{{ '/images/peer-review/pyos-joss-peer-review.webp' | relative_url }}" type="image/webp">
31+
<img src="{{ '/images/peer-review/pyos-joss-peer-review.png' | relative_url }}" alt="A flowchart showing how a package submitted to pyOpenSci can also be fast-tracked for JOSS publication.">
3232
<figcaption>
3333
Packages accepted into pyOpenSci can also be published in JOSS through a streamlined process.
3434

@@ -106,7 +106,7 @@ Once your have determined that you package it in scope and meets our core packag
106106
4. **Complete the issue form** and submit it
107107

108108
<figure>
109-
<img src="{{ page.url | relative_url }}/images/peer-review/peer-review-submit-issue.gif" style="max-width:100%" alt="Animated gif showing how to find the GitHub issue submission process for peer review.">
109+
<img src="{{ '/images/peer-review/peer-review-submit-issue.gif' | relative_url }}" style="max-width:100%" alt="Animated gif showing how to find the GitHub issue submission process for peer review.">
110110
<figcaption>
111111
More....
112112
</figcaption>
@@ -149,7 +149,7 @@ There are **three submission types** that you can select from:
149149

150150
<div class="notice notice--info" markdown="1">
151151

152-
### Need help with your Python package?
152+
**Need help with your Python package?**
153153

154154
If you need help getting your package ready for review, you can submit a help request here, and someone will be assigned to help you. This is a great way to get guidance on topics like [continuous integration](https://www.pyopensci.org/python-package-guide/tests/tests-ci.html#run-tests-with-continuous-integration), [testing](https://www.pyopensci.org/python-package-guide/#tests), and [full documentation](https://www.pyopensci.org/python-package-guide/#documentation), all of which are required for a package to be accepted into [the pyOpenSci ecosystem](https://www.pyopensci.org/python-packages.html). You can also learn more about each of these processes in [the pyOpenSci Package Guide](https://www.pyopensci.org/python-package-guide/).
155155

@@ -209,8 +209,8 @@ If your package is associated with an existing community please check below:
209209
```
210210
211211
<figure>
212-
<source srcset="{{ page.url | relative_url }}/images/peer-review/pyos-partnerships-peer-review.webp" type="image/webp">
213-
<img src="{{ page.url | relative_url }}/images/peer-review/pyos-partnerships-peer-review.png" alt="A flowchart showing how a package submitted to pyOpenSci can also be fast-tracked for JOSS publication." style="width: 70%; display: block; margin: 0 auto;">
212+
<source srcset="{{ '/images/peer-review/pyos-partnerships-peer-review.webp' | relative_url }}" type="image/webp">
213+
<img src="{{ '/images/peer-review/pyos-partnerships-peer-review.png' | relative_url }}" alt="A flowchart showing how a package submitted to pyOpenSci can also be fast-tracked for JOSS publication." style="width: 70%; display: block; margin: 0 auto;">
214214
<figcaption>
215215
Packages accepted into pyOpenSci can also be published in JOSS through a streamlined process.
216216

_sass/minimal-mistakes/_base.scss

Lines changed: 25 additions & 172 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
========================================================================== */
44

55
html {
6-
/* Sticky footer fix */
6+
/* sticky footer fix */
77
position: relative;
88
min-height: 100%;
99
}
@@ -14,16 +14,16 @@
1414
color: $text-color;
1515
font-family: $global-font-family;
1616
line-height: 1.6;
17-
font-weight: $weight-3;
18-
font-size: 1rem;
17+
weight: $weight-3;
18+
font-size: 1em;
1919

2020
&.overflow--hidden {
2121
/* when primary navigation is visible, the content in the background won't scroll */
2222
overflow: hidden;
2323
}
2424
}
2525

26-
strong {font-weight:$semibold-weight}
26+
strong {font-weight:$bold-weight}
2727
ul li {margin-bottom: 0}
2828

2929
h1,
@@ -35,43 +35,49 @@
3535
margin: 3.5rem 0 1rem 0;
3636
line-height: 1.2;
3737
color: #542668;
38+
text-wrap: pretty;
3839
}
39-
40-
// Use poppins for subheaders
41-
h2, h3, h4, h5, h6 {
40+
// All fonts h2 and lower are poppins
41+
h2,
42+
h3,
43+
h4,
44+
h5,
45+
h6 {
4246
font-family: $header-font-family;
43-
font-weight: $bold-weight;
44-
letter-spacing: -.03em;
45-
max-width: $medium;
4647
}
4748

4849
h1 {
4950
margin-top: 0;
5051
font-size: $h-size-1;
51-
font-weight: 400 !important;
52-
font-family: $title-font-family;
52+
font-weight: 200 !important;
53+
font-family: $header-font;
5354
}
5455

5556
h2 {
5657
font-size: $h-size-2;
57-
58-
&:first-of-type {
59-
//margin-top: 1rem!important;
60-
}
58+
padding-bottom: 0.2em;
59+
margin-bottom: 1rem;
60+
margin-top: 3rem;
61+
font-weight: $semibold-weight; //600
62+
line-height: 1.1;
63+
letter-spacing: -0.03em;
6164
}
6265

6366
h3 {
6467
font-size: $h-size-3;
68+
font-weight: $semibold-weight;
6569
line-height: 1.1em;
6670
margin-top: 2.7em;
6771
}
6872

6973
h4 {
7074
font-size: $h-size-4;
75+
font-weight: $semibold-weight;
7176
}
7277

7378
h5 {
7479
font-size: $h-size-5;
80+
font-weight: $semibold-weight;
7581
}
7682

7783
h6 {
@@ -85,6 +91,7 @@
8591

8692
p {
8793
margin-bottom: 1.3em;
94+
text-wrap: pretty;
8895
}
8996

9097
u,
@@ -233,159 +240,6 @@
233240
}
234241
blockquote.highlight-quote.purple:after{
235242
color: $pyos-mediumpurple;
236-
}
237-
}
238-
239-
240-
@include breakpoint('max-width: #$mobile') {
241-
padding: 0;
242-
//font-size: 2rem;
243-
}
244-
}
245-
246-
// for some reason i have to manually override here
247-
blockquote.highlight-quote.magenta:after{
248-
color: $pyos-magenta;
249-
}
250-
blockquote.highlight-quote.purple:after{
251-
color: $pyos-mediumpurple;
252-
}
253-
254-
/* links */
255-
256-
a {
257-
text-underline-offset: .1em;
258-
text-decoration-color: rgba($text-color, 0.7);
259-
text-decoration: underline;
260-
261-
262-
&:focus {
263-
@extend %tab-focus;
264-
}
265-
266-
&:visited {
267-
color: $link-color-visited;
268-
}
269-
270-
&:hover {
271-
color: $link-color-hover;
272-
outline: 0;
273-
text-decoration: none !important;
274-
text-decoration-line: none !important;
275-
transition: color 0.3s ease, text-decoration-color 0.3s ease;
276-
}
277-
}
278-
279-
/* buttons */
280-
281-
button:focus {
282-
@extend %tab-focus;
283-
}
284-
285-
/* code */
286-
287-
tt,
288-
code,
289-
kbd,
290-
samp,
291-
pre {
292-
font-family: $monospace;
293-
font-weight: $weight-5;
294-
font-size: 1em;
295-
}
296-
297-
298-
299-
300-
kbd {
301-
background-color: $kbd-color-background;
302-
color: $kbd-color-text;
303-
border-radius: 0.25rem;
304-
box-shadow: 0 2px 0 1px $kbd-color-border;
305-
line-height: 1;
306-
font-size: .75em;
307-
padding: .15em .25em;
308-
309-
&:hover {
310-
box-shadow: 0 1px 0 0.5px $kbd-color-border;
311-
top: 1px;
312-
}
313-
}
314-
315-
pre {
316-
overflow-x: auto; /* add scrollbars to wide code blocks*/
317-
}
318-
319-
/* horizontal rule */
320-
321-
hr {
322-
display: block;
323-
margin: 1em 0;
324-
border: 0;
325-
border-top: 1px solid $border-color;
326-
}
327-
328-
/* lists */
329-
330-
ul,
331-
ol {
332-
margin-bottom: 1.9em;
333-
font-weight: $weight-3;
334-
}
335-
ul li,
336-
ol li {
337-
margin-bottom: 0.3em;
338-
font-size: $type-size-5;
339-
list-style: 1.4em;
340-
}
341-
342-
ul li::marker {
343-
color: #9C939F; /* Change bullet color */
344-
}
345-
346-
li ul,
347-
li ol {
348-
margin-top: 0.5em;
349-
}
350-
351-
/*
352-
Media and embeds
353-
========================================================================== */
354-
355-
/* Figures and images */
356-
357-
figure {
358-
display: -webkit-box;
359-
display: flex;
360-
-webkit-box-pack: justify;
361-
justify-content: space-between;
362-
-webkit-box-align: start;
363-
align-items: flex-start;
364-
flex-wrap: wrap;
365-
margin: 2em 0;
366-
367-
img,
368-
iframe,
369-
.fluid-width-video-wrapper {
370-
margin-bottom: 1em;
371-
}
372-
373-
img {
374-
width: 100%;
375-
border-radius: $border-radius;
376-
-webkit-transition: $global-transition;
377-
transition: $global-transition;
378-
}
379-
380-
> a {
381-
display: block;
382-
}
383-
384-
&.half {
385-
> a,
386-
> img {
387-
@include breakpoint($small) {
388-
width: calc(50% - 0.5em);
389243
}
390244

391245
/* links */
@@ -569,9 +423,8 @@ figure {
569423
overflow: hidden;
570424
}
571425

572-
/*
573-
Navigation lists
574-
========================================================================== */
426+
/* Navigation lists */
427+
575428

576429
nav {
577430
ul {

_sass/minimal-mistakes/_page.scss

Lines changed: 7 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,12 @@
8282
}
8383
}
8484

85-
// in our flowing layout the title should be max width
86-
.page__content .pyos-section h2 {
87-
max-width: 100%;
88-
89-
}
9085
.page__lead {
91-
font-family: $header-font; //poppins
86+
font-family: $global-font-family;
9287
font-size: $type-size-5;
9388
font-weight: $weight-3;
9489
}
9590

96-
97-
9891
.page__content {
9992
figure {
10093
max-width: 35rem;
@@ -107,11 +100,6 @@
107100
font-weight: $weight-4;
108101
}
109102

110-
h2 {
111-
margin-bottom: 2.0rem;
112-
margin-top: 4.1rem;
113-
}
114-
115103
h1,
116104
h2,
117105
h3,
@@ -139,7 +127,7 @@
139127
p,
140128
dl {
141129
font-size: $type-size-5;
142-
line-height: 1.6rem;
130+
line-height: 1.5em;
143131
}
144132

145133
/* paragraph indents */
@@ -607,11 +595,6 @@
607595
}
608596
}
609597

610-
.layout--splash .page__content h2 {
611-
width: 100%;
612-
max-width: 100%;
613-
}
614-
615598
/* Media queries */
616599

617600
@media screen and (max-width: 768px) {
@@ -650,7 +633,10 @@
650633
.feature__item {
651634
width: 95%!important;
652635
}
653-
636+
.cards {
637+
margin-right: auto!important;
638+
margin-left: auto!important;
639+
}
654640

655641
.wide__p_text {
656642
max-width: 90%!important;
@@ -664,10 +650,7 @@
664650

665651
/* max 480 px */
666652
@media screen and (max-width: 480px) {
667-
body {
653+
body{
668654
font-size: 1.4em;
669655
}
670-
#main {
671-
padding: 0 .6rem;
672-
}
673656
}

0 commit comments

Comments
 (0)