-
Notifications
You must be signed in to change notification settings - Fork 75
feat(css): upgrade responsive styles throughout #481
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
Changes from 3 commits
8a1c9d1
561288d
6f844c3
208299e
3394e10
5edafbc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,13 +117,16 @@ You can also adjust the width inline: | |
|
||
### Figure -- align right | ||
|
||
And now we're going to shift things to the **right align**. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there --- Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently. | ||
Below is a right aligned image | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updates to the "kitchen sink" blogpost to test new styles before they go live. |
||
|
||
<figure class="align-right"> | ||
<img src="/images/pyopensci-general/pyopensci-timeline2019-2024.png" alt="A timeline showing the growth of pyOpenSci from 2019 to 2024." style="width: 50%;"> | ||
<figcaption>Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024 Growth of pyOpenSci from 2019 to 2024</figcaption> | ||
</figure> | ||
|
||
|
||
And now we're going to shift things to the **right align**. Again, there should be plenty of room above, below, and to the left of the image. Just look at him there --- Hey guy! Way to rock that right side. I don't care what the left aligned image says, you look great. Don't let anyone else tell you differently. | ||
|
||
The html looks like this: | ||
|
||
|
||
|
@@ -184,23 +187,53 @@ The image below should extend outside of the parent container on right. | |
> meaningful progress. | ||
{: .highlight-quote } | ||
|
||
|
||
### Quotes using include files | ||
|
||
You can also create blockquotes using include files. | ||
Below is a green and magenta version of the same quote | ||
|
||
``` | ||
````html | ||
{% raw %} | ||
{% include pyos-blockquote.html quote="[*I want to... *] Streamline the development of good quality, socially responsible, and easily shareable software." author="Anonymous" event="AGU 2019 Townhall" class="highlight magenta" %} | ||
``` | ||
{% endraw %} | ||
```` | ||
|
||
{% include pyos-blockquote.html quote="[*I want to... *] Streamline the development of good quality, socially responsible, and easily shareable software." author="Anonymous" event="AGU 2019 Townhall" class="highlight magenta" %} | ||
|
||
```markdown | ||
{% raw %} | ||
{% include pyos-blockquote.html quote="[*I want to... *] Streamline the development of good quality, socially responsible, and easily shareable software." author="Anonymous" event="AGU 2019 Townhall" class="highlight purple" %} | ||
{% endraw %} | ||
``` | ||
|
||
{% include pyos-blockquote.html quote="[*I want to... *] Streamline the development of good quality, socially responsible, and easily shareable software." author="Anonymous" event="AGU 2019 Townhall" class="highlight purple" %} | ||
|
||
The default color for the quotes is the pyos teal green. | ||
|
||
``` | ||
{% raw %} | ||
{% include pyos-blockquote.html quote="[*I want to... *] Streamline the development of good quality, socially responsible, and easily shareable software." author="Anonymous" event="AGU 2019 Townhall" class="highlight" %} | ||
{% endraw %} | ||
``` | ||
|
||
{% include pyos-blockquote.html quote="[*I want to... *] Streamline the development of good quality, socially responsible, and easily shareable software." author="Anonymous" event="AGU 2019 Townhall" class="highlight" %} | ||
|
||
### Quotes in notice blocks | ||
|
||
``` | ||
<div class="notice"> | ||
{% raw %} | ||
{% include pyos-blockquote.html quote="[*I want to... *] Streamline the development of good quality, socially responsible, and easily shareable software." author="Anonymous" event="AGU 2019 Townhall" class="highlight" %} | ||
{% endraw %} | ||
</div> | ||
``` | ||
|
||
<div class="notice"> | ||
{% include pyos-blockquote.html quote="[*I want to... *] Streamline the development of good quality, socially responsible, and easily shareable software." author="Anonymous" event="AGU 2019 Townhall" class="highlight" %} | ||
|
||
</div> | ||
|
||
## Buttons | ||
|
||
Make any link standout more when applying the `.btn .btn--primary` classes. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ body { | |
font-family: $global-font-family; | ||
line-height: 1.6; | ||
weight: $weight-3; | ||
font-size: 1em; | ||
|
||
&.overflow--hidden { | ||
/* when primary navigation is visible, the content in the background won't scroll */ | ||
|
@@ -131,62 +132,81 @@ blockquote { | |
} | ||
} | ||
|
||
%quote-style { | ||
font-weight: bold; | ||
font-size: 100px; | ||
color: $pyos-teal; | ||
line-height: 0; | ||
} | ||
|
||
/* Block quote with bigger quotes*/ | ||
blockquote.highlight-quote { | ||
border: none; | ||
font-family: Georgia, "Times New Roman", Times, serif; | ||
margin-bottom: 130px; | ||
margin-top: 110px; | ||
padding: 0 80px 0 30px; | ||
max-width: 35rem; | ||
margin-top: 6rem; | ||
margin-bottom: 4rem; | ||
padding: 0 2rem; | ||
max-width: $medium; | ||
|
||
footer { | ||
text-align: left; | ||
font-style: italic; | ||
font-weight: 500; | ||
text-align: right; | ||
} | ||
|
||
&:after{ | ||
@extend %quote-style; | ||
position: absolute; | ||
content: close-quote; | ||
right: 4rem; | ||
margin-top:2rem; | ||
} | ||
& > div.end { | ||
position: relative; | ||
} | ||
|
||
& > div.end:after { | ||
@extend %quote-style; | ||
content: close-quote; | ||
position: absolute; | ||
right: 0; | ||
margin-top:2.8rem; | ||
} | ||
|
||
p { | ||
font-size: 21px; | ||
position: relative; | ||
margin-bottom: 10px; | ||
|
||
&:before, | ||
&:after { | ||
font-weight: bold; | ||
font-size: 100px; | ||
color: $pyos-teal; | ||
line-height: 0; | ||
} | ||
|
||
&:before { | ||
@extend %quote-style; | ||
position: absolute; | ||
content: open-quote; | ||
left: 0; | ||
top: -20px; | ||
} | ||
|
||
&:after { | ||
content: close-quote; | ||
position: absolute; | ||
right: 0; | ||
bottom: -80px; | ||
} | ||
} | ||
// Success class (magenta) | ||
&.magenta p { | ||
&:before, | ||
&:after { | ||
|
||
&.magenta { | ||
& > div.end:after, | ||
p:before, | ||
p:after { | ||
color: $pyos-magenta; | ||
} | ||
} | ||
&.purple p { | ||
&:before, | ||
&:after { | ||
|
||
&.purple { | ||
& > div.end:after, | ||
p:before, | ||
p:after { | ||
color: $pyos-mediumpurple; | ||
} | ||
} | ||
|
||
@include breakpoint('max-width: #$mobile') { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will go back and look at this more closely. i'm still fighting with mixin include statements |
||
padding: 0; | ||
//font-size: 2rem; | ||
} | ||
} | ||
|
||
/* links */ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are using an
:after
element for the quotes. this adds a new div below the footer (which is the quote author) that after is applied to. This makes it easier to align the close quote with the actual text.