File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,36 +35,3 @@ const highlightedCode = await highlightCode(code, lang)
3535 </button >
3636</div >
3737
38- <style >
39- .code-copy {
40- position: relative;
41- display: inline-flex;
42- align-items: center;
43- justify-content: center;
44- gap: 0.5rem;
45- min-height: 2.5rem;
46- margin: 0;
47- padding: 0.75rem 1rem;
48- font-size: var(--font-size-md);
49- background-color: var(--bg-1);
50- border: 1px solid var(--border-color-translucent);
51- border-radius: var(--border-radius-lg);
52- }
53-
54- .code-copy :global(pre) {
55- margin: 0;
56- background-color: transparent !important;
57- }
58-
59- .code-copy :global([data-bd-clipboard]) {
60- position: static;
61- display: flex;
62- align-items: center;
63- justify-content: center;
64- width: 1.5rem;
65- height: 1.5rem;
66- flex-shrink: 0;
67- padding: 0;
68- margin: -0.5rem -0.25rem -0.5rem 1rem;
69- }
70- </style >
Original file line number Diff line number Diff line change 4646 margin-inline-end : .5rem ;
4747 margin-top : .5rem ;
4848 }
49+
50+ .code-copy {
51+ position : relative ;
52+ display : inline-flex ;
53+ gap : .5rem ;
54+ align-items : center ;
55+ justify-content : center ;
56+ min-height : 2.5rem ;
57+ padding : .75rem 1rem ;
58+ margin : 0 ;
59+ font-size : var (--bs-font-size-md );
60+ background-color : var (--bs-bg-1 );
61+ border : 1px solid var (--bs-border-color-translucent );
62+ @include border-radius (var (--bs-radius-7 ));
63+
64+ pre {
65+ margin : 0 ;
66+ font-size : var (--bs-font-size-md ) !important ; // stylelint-disable-line declaration-no-important
67+ background-color : transparent !important ; // stylelint-disable-line declaration-no-important
68+ }
69+
70+ [data-bd-clipboard ] {
71+ position : static ;
72+ display : flex ;
73+ flex-shrink : 0 ;
74+ align-items : center ;
75+ justify-content : center ;
76+ width : 1.5rem ;
77+ height : 1.5rem ;
78+ padding : 0 ;
79+ margin : -.5rem -.25rem -.5rem 1rem ;
80+ }
81+ }
4982}
You can’t perform that action at this time.
0 commit comments