Skip to content

centered navbar correctly#247

Closed
Gunkev wants to merge 1 commit intoapache:masterfrom
Gunkev:center-navbar-correctly
Closed

centered navbar correctly#247
Gunkev wants to merge 1 commit intoapache:masterfrom
Gunkev:center-navbar-correctly

Conversation

@Gunkev
Copy link
Contributor

@Gunkev Gunkev commented Mar 20, 2020

In this PR I centered the elements vertically in the navigation bar

Original camel website navbar

Screenshot from 2020-03-20 23-52-53

Camel navbar after changes

Screenshot from 2020-03-20 23-52-30

@djencks
Copy link
Contributor

djencks commented Mar 20, 2020

Personally I prefer the unmodified proportions. They are closer to the golden ratio. In addition, to me it seems that the word "Camel" on the left, being the largest and heaviest visual element, defines where the line is; the unmodified version continues on that line, more or less, while the modified version floats up and doesn't relate to the beginning of the line.

Copy link
Contributor

@oscerd oscerd left a comment

Choose a reason for hiding this comment

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

I agree with David.

@zregvart
Copy link
Member

Preview is here.

Copy link
Member

@zregvart zregvart left a comment

Choose a reason for hiding this comment

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

I don't think this brings any visual improvement and it has some technical issues as well.

.navbar-link {
align-items: flex-end;
display: flex;
display: block;
Copy link
Member

Choose a reason for hiding this comment

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

I'm pretty sure that changing this to block from flex breaks something.


.navbar-end .navbar-link::after {
border-color: var(--navbar-font-color);
margin-top: -6px;
Copy link
Member

Choose a reason for hiding this comment

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

I'd prefer not to use tricks like negative margins.

.navbar-end > .navbar-item,
.navbar-end .navbar-link {
color: var(--navbar-font-color);
line-height: 55px;
Copy link
Member

Choose a reason for hiding this comment

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

We prefer not to use px but rather rem as the font size can be changed by the user using the browsers zoom in-out feature.

@zregvart
Copy link
Member

I don't think this is the right approach. I think we should close this.

@zregvart zregvart closed this Mar 24, 2020
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.

4 participants