Skip to content

Request for Comments: Proposed changes to <cite> CSS markup #115

Closed

Description

@raamdev

Background

Currently the Independent Publisher theme applies the following style to <cite> elements:

blockquote cite:before { content: "\2014 \0020"; }

This results in a long-dash character (—) being prepended to the citation, so the following markup:

<blockquote>
Someone said something. <cite>Author</cite>
</blockquote>

Looks like this:

2014-06-29_13-13-07

Notice the long-dash (—) was inserted automatically.

The problem

This looks fine on the web, however in an RSS feed the long-dash doesn't show up, because it's added using CSS. This results in RSS feeds (and any email campaigns that may be attached to the RSS feed) to show the quotation like this:

Someone said something. Author

And that just looks wrong. The only way to fix this would be to manually add the long-dash when publishing the post, which is the correct way to do it anyway. However, without removing the CSS style that adds the long-dash, this would result in a double-dash.

The Proposal

I propose to remove the CSS style that prepends the long-dash to <cite> elements. This would mean that anyone who is using the Independent Publisher theme and relying on the automatic insertion of the long-dash would need to go back and insert the dash manually. (If you're not using the <cite> tag at all, this change wouldn't affect you.)

If anyone has any objection to this proposal, please voice your concerns here.

Activity

  1. rmorabia commented on Jun 29, 2014

    @rmorabia

    Instead, could you add italics to the author CSS? Therefore, the long dash would still remain on the site, and it wouldn't look odd in feeds?

    Someone said something. Author.

  2. raamdev commented on Jun 29, 2014

    @raamdev
    OwnerAuthor

    Instead, could you add italics to the author CSS? Therefore, the long dash would still remain on the site, and it wouldn't look odd in feeds?

    The problem with that is that quotes are sometimes styled with italics. For example, in my email campaigns my quotes would look like this:

    Someone said something. Author

  3. rmorabia commented on Jun 29, 2014

    @rmorabia

    Wouldn't the email campaign then go:

    Someone said something. Author.

    On 6/29/2014 11:06 AM, Raam Dev wrote:

    Instead, could you add italics to the author CSS? Therefore, the
    long dash would still remain on the site, and it wouldn't look odd
    in feeds?
    

    The problem with that is that quotes are sometimes styled with italics.
    For example, in my email campaigns my quotes would look like this:

    /Someone said something. Author/
    

    —
    Reply to this email directly or view it on GitHub
    #115 (comment).

  4. raamdev commented on Jun 29, 2014

    @raamdev
    OwnerAuthor

    Wouldn't the email campaign then go:

    Someone said something. Author.

    It could, but that just looks confusing to me. It makes more sense to me that everbody can choose to format things however they want, instead of needing to account for the automatic insertion of a long-dash.

  5. added this to the Next Release milestone on Jun 29, 2014
  6. rmorabia commented on Jun 29, 2014

    @rmorabia

    Hm. Agreed. Maybe create a quick child theme with the option for those who are already used to the long dash?

  7. raamdev commented on Jun 29, 2014

    @raamdev
    OwnerAuthor

    I already have a child theme maintained here: https://github.com/raamdev/independent-publisher-child-theme

    You could submit a pull request with an updated style.css file.

    On Jun 29, 2014, at 16:08, Radhika Morabia notifications@github.com wrote:

    Update: I'm making it myself, here. Independent Publisher Child Theme

    —
    Reply to this email directly or view it on GitHub.

  8. raamdev commented on Jun 30, 2014

    @raamdev
    OwnerAuthor
  9. raamdev commented on Jun 30, 2014

    @raamdev
    OwnerAuthor

    Actually, I just realized this issue isn't closed yet, as the theme needs to be updated to reflect this change.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions