-
Demo
-
-
-
- {
- snippetData.code.js &&
-
- }
-
+
+
+
+ {snippetData.title}
+
+
+
+
+
Demo
+
+
+
+ {
+ snippetData.code.js &&
+
+ }
+
View snippet
-
+
);
};
diff --git a/src/docs/styles/_button.scss b/src/docs/styles/_button.scss
index 5842d51ba..30d608232 100644
--- a/src/docs/styles/_button.scss
+++ b/src/docs/styles/_button.scss
@@ -95,4 +95,8 @@
background-position-y: center;
background-position-x: 0.5rem;
padding-left: 2.5rem
+}
+
+.button.button-view {
+ font-size: 1rem;
}
\ No newline at end of file
diff --git a/src/docs/styles/_card.scss b/src/docs/styles/_card.scss
index 5c60f621c..d4281eba1 100644
--- a/src/docs/styles/_card.scss
+++ b/src/docs/styles/_card.scss
@@ -71,14 +71,9 @@
background: var(--button-example-toggler-fore-color);
}
}
- // &.short {
- // .card-bottom {
- // display: none;
- // @media screen and (min-width: $layout-large-breakpoint) {
- // display: block;
- // }
- // }
- // }
+ &.short {
+ margin-bottom: 2rem;
+ }
}
// Card sections
@@ -215,3 +210,12 @@
}
}
}
+
+.snippet-view {
+ text-align: center;
+ width: calc(100% + 2.75rem);
+ position: absolute;
+ margin-left: 0.75rem;
+ bottom: -3.5rem;
+
+}
\ No newline at end of file