We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b215643 commit ce6e7f7Copy full SHA for ce6e7f7
styles/components/blocks/code.scss
@@ -127,9 +127,18 @@
127
height: 2rem;
128
width: 2rem;
129
margin-bottom: 0;
130
+ display: flex;
131
+ align-items: center;
132
- // Hide "copy" string that causes x-overflow.
- font-size: 0;
133
+ span {
134
+ position: absolute;
135
+ right: calc(100% + .25rem);
136
+ color: #ffffff;
137
+ font-family: monospace;
138
+ font-size: .8rem;
139
+ font-weight: 400;
140
+ opacity: 0;
141
+ }
142
143
&:before {
144
content:url('/clipboard.svg');
@@ -159,6 +168,10 @@
159
168
160
169
opacity:.5;
161
170
}
171
+
172
173
+ opacity: 1;
174
162
175
163
176
164
177
&:active {
0 commit comments