Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authormijorus <39067225+mijorus@users.noreply.github.com>2020-06-24 16:31:45 +0300
committerGitHub <noreply@github.com>2020-06-24 16:31:45 +0300
commitea30afa39abc90acb700536b7f663a671ac564a1 (patch)
tree8dbb1849636b94fa7ea7565b000c229beb77c949 /assets
parentc4994cc895cd5b0c7432fd112cbb65092dc72362 (diff)
allow images of any ratio to be set as thumbnails without stretching them (#216)
* allow images of any ratio to be set as thumbnails without streching them * Update _base.sass Co-authored-by: mijorus <lorenzo@mijorus.it>
Diffstat (limited to 'assets')
-rw-r--r--assets/sass/_base.sass5
1 files changed, 5 insertions, 0 deletions
diff --git a/assets/sass/_base.sass b/assets/sass/_base.sass
index 6e36bc4..689cd05 100644
--- a/assets/sass/_base.sass
+++ b/assets/sass/_base.sass
@@ -74,6 +74,11 @@ pre
.thumbnail
border: none
+.card-thumbnail
+ width: 100%
+ height: 100%
+ object-fit: cover
+
.bold-title
font-size: 6rem
line-height: 1.2