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

move link style to its own class and apply it for Conitnue Reading button #14

Closed
wants to merge 4 commits into from

Conversation

klt39429
Copy link

Resolve issue #13 to add "Continue Button"
screen shot 2015-01-27 at 7 01 59 pm

@gfidente
Copy link
Owner

hi Khoi, thanks for helping.

So I think the idea is good but have a couple of comments:

  • I think this is meant to close issue Add "Continue Reading" button #13 right? Can you mention that in the pull request as described here: https://github.com/blog/1506-closing-issues-via-pull-requests
  • I would prefer to see this implemented without changing the existing styles for the other elements, making the button to inherit what it needs and add what is missing based on position, what do you think about? I haven't tried myself though so I don't know how much hacking that would need.

@klt39429
Copy link
Author

Hi Giulio, I would love to help and learn.

Are you referring to mixins? So we will have a class that defines the button style and the a tag from aside can include it? Then the a tag inside article can just use that class as is (no need to change base.html). For example:

  .button_link {
    padding: 5px 15px 5px 15px;
    border: 3px solid @light-grey;
    .border-radius(15px);
    color: @red;
    text-decoration: none !important;
    font-size: 16px;
  }


aside {
  div#user_meta {
    ul {
      li {
        a {
          .button_link
        }
      }

It would be neat to have a central place to update the style for those a tags as we can include other stuff in the future like hover color, font, style, etc.

@gfidente
Copy link
Owner

gfidente commented Feb 2, 2015

I am referring to mixins yes but you can't put that in the user_meta or it would only work for links in the left side of the page.

Instead you should customize the appearance of the 'a' items with 'button_link' applied into div#article_text

@klt39429
Copy link
Author

klt39429 commented Feb 2, 2015

I am putting it directly inside article_text div on index.html:

<a class="button_link" href="{{ SITEURL }}/{{ article.url }}">Continue reading →</a>

Any buttons in the future can just use the class button_link and not have to worry about where they are semantically.

@@ -7,6 +7,7 @@
</div>
<div class="article_text">
{{ article.summary }}
<a class="button_link" href="{{ SITEURL }}/{{ article.url }}">Continue reading →</a>
Copy link
Owner

Choose a reason for hiding this comment

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

can you replace the arrow with the html code → ?

@gfidente
Copy link
Owner

closing for now because this didn't get updates in a while

@gfidente gfidente closed this Apr 15, 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.

2 participants