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

Fix #2739 add variables size for layout hero #2740

Merged
merged 4 commits into from
Jan 5, 2020
Merged

Fix #2739 add variables size for layout hero #2740

merged 4 commits into from
Jan 5, 2020

Conversation

IvanFrescas
Copy link
Contributor

This is an improvement|documentation fix.

Fixes issue #2739 adding three sass variables to hero layout

Proposed solution

Screen Shot 2019-12-14 at 9 31 39

Testing Done

It was tested locally and the layout hero is still working the same way as before.

Changelog updated?

No.

@jgthms
Copy link
Owner

jgthms commented Dec 14, 2019

So this is a breaking change because you're removing the horizontal padding on the hero-body defined here:

.hero-body
  padding: 3rem 1.5rem

I would actually created 4 variables:

$hero-body-padding
$hero-body-padding-vertical-small
$hero-body-padding-vertical-medium
$hero-body-padding-vertical-large

@IvanFrescas
Copy link
Contributor Author

Thanks for your answer, I'll work on it.

@IvanFrescas
Copy link
Contributor Author

What do you think of this solution?
I also noticed that in the documentation there is no reference to the is-small class. If you want I can make another issue of that.

@jgthms
Copy link
Owner

jgthms commented Dec 14, 2019

I'd keep padding-top and padding-bottom for the small medium and large versions. Otherwise, you're repeating 1.5rem 4 times.

@IvanFrescas
Copy link
Contributor Author

I relied on the file section.sass where it also has the sizes for medium and large.
do you have any suggestions to avoid repeating 1.5rem?

@hammadzz
Copy link

I'd keep padding-top and padding-bottom for the small medium and large versions. Otherwise, you're repeating 1.5rem 4 times.

That would be cleaner.

I relied on the file section.sass where it also has the sizes for medium and large.
do you have any suggestions to avoid repeating 1.5rem?

Just remove the 1.5rem from medium and large as it is an unnecessarily overriding the same value from hero-body. But I am new to SASS so @jgthms will have to confirm.

@jgthms
Copy link
Owner

jgthms commented Dec 19, 2019

Actually you’re right. Doing like section.sass is fine actually. Let’s go with that.

@IvanFrescas
Copy link
Contributor Author

Awesome.
So, should I leave the changes as they are? Or should I modify something? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants