diff --git a/source/_assets/base_style.scss b/source/_assets/base_style.scss index f726c0e..5fecec3 100644 --- a/source/_assets/base_style.scss +++ b/source/_assets/base_style.scss @@ -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; } diff --git a/source/_assets/components/external-link-markers.scss b/source/_assets/components/external-link-markers.scss new file mode 100644 index 0000000..790ba31 --- /dev/null +++ b/source/_assets/components/external-link-markers.scss @@ -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'; +} diff --git a/source/_assets/components/social.scss b/source/_assets/components/social.scss new file mode 100644 index 0000000..1e06137 --- /dev/null +++ b/source/_assets/components/social.scss @@ -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; + } +} diff --git a/source/_assets/index/index.js b/source/_assets/index/index.js new file mode 100644 index 0000000..5baf72e --- /dev/null +++ b/source/_assets/index/index.js @@ -0,0 +1 @@ +import '../components/social.scss'; diff --git a/source/_assets/layout_internal/style.scss b/source/_assets/layout_internal/style.scss index f934e91..c5def8c 100644 --- a/source/_assets/layout_internal/style.scss +++ b/source/_assets/layout_internal/style.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'; } diff --git a/source/_assets/vars.scss b/source/_assets/vars.scss index d1d501a..bea17f5 100644 --- a/source/_assets/vars.scss +++ b/source/_assets/vars.scss @@ -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; diff --git a/source/index.html.twig b/source/index.html.twig index 2c7475a..11afd31 100644 --- a/source/index.html.twig +++ b/source/index.html.twig @@ -2,6 +2,10 @@ layout: default description: Личный сайт Антона Вахрушева --- +{% block css %} + +{% endblock %} + {% block content %}

Привет,

@@ -16,36 +20,39 @@ description: Личный сайт Антона Вахрушева -

Смотреть

- -

Читать

-

Написать

-