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

Issue #10 - Content Styles #31

Merged
merged 15 commits into from
Aug 16, 2020
Merged

Issue #10 - Content Styles #31

merged 15 commits into from
Aug 16, 2020

Conversation

naarrek
Copy link
Collaborator

@naarrek naarrek commented Jul 6, 2020

No description provided.

Copy link
Member

@Manvel Manvel left a comment

Choose a reason for hiding this comment

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

@naarrek Thanks for the PR.

I have added comments, some of them we have already discussed in the chat, the others might be new to you.

As mentioned in the chat there are some inconsitencies with the Drupal version of the website, some inconsistencies seem to be intentational, the other might be not. Guess after the comments will be addressed things might be more clear for us.

theme/less/_content.less Outdated Show resolved Hide resolved
pages/documentation/actions/change.md Outdated Show resolved Hide resolved
pages/documentation/actions/bg-inject.md Show resolved Hide resolved
pages/documentation/actions/change.md Outdated Show resolved Hide resolved
theme/less/_content.less Outdated Show resolved Hide resolved
theme/less/_content.less Outdated Show resolved Hide resolved
theme/less/_content.less Outdated Show resolved Hide resolved
theme/less/_content.less Outdated Show resolved Hide resolved
theme/less/_content.less Outdated Show resolved Hide resolved
Copy link
Member

@Manvel Manvel left a comment

Choose a reason for hiding this comment

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

@naarrek Jan thanks for the PR.

I have made only 1 detail comment and some guides for fonts implementation, if you decide implement fonts separately I'm happy to approve this PR (ideally if/when detail comment is also addressed).

theme/less/_content.less Outdated Show resolved Hide resolved
theme/less/_content.less Show resolved Hide resolved
theme/less/_body-wrapper.less Outdated Show resolved Hide resolved
theme/less/_body-wrapper.less Outdated Show resolved Hide resolved
theme/less/_body-wrapper.less Outdated Show resolved Hide resolved
theme/less/_body-wrapper.less Outdated Show resolved Hide resolved
theme/less/_body-wrapper.less Outdated Show resolved Hide resolved
theme/less/_content.less Outdated Show resolved Hide resolved
@@ -8,15 +8,18 @@ header > p
color: #7d7d7d;
font-size: 24px;
letter-spacing: -1px;
line-height: 25px;
margin-bottom: 0;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here line-height controls distance between title and subtitle of the site. Also distance between subtitle and navigation I left to control navigation ul margin considering it "more static (not changeable)" than subtitle.

Copy link
Member

@Manvel Manvel left a comment

Choose a reason for hiding this comment

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

Narek Jan, I have added couple of suggestions here -> #32.

I think we have discussed during the last meeting that we can try making the implementation more closer to the Drupal page, if you might have a chance, can you please have a look and let me know if you agree with the decisions, you can find list of adjustments in the PR description.

theme/less/_content.less Outdated Show resolved Hide resolved
theme/less/_body-wrapper.less Show resolved Hide resolved
theme/less/homepage.less Outdated Show resolved Hide resolved
theme/less/homepage.less Outdated Show resolved Hide resolved
theme/less/homepage.less Outdated Show resolved Hide resolved
theme/less/_navigation.less Outdated Show resolved Hide resolved
{
position: absolute;
right: 10px;
top: 33%;
padding-right: 10px;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe it's right to do here padding: 0 10px 0 0.

Copy link
Member

Choose a reason for hiding this comment

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

Same as here #31 (comment)

@@ -93,13 +95,16 @@
#main-navigation li.has-children > a:after
{
content: url('/images/arrow_bullet.png');
padding-left: 10px;
padding-left: 11px;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe it's right to do here padding: 0 0 0 11px.

Copy link
Member

Choose a reason for hiding this comment

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

It will have same effect. Having padding-left seem to be fine.

Copy link
Member

Choose a reason for hiding this comment

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

I see you still changed to your suggestion. Anyway it's not a big deal, though I feel more in favor of left padding, if there is no such thing as "padding-end"

{
position: absolute;
right: 10px;
top: 33%;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

vertical-align:middle or vertical-align:sub doesn't work on #main-navigation ul ul li.has-children a:after because it's positioned absolutely. So I added there top with percentage units.

Copy link
Member

Choose a reason for hiding this comment

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

Right, what about using:

display: flex;
justify-content: space-between;

On <a> element instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It seems display: inline-block on #main-navigation ul ul a solves this vertical height problem. No need to change line-height for <a> , I guess...

Copy link
Member

@Manvel Manvel Aug 7, 2020

Choose a reason for hiding this comment

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

What about the absolute positioning? Not sure how solution with display: inline-block can solve it, might be I didn't understand your comment. But feel free to apply your proposed changes and we can revisit this.

Copy link
Member

Choose a reason for hiding this comment

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

LGTM.

@@ -93,13 +95,16 @@
#main-navigation li.has-children > a:after
{
content: url('/images/arrow_bullet.png');
padding-left: 10px;
padding-left: 11px;
vertical-align: sub;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This aligns a:after as subscript of the text. Instead of this could be for example vertical-align with negative em or percentage values to align image properly.

Copy link
Member

Choose a reason for hiding this comment

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

This is how it looks like, on my side.

Screen Shot 2020-08-04 at 10 15 29 PM

switching this to vertical-align: middle; seem to fix the arrow to be aligned in the middle of the text.

Copy link
Member

Choose a reason for hiding this comment

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

Also seems like items without side arrow are missing some paddings.

Copy link
Member

Choose a reason for hiding this comment

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

LGTM.

theme/less/_navigation.less Outdated Show resolved Hide resolved
theme/less/homepage.less Outdated Show resolved Hide resolved
Copy link
Member

@Manvel Manvel left a comment

Choose a reason for hiding this comment

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

LGTM.

@Manvel Manvel merged commit 95d6a64 into master Aug 16, 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.

None yet

2 participants