aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorla-ninpre <leobrekalini@gmail.com>2021-08-21 22:41:01 +0300
committerla-ninpre <leobrekalini@gmail.com>2021-08-21 22:41:01 +0300
commitd7118a8b627e1f5c7d7ebde49b5f52c364b37b32 (patch)
tree7a2babd0ec3aa64d8acac3ca691de5111a940f0c
parent7736c6f494d7fd4b64d11f5fe36a0552bc33b034 (diff)
downloadaaoth.xyz-d7118a8b627e1f5c7d7ebde49b5f52c364b37b32.tar.gz
aaoth.xyz-d7118a8b627e1f5c7d7ebde49b5f52c364b37b32.zip
tweak logo image scaling and fix logo urls in project page
-rw-r--r--_layouts/music-project.html4
-rw-r--r--_sass/main.scss7
2 files changed, 4 insertions, 7 deletions
diff --git a/_layouts/music-project.html b/_layouts/music-project.html
index 5b32455..7ab64aa 100644
--- a/_layouts/music-project.html
+++ b/_layouts/music-project.html
@@ -12,11 +12,7 @@ layout: default
<div class="music-project-sidebar">
<h1>{{ page.title }}</h1>
<img id="logo"
- {%- if page.logo -%}
- src="{{ page.logo }}"
- {%- else -%}
src="/art/logos/thumbs/{{ page.url | split: "/" | last }}-logo_thumb.png"
- {%- endif -%}
alt="{{ page.title }} logo">
<p>{{ page.start_date | date_to_string }}&ndash;
{%- if page.end_date -%}
diff --git a/_sass/main.scss b/_sass/main.scss
index be0f8d3..74508e7 100644
--- a/_sass/main.scss
+++ b/_sass/main.scss
@@ -216,6 +216,7 @@ footer {
padding-left: 10px;
}
}
+
&-header {
margin-bottom: 2em;
ul {
@@ -234,7 +235,7 @@ footer {
}
}
-@mixin image-list-item ($width, $height) {
+@mixin image-list-item ($width, $height, $object-fit: cover) {
&-item-mask {
position: absolute;
z-index: 1;
@@ -258,7 +259,7 @@ footer {
width: 100%;
height: 100%;
image-orientation: initial;
- object-fit: cover;
+ object-fit: $object-fit;
}
}
}
@@ -321,7 +322,7 @@ footer {
flex-flow: row wrap;
justify-content: space-evenly;
- @include image-list-item(250px, 300px);
+ @include image-list-item(250px, 300px, contain);
&-item {
margin-bottom: 1em;