Rewrite index page
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
22
source/_assets/components/external-link-markers.scss
Normal file
22
source/_assets/components/external-link-markers.scss
Normal 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';
|
||||
}
|
17
source/_assets/components/social.scss
Normal file
17
source/_assets/components/social.scss
Normal 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;
|
||||
}
|
||||
}
|
1
source/_assets/index/index.js
Normal file
1
source/_assets/index/index.js
Normal file
@ -0,0 +1 @@
|
||||
import '../components/social.scss';
|
@ -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';
|
||||
}
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user