diff --git a/assets/scss/_medias.scss b/assets/scss/_medias.scss new file mode 100644 index 0000000..c6383b8 --- /dev/null +++ b/assets/scss/_medias.scss @@ -0,0 +1,30 @@ +.audio, .stream { + audio { + width: 100%; + border-radius: .5rem; + } + figcaption p { + text-align: left; + font-size: $font-size-small; + padding-left: .5rem; + } + > p { + font-size: $font-size-small; + font-variant: small-caps; + } +} + +figure { + background-color: lightgrey; + padding: .4rem; + border-radius: 5px; + margin-right: .4rem; + margin-left: .4rem; + img { + width: 100%; + } + p { + text-align: center; + margin: .2rem 0; + } +} diff --git a/assets/scss/main.scss b/assets/scss/main.scss index 30bc88e..b144ea2 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -11,6 +11,7 @@ @import '_layout.scss'; @import '_lists.scss'; @import '_main_body.scss'; +@import '_medias.scss'; @import '_post.scss'; /* @@ -30,23 +31,6 @@ pre { max-width: 95vw; } -figure { - background-color: lightgrey; - padding: .4rem; - border-radius: 5px; - margin-right: .4rem; - margin-left: .4rem; -} - -figure img { - width: 100%; -} - -figure p { - text-align: center; - margin: .2rem 0; -} - .terms { display: flex; flex-wrap: wrap; diff --git a/layouts/shortcodes/audio.html b/layouts/shortcodes/audio.html new file mode 100644 index 0000000..21853db --- /dev/null +++ b/layouts/shortcodes/audio.html @@ -0,0 +1,15 @@ +
+

{{ .Get "legend" }}

+ +

+ opus / + ogg / + mp3 +

+
diff --git a/layouts/shortcodes/stream.html b/layouts/shortcodes/stream.html new file mode 100644 index 0000000..db28df2 --- /dev/null +++ b/layouts/shortcodes/stream.html @@ -0,0 +1,9 @@ +
+

{{ .Get "legend" }}

+ +