Skip to content

Commit

Permalink
Some aesthetic choices
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshekey committed Apr 5, 2022
1 parent b3b88df commit c501836
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions docs/assets/less/stacks-documentation.less
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,20 @@
white-space: normal;
}

// ============================================================================
// $ CODE COPY BUTTON
// ----------------------------------------------------------------------------
.stacks-copy-btn {
.svg-icon,
.svg-icon * {
pointer-events: none;
}

.iconCheckmark {
color: var(--green-500);
}
}


// ============================================================================
// $ LISTS
Expand Down Expand Up @@ -260,6 +274,7 @@
border-radius: var(--br-md) var(--br-md) 0 0;
border: 1px solid var(--bc-medium);
max-height: 24rem;
padding-right: var(--su32);

.dark-mode({
border-color: var(--bc-lighter);
Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/copy-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
var tooltipId = "tooltip-" + (name || Math.floor(Math.random() * 1000));

var output = `<button
class="s-btn s-btn__muted s-btn__icon ps-absolute t8 r8"
class="stacks-copy-btn s-btn s-btn__muted s-btn__outlined s-btn__icon ps-absolute p4 bg-black-050 bc-black-100 t8 r8"
data-action="clipboard#copy"
data-s-tooltip-placement="top"
data-controller="s-tooltip"
Expand Down

0 comments on commit c501836

Please sign in to comment.