We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31ccaaf commit f7659e6Copy full SHA for f7659e6
1 file changed
packages/uikit-workshop/src/sass/pattern-lab.scss
@@ -62,6 +62,16 @@
62
position: absolute;
63
top: 0.5rem;
64
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
75
padding: 0.2rem 0.4rem;
76
background-color: $pl-color-gray-07;
77
color: $pl-color-gray-87;
@@ -81,6 +91,27 @@
81
91
}
82
92
83
93
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
109
110
111
112
113
114
84
115
.pl-c-main {
85
116
overflow: hidden;
86
117
max-width: 100vw;
0 commit comments