Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Update look and feel of examples and copy buttons" #33568

Merged
merged 1 commit into from Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
17 changes: 8 additions & 9 deletions site/assets/scss/_clipboard-js.scss
Expand Up @@ -18,21 +18,20 @@

.btn-clipboard {
position: absolute;
top: .35rem;
right: .5rem;
top: .65rem;
right: .65rem;
z-index: 10;
display: block;
padding: .25rem .5rem;
@include font-size(.75em);
color: $gray-700;
user-select: none;
background-color: transparent;
border: 0;
@include font-size(.65em);
color: $primary;
background-color: $white;
border: 1px solid;
@include border-radius();

&:hover,
&:focus {
color: $gray-900;
background-color: $gray-200;
color: $white;
background-color: $primary;
}
}
37 changes: 5 additions & 32 deletions site/assets/scss/_component-examples.scss
Expand Up @@ -83,8 +83,6 @@
@include border-top-radius(.25rem);

+ .bd-clipboard + .highlight {
border-top: 0;
@include border-top-radius(0);
@include border-bottom-radius(.25rem);
}
}
Expand Down Expand Up @@ -289,20 +287,18 @@
//

.highlight {
position: relative;
padding: 3.5rem 1rem 0;
padding: 1rem;
margin-bottom: 1rem;
overflow: auto;
background-color: $gray-100;
border: 1px solid $gray-300;

@include media-breakpoint-up(sm) {
@include border-radius(.25rem);
padding: 1rem 1.5rem;
}

pre {
padding: 0 0 1rem;
margin-bottom: .5rem;
padding: 0;
margin-top: .65rem;
margin-bottom: .65rem;
white-space: pre;
background-color: transparent;
border: 0;
Expand All @@ -324,26 +320,3 @@
margin-left: 0;
}
}

.bd-example-multiple-langs + .bd-clipboard + .highlight {
margin-bottom: 0;
border-bottom: 0;
@include border-bottom-radius(0);
}
.highlight + .bd-clipboard + .highlight {
@include border-top-radius(0);
}

[data-lang]::before {
position: absolute;
top: 0;
right: 0;
left: 0;
padding: .5rem 1rem;
@include font-size(.875rem);
color: $gray-700;
text-transform: uppercase;
content: attr(data-lang);
user-select: none;
border-bottom: 1px solid $gray-300;
}