3939 border-radius : var (--border-radius-l );
4040 overflow : auto;
4141 font-family : var (--font-code );
42- font-size : var (--font-size-small );
42+ font-size : var (--font-size-xs );
4343 line-height : var (--line-height-code );
4444 color : var (--code-block-text );
4545 box-sizing : border-box;
6868 font-weight : 500 ;
6969 color : var (--color-syntax-cpp-text ) !important ;
7070 white-space : break-spaces !important ;
71+ font-size : inherit;
72+ line-height : var (--line-height-code );
7173}
7274
7375/* CTA button in card */
@@ -136,19 +138,15 @@ html.dark .code-block-card--grey {
136138.code-block-card__heading {
137139 margin : 0 ;
138140 padding : 0 var (--space-card ) var (--space-card ) var (--space-card );
139- font-size : var (--font-size-large );
140- font-weight : var (--font-weight-medium );
141- line-height : var (--line-height-tight );
142- font-family : var (--font-display );
143- color : var (--color-text-primary );
144141}
145142
146143.code-block-card__description {
147144 padding : var (--space-card ) var (--space-card ) var (--space-default )
148145 var (--space-card );
149146 margin : 0 0 var (--space-medium );
150147 font-size : var (--font-size-medium );
151- line-height : var (--line-height-relaxed );
148+ line-height : var (--line-height-default );
149+ letter-spacing : var (--letter-spacing-tight );
152150 color : var (--color-text-secondary );
153151}
154152
@@ -163,12 +161,14 @@ html.dark .code-block-card--grey {
163161 white-space : pre;
164162 min-height : 1em ;
165163 overflow : hidden;
164+ font-size : inherit;
165+ line-height : inherit;
166166}
167167
168168.code-block__copy {
169169 position : absolute;
170- top : var (--space-default );
171- right : var (--space-default );
170+ top : var (--space-card );
171+ right : var (--space-card );
172172 width : var (--code-block-copy-icon-size );
173173 height : var (--code-block-copy-icon-size );
174174 padding : 0 ;
0 commit comments