@@ -536,65 +536,6 @@ h6:hover .zola-anchor {
536536 opacity : 1 ;
537537}
538538
539- /* Info boxes / Callouts */
540- @utility callout {
541- padding : var (--space-lg ) var (--space-xl );
542- margin : var (--space-xl ) 0 ;
543- border-left : 4px solid;
544- border-radius : var (--radius-lg );
545- box-shadow : var (--shadow-sm );
546- position : relative;
547- }
548-
549- .callout ::before {
550- content : '' ;
551- position : absolute;
552- top : var (--space-lg );
553- left : var (--space-lg );
554- font-size : var (--text-2xl );
555- line-height : 1 ;
556- }
557-
558- .callout-info {
559- background : rgba (59 , 130 , 246 , 0.05 );
560- border-left-color : # 3b82f6 ;
561- }
562-
563- .callout-info ::before {
564- content : 'ℹ️' ;
565- }
566-
567- .callout-warning {
568- background : rgba (245 , 158 , 11 , 0.05 );
569- border-left-color : # f59e0b ;
570- }
571-
572- .callout-warning ::before {
573- content : '⚠️' ;
574- }
575-
576- .callout-success {
577- background : rgba (16 , 185 , 129 , 0.05 );
578- border-left-color : # 10b981 ;
579- }
580-
581- .callout-success ::before {
582- content : '✅' ;
583- }
584-
585- .callout-error {
586- background : rgba (239 , 68 , 68 , 0.05 );
587- border-left-color : # ef4444 ;
588- }
589-
590- .callout-error ::before {
591- content : '❌' ;
592- }
593-
594- .callout p : first-of-type {
595- margin-left : 2em ;
596- }
597-
598539/* API documentation specific */
599540.api-doc {
600541 margin : var (--space-2xl ) 0 ;
@@ -635,12 +576,7 @@ h6:hover .zola-anchor {
635576 line-height : var (--leading-relaxed );
636577}
637578
638- /* Code examples with copy button */
639- .code-block-wrapper {
640- position : relative;
641- margin : var (--space-xl ) 0 ;
642- }
643-
579+ /* Code examples with header */
644580.code-block-header {
645581 display : flex;
646582 justify-content : space-between;
@@ -655,28 +591,10 @@ h6:hover .zola-anchor {
655591 color : var (--color-light-text-secondary );
656592}
657593
658- .code-block-wrapper pre {
659- margin : 0 ;
594+ .code-block-header + pre {
660595 border-radius : 0 0 var (--radius-lg ) var (--radius-lg );
661596}
662597
663- .copy-code-button {
664- padding : var (--space-xs ) var (--space-md );
665- font-size : var (--text-xs );
666- font-weight : 600 ;
667- color : var (--color-light-link );
668- background : transparent;
669- border : 1px solid var (--color-light-link );
670- border-radius : var (--radius-sm );
671- cursor : pointer;
672- transition : all var (--duration-fast ) var (--ease-out );
673- }
674-
675- .copy-code-button : hover {
676- background : var (--color-light-surface-hover );
677- transform : translateY (-1px );
678- }
679-
680598.copy-code-button : active {
681599 transform : translateY (0 );
682600}
0 commit comments