File tree 3 files changed +17
-18
lines changed
resources/dotty_res/styles/theme/components/button
3 files changed +17
-18
lines changed Original file line number Diff line number Diff line change 539
539
display : none;
540
540
}
541
541
542
- .icon-button .custom ::after {
543
- content : var (--bgimage );
544
- max-width : fit-content;
542
+ .icon-button .custom ::after {
543
+ content : "" ;
544
+ background-image : var (--bgimage );
545
+ background-repeat : no-repeat;
546
+ background-position : center;
547
+ background-size : contain; /* Adjust this value to control the size */
548
+ display : block;
549
+ max-width : 100% ;
550
+ max-height : 100% ;
545
551
}
546
552
547
553
.theme-dark .icon-button .custom-dark {
548
554
display : unset;
549
555
}
550
556
551
557
.theme-dark .icon-button .custom-dark ::after {
552
- content : var (--bgimage-dark );
553
- max-width : fit-content;
558
+ content : "" ;
559
+ background-image : var (--bgimage-dark );
560
+ background-repeat : no-repeat;
561
+ background-position : center;
562
+ background-size : contain; /* Adjust this value to control the size */
563
+ display : block;
564
+ max-width : 100% ;
565
+ max-height : 100% ;
554
566
}
555
567
556
568
.theme-dark .icon-button .custom {
Original file line number Diff line number Diff line change 1
1
package dotty .tools .scaladoc
2
2
3
- import java .nio .file .Path
4
- import java .nio .file .Paths
5
- import dotty .tools .dotc .core .Contexts .Context
6
-
7
3
enum SocialLinks (val url : String , val className : String ):
8
4
case Github (ghUrl : String ) extends SocialLinks (ghUrl, " gh" )
9
5
case Twitter (tUrl : String ) extends SocialLinks (tUrl, " twitter" )
Original file line number Diff line number Diff line change @@ -2,18 +2,9 @@ package dotty.tools.scaladoc
2
2
package renderers
3
3
4
4
import util .HTML ._
5
- import scala .jdk .CollectionConverters ._
6
- import java .net .URI
7
- import java .net .URL
8
5
import dotty .tools .scaladoc .site ._
9
- import scala .util .Try
10
6
import org .jsoup .Jsoup
11
- import java .nio .file .Paths
12
- import java .nio .file .Path
13
7
import java .nio .file .Files
14
- import java .nio .file .FileVisitOption
15
- import java .io .File
16
- import dotty .tools .scaladoc .staticFileSymbolUUID
17
8
18
9
class HtmlRenderer (rootPackage : Member , members : Map [DRI , Member ])(using ctx : DocContext )
19
10
extends Renderer (rootPackage, members, extension = " html" ):
You can’t perform that action at this time.
0 commit comments