File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 126126
127127/* Snippets */
128128
129+ .snippet {
130+ cursor : default;
131+ }
132+
129133.snippet .snippet-meta {
130134 border-top : 2px solid var (--inactive-bg );
131135 color : var (--inactive-fg );
139143}
140144
141145.snippet .buttons {
142- --icon-size : 24 px ;
146+ --icon-size : 16 px ;
143147}
144148
145149.snippet-showhide {
146150 display : flex;
147151 flex-direction : row;
148152 align-items : center;
149- --slider-width : 48 px ;
150- --slider-height : 20 px ;
153+ --slider-width : 40 px ;
154+ --slider-height : 16 px ;
151155 --slider-diameter : calc (var (--slider-height ) - 4px );
152156}
153157
@@ -233,6 +237,7 @@ input:checked + .slider:before {
233237 border : none;
234238 font-size : var (--icon-size );
235239 color : var (--inactive-fg );
240+ cursor : pointer;
236241}
237242
238243.snippet .buttons button : hover : not (: disabled ) {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class CodeSnippets:
1212
1313 def enrichSnippets () = document.querySelectorAll(" div.snippet" ).foreach {
1414 case snippet : html.Element =>
15+ snippet.addEventListener(" click" , e => e.stopPropagation())
1516 snippetAnchor(snippet)
1617 handleHideableCode(snippet)
1718 handleImportedCode(snippet)
@@ -120,7 +121,8 @@ class CodeSnippets:
120121 val buttonsSection = getButtonsSection(snippet)
121122 buttonsSection.foreach(s =>
122123 s.appendChild(copyButton)
123- s.appendChild(runButton)
124+ // Temporarily disabled
125+ // s.appendChild(runButton)
124126 )
125127 }
126128
You can’t perform that action at this time.
0 commit comments