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

[WIP] Start fixing side-by-side view position #805

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

thewilkybarkid
Copy link
Member

The side-by-side view isn't positioned correctly, this is due to a mix on rems and px in the site header:

image

This is a start on trying to make it all rem-compatible.

top: (40px + 1 + 54 + 40); // .site-header height + .side-by-side-view__bar height
top: #{get-rem-from-px(40 + 1 + 54 + 40)}rem;
height: calc(100% - #{(40 + 1 + 54)}px - 40px); // 100% - .site-header height - .side-by-side-view__bar height
height: calc(100% - #{get-rem-from-px(40 + 1 + 54)}rem - #{get-rem-from-px(40)}rem);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works, but stylelint isn't happy.

@@ -1,7 +1,7 @@
@import "../../definitions";

.site-header {
max-height: 96px;
/*max-height: 96px;*/
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this is needed?

@nlisgo
Copy link
Member

nlisgo commented Dec 21, 2020

@thewilkybarkid I'm closing this for now as it has been sitting here for a long time.

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.

3 participants