File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -832,3 +832,41 @@ input[type="color"] {
832832 -webkit-overflow-scrolling : touch;
833833 }
834834}
835+
836+ /* Prism Toolbar & Copy Button Styles */
837+ .code-toolbar {
838+ position : relative;
839+ }
840+
841+ .toolbar {
842+ position : absolute;
843+ top : 0.5rem ;
844+ right : 0.5rem ;
845+ opacity : 0.7 ;
846+ transition : opacity 0.3s ease;
847+ }
848+
849+ .toolbar : hover {
850+ opacity : 1 ;
851+ }
852+
853+ .toolbar-item button {
854+ background-color : var (--primary-color );
855+ color : white;
856+ border : none;
857+ border-radius : 3px ;
858+ padding : 0.3rem 0.6rem ;
859+ font-size : 0.85rem ;
860+ cursor : pointer;
861+ font-family : var (--font-sans );
862+ transition : all 0.2s ease;
863+ }
864+
865+ .toolbar-item button : hover {
866+ background-color : var (--primary-darker );
867+ transform : translateY (-1px );
868+ }
869+
870+ .toolbar-item button [data-copy-state = "copy-success" ] {
871+ background-color : # 2ea44f ;
872+ }
Original file line number Diff line number Diff line change 7070 < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css "
7171 integrity ="sha512-tN7Ec6zAFaVSG3TpNAKtk4DOHNpSwKHxxrsiw4GHKESGPs5njn/0sMCUMl2svV4wo4BK/rCP7juYz+zx+l6oeQ== "
7272 crossorigin ="anonymous " referrerpolicy ="no-referrer " />
73- <!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/plugins/toolbar/prism-toolbar.min.css" integrity="sha512-Dqf5X5AAp5789NYyWhUzDmjz6qmJ8k8pDGiQnlM6kAtjvzGlYgJ5vBSGTD2ZHJQNcaUFLI7EhDbN8XdJsKJKEQ==" crossorigin="anonymous" referrerpolicy="no-referrer" /> -->
73+ < link rel ="stylesheet "
74+ href ="https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/plugins/toolbar/prism-toolbar.min.css "
75+ crossorigin ="anonymous " referrerpolicy ="no-referrer " />
7476
7577 <!-- Structured Data -->
7678 < script type ="application/ld+json ">
You can’t perform that action at this time.
0 commit comments