File tree Expand file tree Collapse file tree 1 file changed +31
-18
lines changed
Expand file tree Collapse file tree 1 file changed +31
-18
lines changed Original file line number Diff line number Diff line change 170170 font-weight : var (--neeto-editor-content-heading-font-weight );
171171
172172 strong {
173- font-weight : var (
174- --neeto-editor-content-heading-font-weight-bold
175- ) !important ;
173+ font-weight : var (--neeto-editor-content-heading-font-weight-bold ) !important ;
176174 }
177175 }
178176
237235 }
238236
239237 & :hover {
238+
240239 h1 ,
241240 h2 ,
242241 h3 ,
336335 align-items : center ;
337336 top : 0.25rem ;
338337 right : 0.25rem ;
338+ visibility : hidden ;
339+ opacity : 0 ;
339340
340341 & __menu {
341342 display : flex ;
348349 }
349350 }
350351
352+ & :hover {
353+ .neeto-editor-codeblock-options {
354+ visibility : visible ;
355+ opacity : 1 ;
356+ }
357+
358+ .copy-button {
359+ visibility : visible ;
360+ opacity : 1 ;
361+ }
362+ }
363+
364+ .copy-button {
365+ position : absolute ;
366+ top : 0.25rem ;
367+ right : 0.25rem ;
368+ visibility : hidden ;
369+ opacity : 0 ;
370+ }
371+
351372 counter-reset : line- number;
352373
353374 .highlight-line {
375396 content : " " ;
376397 }
377398 }
378-
379- .copy-button {
380- position : absolute ;
381- top : 10px ;
382- right : 10px ;
383- }
384399 }
385400
386- pre > code {
401+ pre > code {
387402 font-size : var (--neeto-editor-content-code-font-size );
388403 background-color : transparent ;
389404 border-width : 0 ;
395410 display : block ;
396411 width : 100% ;
397412 overflow-x : auto ;
398- padding : 2 rem 0.75rem 0.75rem 0px ;
413+ padding : 0.75 rem 0.75rem 0.75rem 0px ;
399414 }
400415
401416 // Blockquote
402417 blockquote {
403418 font-weight : var (--neeto-editor-font-medium );
404419 color : rgba (var (--neeto-editor-content-blockquote-color ));
405420 border-left-width : var (--neeto-editor-content-blockquote-border-left-width );
406- border-left-color : rgba (
407- var (--neeto-editor-content-blockquote-border-color )
408- );
409- quotes : " \201C " " \201D " " \2018 " " \2019 " ;
421+ border-left-color : rgba (var (--neeto-editor-content-blockquote-border-color ));
422+ quotes : " \201C " " \201D " " \2018 " " \2019 " ;
410423 margin-bottom : var (--neeto-editor-content-blockquote-margin-bottom );
411424 padding-left : var (--neeto-editor-content-blockquote-padding-left );
412425
415428 color : inherit ;
416429 }
417430
418- & > p ::before {
431+ & > p ::before {
419432 content : " " !important ;
420433 }
421434
422- & > p ::after {
435+ & > p ::after {
423436 content : " " !important ;
424437 }
425438 }
722735 background-color : rgb (var (--neeto-editor-gray-300 ));
723736 }
724737 }
725- }
738+ }
You can’t perform that action at this time.
0 commit comments