Skip to content

Commit f7659e6

Browse files
authored
fix: port over missing UIKit Sass that wasn't added in the original PR
1 parent 31ccaaf commit f7659e6

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

packages/uikit-workshop/src/sass/pattern-lab.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@
6262
position: absolute;
6363
top: 0.5rem;
6464
right: 0.5rem;
65+
66+
@supports (position: sticky){
67+
transform: translateY(-0.7rem);
68+
float: right;
69+
position: sticky;
70+
top: 1rem;
71+
right: 0;
72+
margin-top: -2rem;
73+
}
74+
6575
padding: 0.2rem 0.4rem;
6676
background-color: $pl-color-gray-07;
6777
color: $pl-color-gray-87;
@@ -81,6 +91,27 @@
8191
}
8292
}
8393

94+
.pl-c-code-copy-btn__icon {
95+
height: 1em;
96+
width: 1em;
97+
}
98+
99+
.pl-c-code-copy-btn__icon--paste {
100+
display: none;
101+
102+
.is-copied & {
103+
display: inline-block;
104+
}
105+
}
106+
107+
.pl-c-code-copy-btn__icon--copy {
108+
display: inline-block;
109+
110+
.is-copied & {
111+
display: none;
112+
}
113+
}
114+
84115
.pl-c-main {
85116
overflow: hidden;
86117
max-width: 100vw;

0 commit comments

Comments
 (0)