diff --git a/_quarto.yml b/_quarto.yml index 2dc1fe8..381a59c 100644 --- a/_quarto.yml +++ b/_quarto.yml @@ -48,6 +48,7 @@ format: theme: - cosmo - assets/stylesheets/theme.scss + - assets/stylesheets/authors.scss include-after-body: - file: assets/scripts/ordinal-dates.html grid: diff --git a/assets/ejs/authors.ejs b/assets/ejs/authors.ejs index 8413e59..f0f0ff6 100644 --- a/assets/ejs/authors.ejs +++ b/assets/ejs/authors.ejs @@ -2,27 +2,31 @@
<% for (const item of items) { %>
> -

- - <%= item.title %> picture -
- <%- item.title %> -
- <% if (item.stars || item.extensions) { %> -
- <% if (item.url) { %> - - - - <% } %> - - <%= item.stars %> - - - <%= item.extensions %> - - <% } %> -

+ +
+ + <%= item.title %> picture +
+ <%- item.title %> +

+ <% if (item.stars || item.extensions) { %> +
+ <% if (item.url) { %> + +
+ + <% } %> + + <%= item.stars %> + + + <%= item.extensions %> + + <% } %> +

+
+
+
<% } %>
diff --git a/assets/stylesheets/authors.scss b/assets/stylesheets/authors.scss new file mode 100644 index 0000000..fd5a859 --- /dev/null +++ b/assets/stylesheets/authors.scss @@ -0,0 +1,51 @@ +/*-- scss:defaults --*/ + +/*-- scss:rules --*/ +.hovercard { + flex: 0 50%; + background: $light; + box-shadow: 0 2px 4px 0 rgba($gray-300, 0.2), 0 5px 15px 0 rgba($gray-700, 0.15); + border-radius: 15px; + margin: 8px; + padding: 10px 15px; + position: relative; + z-index: 1; + overflow: hidden; + min-height: 265px; + transition: 0.7s; +} + +.hovercard:hover { + background: $primary; + color: $light; + transform: scale(1.1); + z-index: 9; +} + +.hovercard:hover::before { + background: rgba($gray-300, 0.1); +} + +.hovercard:hover .card-title, +.hovercard:hover .card-text, +.hovercard:hover a { + color: $light; +} + +.ribbon { + position: absolute; + top: 25px; + right: -50px; + width: 200px; + padding: 5px; + background: $primary; + color: $light; + text-align: center; + transform: rotate(45deg); + font-weight: bold; +} + +.hovercard:hover .ribbon { + background: $light; + color: $primary; +}