Skip to content

Commit a73e4d1

Browse files
author
a.shtyrnyaev
committed
- upgrade link and icon for buttons shareing in social network
1 parent 4be5f5d commit a73e4d1

File tree

2 files changed

+37
-11
lines changed

2 files changed

+37
-11
lines changed

assets/css/all.css

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,17 @@ th {
429429
font-family: 'icomoon';
430430
src: url('../fonts/icomoon.eot');
431431
src: url('../fonts/icomoon.eot') format('embedded-opentype'),
432-
url('../fonts/IcoMoon-Free.ttf') format('truetype'),
432+
url('../fonts/icomoon.ttf') format('truetype');
433+
url('../fonts/icomoon.woff') format('woff'),
434+
url('../fonts/icomoon.svg') format('svg');
435+
font-weight: normal;
436+
font-style: normal;
437+
}
438+
@font-face {
439+
font-family: 'icomoon-plus';
440+
src: url('../fonts/icomoon.eot');
441+
src: url('../fonts/icomoon.eot') format('embedded-opentype'),
442+
url('../fonts/IcoMoon-Free.ttf') format('truetype');
433443
url('../fonts/icomoon.woff') format('woff'),
434444
url('../fonts/icomoon.svg') format('svg');
435445
font-weight: normal;
@@ -451,6 +461,21 @@ th {
451461
-moz-osx-font-smoothing: grayscale;
452462
}
453463

464+
[class^="icons-"], [class*=" icons-"] {
465+
/* use !important to prevent issues with browser extensions that change fonts */
466+
font-family: 'icomoon-plus' !important;
467+
speak: none;
468+
font-style: normal;
469+
font-weight: normal;
470+
font-variant: normal;
471+
text-transform: none;
472+
line-height: 1;
473+
474+
/* Better Font Rendering =========== */
475+
-webkit-font-smoothing: antialiased;
476+
-moz-osx-font-smoothing: grayscale;
477+
}
478+
454479
.icon-slack:before {
455480
content: "\e901";
456481
}
@@ -466,22 +491,22 @@ th {
466491
.icon-twitter:before {
467492
content: "\ea96";
468493
}
469-
.icon-vk:before {
494+
.icons-vk:before {
470495
content: "\ea98";
471496
}
472497
.icon-yt:before {
473498
content: "\ea9d";
474499
}
475-
.icon-youtube:before {
500+
.icons-youtube:before {
476501
content: "\ea9e";
477502
}
478-
.icon-telegram:before {
503+
.icons-telegram:before {
479504
content: "\ea95";
480505
}
481-
.icon-g-plus:before {
506+
.icons-g-plus:before {
482507
content: "\ea8b";
483508
}
484-
.icon-linkd:before {
509+
.icons-linkd:before {
485510
content: "\eac9";
486511
}
487512

templates/post.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{% extends 'base.html' %}
2+
3+
{% load staticfiles nginx_image %}
24
{% block title %} | {{ post.name }} {% endblock %}
35
{% block head %}
46

@@ -12,7 +14,6 @@
1214

1315
{% endblock %}
1416
{% block main_content %}
15-
{% load staticfiles nginx_image %}
1617
<section class="news-section" id="news">
1718
<div class="container">
1819
<div class="js-masonry" data-masonry-options='{"columnWidth": 2, "itemSelector": ".grid-item" }'>
@@ -27,10 +28,10 @@
2728

2829
<a href="https://twitter.com/intent/tweet?url=https://python.ru/post/{{ post.id }}&amp;text=@moscowpython {{ post.name }}%20 &amp;via=@moscowpython"><span class="icon-twitter"></span></a>
2930

30-
<a rel="nofollow" href="http://vkontakte.ru/share.php?url=https://python.ru/post/{{ post.id }}"><span class="icon-vk"></span></a>
31-
<a rel="nofollow" href="https://t.me/share/url?url=https://python.ru/post/{{ post.id }}"><span class="icon-telegram"></span></a>
32-
<a rel="nofollow" href=" http://www.linkedin.com/shareArticle?mini=true&url=https://python.ru/post/{{ post.id }}"><span class="icon-linkd"></span></a>
33-
<a rel="nofollow" href="https://plus.google.com/share?url=https://python.ru/post/{{ post.id }}"><span class="icon-g-plus"></span></a>
31+
<a rel="nofollow" href="http://vkontakte.ru/share.php?url=https://python.ru/post/{{ post.id }}"><span class="icons-vk"></span></a>
32+
<a rel="nofollow" href="https://t.me/share/url?url=https://python.ru/post/{{ post.id }}"><span class="icons-telegram"></span></a>
33+
<a rel="nofollow" href=" http://www.linkedin.com/shareArticle?mini=true&url=https://python.ru/post/{{ post.id }}"><span class="icons-linkd"></span></a>
34+
<a rel="nofollow" href="https://plus.google.com/share?url=https://python.ru/post/{{ post.id }}"><span class="icons-g-plus"></span></a>
3435
</div>
3536
<h1>{{ post.name }}</h1>
3637
{% if post.url %}<time datetime="">{{ post.url }}</time>{% endif %}

0 commit comments

Comments
 (0)