Skip to content

Commit c501836

Browse files
committed
Some aesthetic choices
1 parent b3b88df commit c501836

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

docs/assets/less/stacks-documentation.less

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,20 @@
231231
white-space: normal;
232232
}
233233

234+
// ============================================================================
235+
// $ CODE COPY BUTTON
236+
// ----------------------------------------------------------------------------
237+
.stacks-copy-btn {
238+
.svg-icon,
239+
.svg-icon * {
240+
pointer-events: none;
241+
}
242+
243+
.iconCheckmark {
244+
color: var(--green-500);
245+
}
246+
}
247+
234248

235249
// ============================================================================
236250
// $ LISTS
@@ -260,6 +274,7 @@
260274
border-radius: var(--br-md) var(--br-md) 0 0;
261275
border: 1px solid var(--bc-medium);
262276
max-height: 24rem;
277+
padding-right: var(--su32);
263278

264279
.dark-mode({
265280
border-color: var(--bc-lighter);

docs/plugins/copy-button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
var tooltipId = "tooltip-" + (name || Math.floor(Math.random() * 1000));
77

88
var output = `<button
9-
class="s-btn s-btn__muted s-btn__icon ps-absolute t8 r8"
9+
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"
1010
data-action="clipboard#copy"
1111
data-s-tooltip-placement="top"
1212
data-controller="s-tooltip"

0 commit comments

Comments
 (0)