-
Notifications
You must be signed in to change notification settings - Fork 0
Chisel apprentice qualities #33
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 all commits
2f2155a
f9729df
051f271
e458166
11dd67c
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 |
|---|---|---|
|
|
@@ -11,6 +11,10 @@ | |
| width: $component-width; | ||
|
|
||
| &__main { | ||
| @include horizontal-section-spacing(); | ||
| box-sizing: border-box; | ||
|
Member
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. This is looking great Alice, I think I figured out a simple way to stop the text from floating off to the right on larger screens. Here's a screenshot for reference: Could we add this CSS to ☝️ Setting the
Contributor
Author
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. Got it! |
||
| justify-content: right; | ||
| max-width: $max-content-width + ($xlarge-screen-padding * 2); | ||
| margin: auto; | ||
| } | ||
|
|
||
|
|
@@ -19,8 +23,6 @@ | |
| } | ||
|
|
||
| &__article { | ||
| padding: 1rem; | ||
|
|
||
| &-text { | ||
| font-style: normal; | ||
| font-weight: normal; | ||
|
|
@@ -47,7 +49,7 @@ | |
| } | ||
| } | ||
|
|
||
| @media (min-width: 50rem) { | ||
| @media (min-width: 48rem) { | ||
| .apprentice-qualities { | ||
| min-height: 50rem; | ||
| position: relative; | ||
|
|
@@ -60,40 +62,55 @@ | |
| background-repeat: repeat-x; | ||
| background-size: 20rem; | ||
| background-position: | ||
| -8rem 0, | ||
| 2rem 17.4rem, | ||
| -8rem 34.7rem; | ||
| $medium-screen-padding+8.2rem 0, | ||
| $medium-screen-padding+ -1.8rem 17.4rem, | ||
| $medium-screen-padding+8.2rem 34.7rem; | ||
|
|
||
| &__main { | ||
| display: flex; | ||
| position: relative; | ||
| } | ||
|
|
||
| &__image { | ||
| order: 1; | ||
| display: block; | ||
| position: absolute; | ||
| left: 1.2rem; | ||
| top: 14.4rem; | ||
| pointer-events: none; | ||
| width: 21.5rem; | ||
| top: 6.5rem; | ||
| left: -23.75rem; | ||
| } | ||
|
|
||
| &__article { | ||
| padding: 2rem; | ||
| display: flex; | ||
| flex-direction: column; | ||
| position: absolute; | ||
| left: 23rem; | ||
| left: 25rem; | ||
| top: 8rem; | ||
| padding-top: 3rem; | ||
| padding-right: 3.75rem; | ||
|
|
||
| &--heading { | ||
| order: 2; | ||
| } | ||
|
|
||
| &--subheading { | ||
| order: 3; | ||
| } | ||
|
|
||
| &-text { | ||
| order: 4; | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| @media (min-width: 70.25rem) { | ||
| @media (min-width: 62rem) { | ||
| .apprentice-qualities { | ||
| background-position: | ||
| calc(50% - 16rem) 0, | ||
| calc(50% - 6rem) 17.3rem, | ||
| calc(50% - 16rem) 34.7rem; | ||
| calc(50% - 10rem) 0, | ||
| 50% 17.3rem, | ||
| calc(50% - 10rem) 34.7rem; | ||
|
|
||
| &__main { | ||
| flex-direction: row; | ||
|
|
@@ -102,14 +119,17 @@ | |
| } | ||
|
|
||
| &__image { | ||
| position: revert; | ||
| padding-top: 9.3rem; | ||
| position: absolute; | ||
| top: 14.3rem; | ||
| left: calc(50% - 30.75rem); | ||
| } | ||
|
|
||
| &__article { | ||
| position: revert; | ||
| padding-right: 0; | ||
| width: 70ch; | ||
| max-width: 90ch; | ||
| padding: 5rem 0 0 0; | ||
| margin-left: 40%; | ||
| } | ||
| } | ||
| } | ||

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.
This is looking great Alice, I think I figured out a simple way to stop the text from floating off to the right on larger screens.
Could we add this CSS to
&__main?☝️ Setting the
max-widththis way feels a bit hacky, but absent a bigger refactor to the DOM structure, it it's a simple way to account for the padding withborder-boxsetting.