-
Notifications
You must be signed in to change notification settings - Fork 112
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
Conversation
hi Khoi, thanks for helping. So I think the idea is good but have a couple of comments:
|
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. |
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 |
I am putting it directly inside article_text div on index.html:
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> |
There was a problem hiding this comment.
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 → ?
closing for now because this didn't get updates in a while |
Resolve issue #13 to add "Continue Button"