Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Add doi pattern#131

Open
discodavey wants to merge 26 commits into
libero:masterfrom
discodavey:add-doi-pattern
Open

Add doi pattern#131
discodavey wants to merge 26 commits into
libero:masterfrom
discodavey:add-doi-pattern

Conversation

@discodavey

Copy link
Copy Markdown
Contributor

No description provided.

@discodavey

Copy link
Copy Markdown
Contributor Author

Draft PR for help from David

@discodavey discodavey marked this pull request as ready for review July 31, 2019 07:14
@discodavey discodavey requested a review from a team as a code owner July 31, 2019 07:14
Comment thread source/sass/patterns/atoms/doi.scss Outdated
Comment thread source/sass/patterns/atoms/doi.scss Outdated
letter-spacing: $font-letterspacing-label;
text-align: center; // stylelint-disable-line csstools/use-logical

@include mq($from: wide) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lines 14 through 24 can be simplified, for example:

  • only need one media query
  • the feature query is not needed here as align-self will be ignored by non-supporting browsers. As long as any display: flex is wrapped within a feature query, the other flex-specific properties don't need to be (but may be).

Comment thread source/patterns/01-molecules/contextual-data/contextual-data.twig Outdated
Comment thread source/patterns/00-atoms/doi/doi.twig Outdated
Comment thread source/patterns/00-atoms/doi/doi.twig Outdated
Comment thread source/patterns/04-pages/research-article/research-article.twig
Comment thread source/sass/patterns/molecules/contextual-data.scss Outdated
Comment thread source/patterns/00-atoms/doi/doi.twig Outdated
Comment thread source/patterns/00-atoms/doi/doi.twig Outdated
Comment thread source/sass/patterns/atoms/doi.scss Outdated
Comment thread source/sass/patterns/molecules/contextual-data.scss Outdated
Comment thread source/sass/patterns/atoms/doi.scss Outdated
@include block-spacing($end: $baselinegrid-space-medium);
@include border(block-end);
@include padding($baselinegrid-space-extra_small, block);
@include text-align(center);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Will need to be changed when other things are put into contextual-data, but for now as it only contains one thing (the doi), simple text-alignment is enough here.

Comment thread source/patterns/01-molecules/contextual-data/contextual-data.twig Outdated
Comment thread source/sass/mixins/_typography.scss Outdated
{
template: 'organisms-content-header',
arguments: contentHeader,
arguments: contentHeader|merge({ compact: true }),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is a shame (especially as it has to be implemented by the user). Makes me think we do need to consider it part of the content header.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looking at eLife's version, the Content Header doesn't have any block-end margin. That could work here too, but means that we'd need to add some block-start spacing elsewhere...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I agree this could be in the content header as well. It would simplify things.

@import "../../settings/baselinegrid";
@import "../../settings/color";

.contextual-data {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Never been a fan of the name.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We need some suggestions then. I cannot think of anything off the top of my head at the moment apart from info-data.

Comment thread source/patterns/01-molecules/contextual-data/contextual-data.yaml Outdated
Comment thread source/patterns/04-pages/research-article/research-article~en.yaml Outdated
Comment thread source/patterns/01-molecules/contextual-data/contextual-data.twig Outdated
Comment thread source/sass/patterns/molecules/contextual-data.scss Outdated
}

.reference__doi {
@include doi();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

When this is removed, the letter-spacing: $font-letterspacing-label still needs adding (to match eLife). Which shows the name is wrong (since this isn't a label).

Makes me wonder... are we always applying this to small (-3, maybe more) text?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is the only bit I have not done as do not fully understand.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is an unrelated bug fix anyway, will wait for @davidcmoulton's return.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants