-
Notifications
You must be signed in to change notification settings - Fork 162
Fix: 'Coding Coach' text is coming in a single line. #135
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
Fix: 'Coding Coach' text is coming in a single line. #135
Conversation
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.
Just replace the media queries with respond-to
src/pages/home/assets/home.scss
Outdated
background-size: cover; | ||
position: absolute; | ||
z-index: -1; | ||
@media screen and (min-width: 768px) { |
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.
Please use the respond-to
mixing that we already have: https://github.com/Coding-Coach/coding-coach/blob/development/src/theme/base/_mediaqueries.scss#L36
src/pages/home/assets/home.scss
Outdated
padding-top: 6rem; | ||
padding-bottom: 3rem; | ||
|
||
@media screen and (min-width: 768px) { |
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.
For all media queries use respond-to
I've restarted this build. |
Build for this PR will still fail, as the build fix (#136) is not merged yet. After merging that PR, you can rebuild again and then this build will pass (if there are no issues in tests, etc) |
Please rebase with latest in development |
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.
Looks great!
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.
I'll approve since these are minor, but please fix the units and rebase with development!
src/pages/home/assets/home.scss
Outdated
.hero { | ||
position: relative; | ||
min-height: 50vh; | ||
padding-top: 6rem; |
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.
Please use px
for margin & padding.
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 in multiple instances, but let's be consistent :)
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 a carry forward from #73 :)
I will fix this :)
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.
Looks good to me, thanks!
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.
Just update the media queries with the latest in development, resolve conflicts and it should be good to go, thansk!
src/theme/base/_mediaqueries.scss
Outdated
@@ -69,6 +71,11 @@ $break-large: 992px; // tablets | |||
@content; | |||
} | |||
} | |||
@else if $media==largepc { |
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.
With #123 merged, we no longer need this, can you please update your code accordingly? Thanks!
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.
That's why I said in frontend channel that until we got the new mediaqueries.. everyone should have used manual mediaqueries doing mobile-first. Now is going to be a pain in the ass for some people 😞
For any help, reach me on slack (victor ribero)
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.
sure 😞
…/coding-coach into fix/#128_break_text_multiline Merged
@crysfel I have somehow merged the development branch and fixed the conflicts 😀 |
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.
Great job!
Details
Description
<h1>
#113 to break the words in multiple lines@media screen and (min-width: 768px)
to@include respond-to(pc)
@media screen and (min-width: 768px)
- >Issue
#128