Skip to content

Commit

Permalink
Add a shortcode for floating (left or right) content
Browse files Browse the repository at this point in the history
  • Loading branch information
gmantele committed Sep 30, 2024
1 parent 850cf27 commit 0796c88
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions layouts/shortcodes/floating.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="{{ if .Get 0 }}floating {{ .Get 0 }}{{ else }}floating{{ end }}">
{{ .Inner | markdownify }}
</div>
19 changes: 18 additions & 1 deletion static/css/ivoa.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ body {

h1, h2, h3 {
color: #012647;
clear: both;
}

body > main > article > header > h1 {
Expand Down Expand Up @@ -404,4 +405,20 @@ section > main.carrousel {
.sitemap .card { border: none }
.sitemap .card:nth-child(1) > .card-title { border-bottom-color: #5dbbf5 }
.sitemap .card:nth-child(2) > .card-title { border-bottom-color: #399110 }
.sitemap .card:nth-child(3) > .card-title { border-bottom-color: #aa3f3f }
.sitemap .card:nth-child(3) > .card-title { border-bottom-color: #aa3f3f }


/* =============================================================================
FLOATING
*/

.floating {
margin: 1em;
margin-top: 0;
}
.floating.left { float: left ; margin-left: 0; }
.floating.right { float: right; margin-right: 0; }

.floating > img {
max-width: 30vw;
}

0 comments on commit 0796c88

Please sign in to comment.