From 62e4c68907d8d33709c2c1f92a161dff00b3d5f2 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 22:01:36 +0200 Subject: Adding upstream version 0.11.2. Signed-off-by: Daniel Baumann --- docs/assets/main.scss | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 docs/assets/main.scss (limited to 'docs/assets/main.scss') 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; + } +} + -- cgit v1.2.3