diff --git a/docs/src/components/code-block.vue b/docs/src/components/code-block.vue index 13ed712..5d47efe 100644 --- a/docs/src/components/code-block.vue +++ b/docs/src/components/code-block.vue @@ -7,6 +7,8 @@ content_copy + + Copied! @@ -75,7 +77,7 @@ .code-block-wrapper { min-width: 100%; - max-height: 500px; + max-height: 550px; margin: -16px; padding: 0 16px; overflow: auto; @@ -89,6 +91,25 @@ opacity: 0; transition: $swift-ease-out; } + + .copied { + padding: 8px 16px; + position: absolute; + right: -8px; + bottom: 8px; + background-color: rgba(#000, .87); + border-radius: 2px; + transform: translate3d(0, 40px, 0); + transition: $swift-ease-in-out; + color: #fff; + font-family: $font-roboto; + line-height: 1em; + + &.active { + transition: $swift-ease-out; + transform: translate3d(0, 0, 0); + } + }