Skip to content

Commit

Permalink
fix(code-snippet): use Carbon focus outline and reposition scroll bar (
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod authored Feb 4, 2020
1 parent 1526db5 commit ac8bcbd
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,21 @@
max-width: rem(760px);
min-width: rem(320px);
height: $carbon--spacing-08;
padding: 0 56px 0 $carbon--spacing-05;
padding: 0 $carbon--spacing-08 0 0;
}

.#{$prefix}--snippet--single .#{$prefix}--snippet-container {
position: relative;
display: flex;
align-items: center;
height: 100%;
padding-left: $carbon--spacing-05;
border-right: solid $carbon--spacing-05 transparent;
overflow-x: auto;
position: relative;
padding: 0 0 $carbon--spacing-05 0;
height: rem(56px);

&:focus {
@include focus-outline('outline');
}
}

.#{$prefix}--snippet--single pre {
Expand Down

0 comments on commit ac8bcbd

Please sign in to comment.