summaryrefslogtreecommitdiffstats
path: root/docs/assets/main.scss
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docs/assets/main.scss83
1 files changed, 83 insertions, 0 deletions
diff --git a/docs/assets/main.scss b/docs/assets/main.scss
new file mode 100644
index 0000000..24d9dbd
--- /dev/null
+++ b/docs/assets/main.scss
@@ -0,0 +1,83 @@
+---
+---
+
+@import "{{ site.theme }}";
+
+#playground-box {
+ font-size: x-large;
+ border-radius: 25px;
+ background: #8d8;
+ padding: 20px;
+ display: inline-block;
+}
+
+#playground-box h4 {
+ margin-bottom: 0;
+}
+
+#playground-box code {
+ padding-left: 20px;
+ background: #444;
+ border-color: #444;
+}
+
+#playground-box code a {
+ padding-right: 20px;
+ color: white;
+}
+
+#playground-box .prompt {
+ color: #4f4;
+}
+
+
+pre.highlight {
+ padding: 8px 12px;
+ position: relative;
+
+ // override skeleton styles
+ > code {
+ border: 0;
+ overflow-x: auto;
+ padding-right: 0;
+ padding-left: 0;
+ }
+
+ &.highlight {
+ border-left: 15px solid #35383c;
+ color: #c1c2c3;
+ overflow: auto;
+ white-space: pre;
+ word-wrap: normal;
+
+ &,
+ code {
+ background-color: #222;
+ font-size: 14px;
+ }
+ }
+
+ // code to clipboard
+ .copy {
+ color: #4AF626;
+ position: absolute;
+ right: 1.2rem;
+ top: 1.2rem;
+ opacity: 0;
+
+ &:active,
+ &:focus,
+ &:hover {
+ background: rgba(0, 0, 0, 0.7);
+ opacity: 1;
+ }
+ }
+
+ &:active .copy,
+ &:focus .copy,
+ &:hover .copy {
+ background: rgba(0, 0, 0, 0.7);
+ opacity: 1;
+ }
+}
+