File tree 2 files changed +11
-4
lines changed
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 126
126
127
127
/* Snippets */
128
128
129
+ .snippet {
130
+ cursor : default;
131
+ }
132
+
129
133
.snippet .snippet-meta {
130
134
border-top : 2px solid var (--inactive-bg );
131
135
color : var (--inactive-fg );
139
143
}
140
144
141
145
.snippet .buttons {
142
- --icon-size : 24 px ;
146
+ --icon-size : 16 px ;
143
147
}
144
148
145
149
.snippet-showhide {
146
150
display : flex;
147
151
flex-direction : row;
148
152
align-items : center;
149
- --slider-width : 48 px ;
150
- --slider-height : 20 px ;
153
+ --slider-width : 40 px ;
154
+ --slider-height : 16 px ;
151
155
--slider-diameter : calc (var (--slider-height ) - 4px );
152
156
}
153
157
@@ -233,6 +237,7 @@ input:checked + .slider:before {
233
237
border : none;
234
238
font-size : var (--icon-size );
235
239
color : var (--inactive-fg );
240
+ cursor : pointer;
236
241
}
237
242
238
243
.snippet .buttons button : hover : not (: disabled ) {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ class CodeSnippets:
12
12
13
13
def enrichSnippets () = document.querySelectorAll(" div.snippet" ).foreach {
14
14
case snippet : html.Element =>
15
+ snippet.addEventListener(" click" , e => e.stopPropagation())
15
16
snippetAnchor(snippet)
16
17
handleHideableCode(snippet)
17
18
handleImportedCode(snippet)
@@ -120,7 +121,8 @@ class CodeSnippets:
120
121
val buttonsSection = getButtonsSection(snippet)
121
122
buttonsSection.foreach(s =>
122
123
s.appendChild(copyButton)
123
- s.appendChild(runButton)
124
+ // Temporarily disabled
125
+ // s.appendChild(runButton)
124
126
)
125
127
}
126
128
You can’t perform that action at this time.
0 commit comments