Skip to content

Commit ddd37f3

Browse files
committed
remove obsolete scripts and styles
1 parent 005f66f commit ddd37f3

File tree

2 files changed

+0
-63
lines changed

2 files changed

+0
-63
lines changed

scaladoc/resources/dotty_res/scripts/ux.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
function attachAllListeners() {
2-
var toggler = document.getElementById("leftToggler");
3-
if (toggler) {
4-
toggler.onclick = function () {
5-
document.getElementById("leftColumn").classList.toggle("open");
6-
};
7-
}
82

93
var elements = document.getElementsByClassName("documentableElement")
104
if (elements) {
@@ -136,18 +130,6 @@ function attachAllListeners() {
136130
};
137131
}
138132

139-
document.querySelectorAll('.documentableAnchor').forEach(elem => {
140-
elem.addEventListener('click', event => {
141-
var $temp = $("<input>")
142-
$("body").append($temp)
143-
var a = document.createElement('a')
144-
a.href = $(elem).attr("link")
145-
$temp.val(a.href).select();
146-
document.execCommand("copy")
147-
$temp.remove();
148-
})
149-
})
150-
151133
hljs.registerLanguage("scala", highlightDotty);
152134
hljs.registerAliases(["dotty", "scala3"], "scala");
153135
hljs.initHighlighting();

scaladoc/resources/dotty_res/styles/scalastyle.css

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,6 @@ th {
136136
border-bottom: 2px solid var(--border-medium);
137137
}
138138

139-
/* Left bar toggler, only on small screens */
140-
#leftToggler {
141-
display: none;
142-
color: var(--icon-color);
143-
cursor: pointer;
144-
}
145-
146139
/* Left bar */
147140
#paneSearch {
148141
display: none;
@@ -732,30 +725,6 @@ footer .mode {
732725
display: flex;
733726
} */
734727

735-
.documentableAnchor:before {
736-
content: "\e901"; /* arrow down */
737-
font-family: "dotty-icons" !important;
738-
transform: rotate(-45deg);
739-
font-size: 20px;
740-
color: var(--link-fg);
741-
display: none;
742-
flex-direction: row;
743-
align-items: center;
744-
justify-content: center;
745-
position: absolute;
746-
top: 6px;
747-
left: -32px;
748-
}
749-
750-
.documentableAnchor:hover:before {
751-
color: var(--link-hover-fg);
752-
}
753-
754-
.documentableAnchor:active:before {
755-
color: var(--link-hover-fg);
756-
top: 8px;
757-
}
758-
759728
.memberDocumentation {
760729
font-size: 15px;
761730
line-height: 1.5;
@@ -1063,20 +1032,6 @@ footer .socials {
10631032
display: none;
10641033
}
10651034

1066-
#leftToggler {
1067-
display: unset;
1068-
position: absolute;
1069-
top: 5px;
1070-
left: 12px;
1071-
z-index: 5;
1072-
font-size: 30px;
1073-
}
1074-
#leftColumn.open ~ #main #leftToggler {
1075-
position: fixed;
1076-
left: unset;
1077-
right: 16vw;
1078-
color: var(--leftbar-fg);
1079-
}
10801035
.icon-toggler::before {
10811036
content: "\e90a"; /* menu icon */
10821037
}

0 commit comments

Comments
 (0)