From e851a892ef6aec1992f976e4b58cbec0d9e09596 Mon Sep 17 00:00:00 2001 From: carbon-bot Date: Fri, 10 Jan 2020 00:11:26 +0000 Subject: [PATCH] chore(project): sync generated files --- packages/components/docs/sass.md | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/packages/components/docs/sass.md b/packages/components/docs/sass.md index ff5a7ff996f3..38da3b141fc6 100644 --- a/packages/components/docs/sass.md +++ b/packages/components/docs/sass.md @@ -13455,6 +13455,37 @@ Code snippet styles outline: none; border: 2px solid $focus; } + + &::before { + @include tooltip--caret; + display: none; + } + + .#{$prefix}--copy-btn__feedback { + @include tooltip--content('icon'); + clip: auto; + margin: auto; + overflow: visible; + display: none; + } + @include tooltip--placement('icon', 'bottom', 'center'); + + &.#{$prefix}--copy-btn--animating::before, + &.#{$prefix}--copy-btn--animating .#{$prefix}--copy-btn__feedback { + display: block; + } + + &.#{$prefix}--copy-btn--animating.#{$prefix}--copy-btn--fade-out::before, + &.#{$prefix}--copy-btn--animating.#{$prefix}--copy-btn--fade-out + .#{$prefix}--copy-btn__feedback { + animation: $duration--fast-02 motion(standard, productive) hide-feedback; + } + + &.#{$prefix}--copy-btn--animating.#{$prefix}--copy-btn--fade-in::before, + &.#{$prefix}--copy-btn--animating.#{$prefix}--copy-btn--fade-in + .#{$prefix}--copy-btn__feedback { + animation: $duration--fast-02 motion(standard, productive) show-feedback; + } } .#{$prefix}--snippet--inline code { @@ -13618,6 +13649,16 @@ Code snippet styles border: none; } + // TODO: remove copy button styles above + .#{$prefix}--snippet .#{$prefix}--copy-btn { + position: absolute; + top: 0; + right: 0; + @include carbon--font-family( + 'sans' + ); // Override inherited rule in code snippet + } + // Show more / less button button.#{$prefix}--btn.#{$prefix}--snippet-btn--expand { display: inline-flex;