Rewrite index page

This commit is contained in:
2018-06-24 15:28:09 +03:00
parent adff4807dd
commit 071b4f6904
8 changed files with 76 additions and 48 deletions

View File

@ -22,25 +22,9 @@ h6 {
font-weight: normal;
}
%external-link-icon {
display: inline-block;
margin-left: 0.6em;
color: $base-font-color;
font-size: $base-font-size - 4px;
@media (max-width: $first-media-step) {
font-size: $base-font-size - 2px;
}
}
a[href*="//github.com"]:after {
@extend %external-link-icon;
font-family: 'Font Awesome 5 Brands', serif;
content: '\f09b';
}
a[target="_blank"]:not([href*="//github.com"]):after {
@extend %external-link-icon;
font-family: 'Font Awesome 5 Free', serif;
content: '\f35d';
.hr-line {
height: 0;
display: block;
border-bottom: 1px solid #eee;
margin: 2em 0;
}

View File

@ -0,0 +1,22 @@
%external-link-icon {
display: inline-block;
margin-left: 0.6em;
color: $base-font-color;
font-size: $base-font-size - 4px;
@media (max-width: $first-media-step) {
font-size: $base-font-size - 2px;
}
}
a[href*="//github.com"]:after {
@extend %external-link-icon;
font-family: 'Font Awesome 5 Brands', serif;
content: '\f09b';
}
a[target="_blank"]:not([href*="//github.com"]):after {
@extend %external-link-icon;
font-family: 'Font Awesome 5 Free', serif;
content: '\f35d';
}

View File

@ -0,0 +1,17 @@
.social {
list-style: none;
padding: 0;
margin: 3em 0;
display: block;
text-align: center;
&__item {
display: inline-block;
margin: 0 0.5em;
font-size: 180%;
}
&__link {
color: inherit;
}
}

View File

@ -0,0 +1 @@
import '../components/social.scss';

View File

@ -13,11 +13,7 @@
right: $mobile-margin;
}
}
}
.hr-line {
height: 0;
display: block;
border-bottom: 1px solid #eee;
margin: 2em 0;
// extensions
@import '../components/external-link-markers';
}

View File

@ -2,7 +2,7 @@ $base-font-family: 'PT Serif', serif;
// Базовый размер шрифта
$base-font-size: 20px;
$base-font-color: #333;
$base-font-color: #000;
// Ширина страницы
$preferred-width: 700px;