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

Denote unpublished pages #35

Open
joelpittet opened this issue Apr 5, 2018 · 2 comments
Open

Denote unpublished pages #35

joelpittet opened this issue Apr 5, 2018 · 2 comments

Comments

@joelpittet
Copy link
Collaborator

There is a node--unpublished class added to the article. This used be a pink background color denoting unpublished state. I think we could do better. Maybe a badge/label that says "Unpublished" injected via that CSS class?

@occupant
Copy link
Member

occupant commented Apr 5, 2018

Agreed. Something very like this is in Megatron. From the node.tpl:

<?php if ($unpublished): ?><div class="unpublished"><?php print t('Unpublished'); ?></div><?php endif; ?>

And the css:

.node-unpublished {
  background-color: #fff
}

.node-unpublished div.unpublished {
  height: 0;
  overflow: visible;
  color: #d8d8d8;
  font-size: 4.6875em;
  line-height: 1;
  font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  word-wrap: break-word
}

The css there could be cleaner but the general approach is probably a good starting point.

EDIT - good grief, markdown is not my friend this morning.

@joelpittet
Copy link
Collaborator Author

I can edit your comments apparently, lol. add three back-ticks.

That would be a good start, I'd ditch the font-family, height, 'overflow, and word-wrapanddiv` selector and pump that in there as a first iteration.

@yehee yehee mentioned this issue Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants