Skip to content

Commit cceeea1

Browse files
committed
fix: Remove invalid css declarations and lint leftovers
background-color/min-width do not accept 'none'; browsers ignored the declarations, so removing them does not change rendering. Also an unused event parameter and a stale eslint-disable directive.
1 parent 651303a commit cceeea1

4 files changed

Lines changed: 2 additions & 8 deletions

File tree

ui/src/css/base.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ a:hover {
3333
text-decoration: underline;
3434
}
3535

36-
a:active {
37-
background-color: none;
38-
}
39-
4036
code,
4137
kbd,
4238
pre {

ui/src/css/header.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,11 @@ body {
254254

255255
.mobile-popup-menu .navbar-item.has-dropdown {
256256
flex-direction: column;
257-
min-width: none;
258257
}
259258

260259
.mobile-popup-menu .navbar-dropdown {
261260
display: inline;
262261
position: relative;
263-
min-width: none;
264262
}
265263

266264
/** indent sub items a little bit to distinguish them visually */

ui/src/js/03-fragment-jumper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
window.scrollTo(0, computePosition(this, 0) - toolbar.getBoundingClientRect().bottom)
2222
}
2323

24-
window.addEventListener('load', function jumpOnLoad (e) {
24+
window.addEventListener('load', function jumpOnLoad () {
2525
var fragment, target
2626
if ((fragment = decodeFragment(window.location.hash)) && (target = document.getElementById(fragment))) {
2727
jumpToAnchor.bind(target)()

ui/src/js/06-copy-to-clipboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
window.navigator.clipboard.writeText(text).then(
6868
function () {
6969
this.classList.add('clicked')
70-
this.offsetHeight // eslint-disable-line no-unused-expressions
70+
this.offsetHeight
7171
this.classList.remove('clicked')
7272
}.bind(this),
7373
function () {}

0 commit comments

Comments
 (0)