diff options
author | zzossig <zzossig@gmail.com> | 2020-02-20 04:19:33 +0300 |
---|---|---|
committer | zzossig <zzossig@gmail.com> | 2020-02-20 04:19:33 +0300 |
commit | 00e21e7bcd3bb1e140d6fee364fc42bc3ea0f206 (patch) | |
tree | c3be06354ca52a821c63e1e6b3a569a6ee6a91ec /assets | |
parent | 06b1f5d4b9552aec9a2451bdb2fe49c17273153f (diff) |
gallery image pooly stretched bug fixed
fixed #188
Diffstat (limited to 'assets')
-rw-r--r-- | assets/sass/layout/_navigation.scss | 2 | ||||
-rw-r--r-- | assets/sass/pages/_gallery.scss | 11 |
2 files changed, 9 insertions, 4 deletions
diff --git a/assets/sass/layout/_navigation.scss b/assets/sass/layout/_navigation.scss index 587447c..31d9db2 100644 --- a/assets/sass/layout/_navigation.scss +++ b/assets/sass/layout/_navigation.scss @@ -293,7 +293,7 @@ } &--item { - padding: 0.25rem 0.75rem; + padding: 0.5rem 2.25rem !important; height: auto; margin: auto; min-width: 40px; diff --git a/assets/sass/pages/_gallery.scss b/assets/sass/pages/_gallery.scss index 8a077fb..148d29f 100644 --- a/assets/sass/pages/_gallery.scss +++ b/assets/sass/pages/_gallery.scss @@ -74,9 +74,7 @@ &__desc { position: absolute; left: 0; - right: 0; top: 0; - bottom: 0; padding: 0.5rem; width: 100%; height: 100%; @@ -86,7 +84,6 @@ font-weight: 700; cursor: pointer; - @include truncate(350px); @include box-shadow(0, 0, 0, 0, rgba(0, 0, 0, 0)); @include on-event { @include box-shadow(0, 4px, 4px, 0, rgba(0, 0, 0, 0.4)); @@ -101,6 +98,7 @@ position: absolute; left: 50%; top: 50%; + word-wrap: break-word; @include flexbox(); @include flex-direction(column); @@ -115,5 +113,12 @@ } } } + + @media only screen and (max-width: 600px) { + img { + object-fit: cover; + max-height: 300px; + } + } } }
\ No newline at end of file |