@@ -278,57 +278,97 @@ nav.navbar {
278278 Table
279279\* ----------------------------------------------------------------------------------------------------------------- */
280280table {
281- .main-row-action {
282- cursor : pointer ;
283- }
284-
285- th .row-action {
286- width : 16px ;
287- }
281+ tbody {
282+ .main-row-action {
283+ cursor : pointer ;
284+ }
288285
289- td .row-action a {
290- color : $body-color ;
291- }
286+ th .row-action {
287+ width : 16 px ;
288+ }
292289
293- pre {
294- white-space : pre-wrap ;
295- overflow-wrap : break-word ;
296- overflow : auto ;
297- max-height : 150px ;
290+ td .row-action a {
291+ color : $body-color ;
292+ }
298293
299- code {
294+ pre {
300295 white-space : pre-wrap ;
301296 overflow-wrap : break-word ;
302- word-break : break-all ;
303- }
304- }
297+ overflow : auto ;
298+ max-height : 100px ;
299+ cursor : pointer ;
300+ position : relative ;
305301
306- tr .deleted {
307- opacity : 0.5 ;
308- }
302+ code {
303+ white-space : pre-wrap ;
304+ overflow-wrap : break-word ;
305+ word-break : break-all ;
306+
307+ & :after {
308+ content :' ' ;
309+ width :100% ;
310+ height :35px ;
311+ position :absolute ;
312+ left :0 ;
313+ bottom :0 ;
314+ background : linear-gradient (transparent , $gray-900 );
315+ }
316+ }
317+ }
309318
310- .table.table-sm {
311- margin-top : calc (- #{$table-cell-padding } );
312- width : calc (100% + (#{$table-cell-padding } * 2 ));
313- margin-left : - $table-cell-padding ;
314- position : relative ;
315- border-bottom : $table-border-width dashed $table-border-color ;
316- font-size : $font-size-sm ;
319+ tr :hover {
320+ pre code :after {
321+ background : linear-gradient (transparent , $indigo );
322+ }
323+ }
317324
318- td , th {
319- border : 0 ;
325+ .hljs {
326+ background : none ;
320327 }
321328
322- th {
323- border-right : $table-border-width dashed $table-border-color ;
329+ tr .hightlight {
330+ & :hover {
331+ background : none ;
332+ }
333+
334+ pre {
335+ overflow : hidden ;
336+ max-height : none ;
337+ cursor : default ;
338+
339+ code :after {
340+ display : none ;
341+ }
342+ }
324343 }
325344
326- tbody tr :nth-of-type ( even ) {
327- background-color : lighten ( $table-accent-bg , 0.1 ) ;
345+ tr .deleted {
346+ opacity : 0.5 ;
328347 }
329348
330- tbody tr :nth-of-type (odd ) {
331- background-color : lighten ($table-bg , 0.1 );
349+ .table.table-sm {
350+ margin-top : calc (- #{$table-cell-padding } );
351+ width : calc (100% + (#{$table-cell-padding } * 2 ));
352+ margin-left : - $table-cell-padding ;
353+ position : relative ;
354+ border-bottom : $table-border-width dashed $table-border-color ;
355+ font-size : $font-size-sm ;
356+
357+ td , th {
358+ border : 0 ;
359+ }
360+
361+ th {
362+ border-right : $table-border-width dashed $table-border-color ;
363+ }
364+
365+ tbody tr :nth-of-type (even ) {
366+ background-color : lighten ($table-accent-bg , 0.1 );
367+ }
368+
369+ tbody tr :nth-of-type (odd ) {
370+ background-color : lighten ($table-bg , 0.1 );
371+ }
332372 }
333373 }
334374}
0 commit comments