Skip to content

Commit

Permalink
refactor(styleguide): extract common btn-copy styles
Browse files Browse the repository at this point in the history
[Finishes #79279548]
  • Loading branch information
gpleiss committed Dec 27, 2014
1 parent d90644a commit 935400f
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/styleguide/styleguide.scss
Original file line number Diff line number Diff line change
Expand Up @@ -365,20 +365,12 @@ blockquote {
}

.btn-copy {
@include transition-pui(background, 0.5s, ease-out);

position: absolute;
display: none;
top: 0;
right: 0;
padding: 7px 20px;
border-left: 1px solid $shadow-3;
border-bottom: 1px solid $shadow-3;
border-radius: 0;

&.zeroclipboard-is-hover {
display: block;
background-color: $neutral-11;
}
}

Expand Down Expand Up @@ -447,20 +439,12 @@ blockquote {
background-color: $bg-color-example-code;

.btn-copy {
@include transition-pui(background, 0.5s, ease-out);

position: absolute;
display: none;
top: 0;
right: 0;
padding: 7px 20px;
border-left: 1px solid $shadow-2;
border-bottom: 1px solid $shadow-2;
border-radius: 0;

&.zeroclipboard-is-hover {
display: block;
background-color: $neutral-11;
}
}

Expand Down Expand Up @@ -498,6 +482,21 @@ table.styleguide {
}
}

// copy button
.btn-copy {
@include transition-pui(background, 0.5s, ease-out);

position: absolute;
top: 0;
right: 0;
padding: 7px 20px;
border-radius: 0;

&.zeroclipboard-is-hover {
background-color: $neutral-11;
}
}

// make the grid visible

.grid-show {
Expand Down

0 comments on commit 935400f

Please sign in to comment.