Skip to content

Commit

Permalink
fix: styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Raubzeug committed Feb 7, 2024
1 parent 6b38c5e commit 6e70826
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/components/DefinitionList/DefinitionList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ $block: '.#{variables.$ns}definition-list';
gap: 4px;

& + & {
margin-top: var(--g-spacing-4);
margin-block-start: var(--g-spacing-4);
}
}

&__item-note-tooltip {
margin-right: 4px;
margin-inline-end: 4px;
}

&__term-container {
Expand Down Expand Up @@ -48,7 +48,7 @@ $block: '.#{variables.$ns}definition-list';
flex: 1 0 auto;
min-width: 40px;
margin: 0 2px;
border-bottom: 1px dashed var(--g-color-text-secondary);
border-block-end: 1px dashed var(--g-color-text-secondary);
}

&__definition {
Expand All @@ -66,9 +66,9 @@ $block: '.#{variables.$ns}definition-list';
position: relative;
display: inline-flex;
align-items: center;
padding-right: variables.$normalOffset;
padding-inline-end: variables.$normalOffset;

margin-right: -(variables.$normalOffset);
margin-inline-end: -(variables.$normalOffset);

&:hover {
#{$block}__copy-button {
Expand All @@ -78,20 +78,20 @@ $block: '.#{variables.$ns}definition-list';
}

&__copy-container_icon-inside {
padding-right: unset;
margin-right: unset;
padding-inline-end: unset;
margin-inline-end: unset;

#{$block}__copy-button {
top: 0;
inset-block-start: 0;
background-color: var(--g-color-base-background);
}
}

&__copy-button {
position: absolute;
display: inline-block;
right: 0;
margin-left: 10px;
inset-inline-end: 0;
margin-inline-start: 10px;
visibility: hidden;
color: var(--g-color-text-secondary);

Expand Down

0 comments on commit 6e70826

Please sign in to comment.