File tree 1 file changed +19
-5
lines changed
scaladoc/resources/dotty_res/styles/theme/components/button
1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change 6
6
padding : 0 ;
7
7
height : 16px ;
8
8
width : 16px ;
9
+ position : relative;
10
+ overflow : hidden;
9
11
}
10
12
11
13
.icon-button : hover {
539
541
display : none;
540
542
}
541
543
542
- .icon-button .custom ::after {
543
- content : var (--bgimage );
544
- max-width : fit-content;
544
+ .icon-button .custom ::after {
545
+ content : "" ;
546
+ background-image : var (--bgimage );
547
+ background-repeat : no-repeat;
548
+ background-position : center;
549
+ background-size : contain; /* Adjust this value to control the size */
550
+ display : block;
551
+ max-width : 100% ;
552
+ max-height : 100% ;
545
553
}
546
554
547
555
.theme-dark .icon-button .custom-dark {
548
556
display : unset;
549
557
}
550
558
551
559
.theme-dark .icon-button .custom-dark ::after {
552
- content : var (--bgimage-dark );
553
- max-width : fit-content;
560
+ content : "" ;
561
+ background-image : var (--bgimage-dark );
562
+ background-repeat : no-repeat;
563
+ background-position : center;
564
+ background-size : contain; /* Adjust this value to control the size */
565
+ display : block;
566
+ max-width : 100% ;
567
+ max-height : 100% ;
554
568
}
555
569
556
570
.theme-dark .icon-button .custom {
You can’t perform that action at this time.
0 commit comments