aboutsummaryrefslogtreecommitdiffstats
path: root/app/assets/stylesheets/layout/_scroller.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/layout/_scroller.scss')
-rw-r--r--app/assets/stylesheets/layout/_scroller.scss16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/assets/stylesheets/layout/_scroller.scss b/app/assets/stylesheets/layout/_scroller.scss
new file mode 100644
index 0000000..9b58ef7
--- /dev/null
+++ b/app/assets/stylesheets/layout/_scroller.scss
@@ -0,0 +1,16 @@
+/**
+ * Horizontal scroller (<figure>)
+ */
+
+// Wrapper to make any content responsive across all viewports
+figure {
+ display: block;
+ margin: 0;
+ padding: 0;
+ overflow-x: auto;
+
+ figcaption {
+ padding: calc(var(--spacing) * 0.5) 0;
+ color: var(--muted-color);
+ }
+}