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
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ a {
color: #000000;
text-decoration: none;
}
.button_link {
color: #000000;
padding: 5px 15px 5px 15px;
border: 3px solid #eeeeee;
border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
color: #999999;
text-decoration: none !important;
font-size: 16px;
}
hr {
color: #eeeeee;
background-color: #eeeeee;
Expand Down Expand Up @@ -41,12 +52,15 @@ aside div#user_meta ul li {
line-height: 3em;
}
aside div#user_meta ul li a {
color: #000000;
padding: 5px 15px 5px 15px;
border: 3px solid #eeeeee;
border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
color: #999999;
text-decoration: none !important;
font-size: 16px;
}
main header {
padding: 40px;
Expand Down
15 changes: 11 additions & 4 deletions static/css/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ a {
text-decoration: none;
}

.button_link {
Copy link
Owner

Choose a reason for hiding this comment

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

I think this should not be set globally but rather as a specialization of the a objects found within article_text

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

hr {
color: @light-grey;
background-color: @light-grey;
Expand Down Expand Up @@ -66,10 +76,7 @@ aside {
line-height: 3em;

a {
padding: 5px 15px 5px 15px;
border: 3px solid @light-grey;
.border-radius(15px);
color: @med-grey;
.button_link;
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think we want this applied to aside_div a objects

}
}
}
Expand Down
1 change: 1 addition & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ <h3><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h3>
</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 → ?

</div>
</article>
{% if not loop.last %}
Expand Down