mirror of
https://github.com/pldubouilh/gossa.git
synced 2026-08-27 20:36:33 -04:00
disable theme
This commit is contained in:
@@ -13,7 +13,6 @@ embed:
|
||||
cp src/main.go gossa.go
|
||||
perl -pe 's/template_will_be_here/`cat src\/template.go`/ge' -i gossa.go
|
||||
perl -pe 's/css_will_be_here/`cat src\/style.css`/ge' -i gossa.go
|
||||
perl -pe 's/theme_will_be_here/`cat src\/theme.css`/ge' -i gossa.go
|
||||
perl -pe 's/js_will_be_here/`cat src\/script.js`/ge' -i gossa.go
|
||||
perl -pe 's/favicon_will_be_here/`base64 -w0 src\/favicon.png`/ge' -i gossa.go
|
||||
|
||||
|
||||
@@ -560,9 +560,6 @@ document.body.addEventListener('keydown', e => {
|
||||
|
||||
case 'KeyD':
|
||||
return prevent(e) || isPicMode() || window.mkdirBtn()
|
||||
|
||||
case 'KeyB':
|
||||
return prevent(e) || toggleTheme() // eslint-disable-line
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+5
-1
@@ -23,17 +23,20 @@
|
||||
}
|
||||
|
||||
html {
|
||||
color: #dfe6e9;
|
||||
background-color: #2d3436;
|
||||
font-size: 1.5em;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #dfe6e9;
|
||||
text-decoration: none;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
a.linkSelected {
|
||||
border-bottom: .01em solid #2d3436;
|
||||
border-bottom: .01em solid #dfe629;
|
||||
}
|
||||
|
||||
tr {
|
||||
@@ -67,6 +70,7 @@ div, i {
|
||||
font-size: 1.15em;
|
||||
font-weight: bold;
|
||||
padding-left: .5em;
|
||||
filter: invert(100%) !important;
|
||||
}
|
||||
|
||||
table {
|
||||
|
||||
@@ -6,14 +6,6 @@
|
||||
<title>{{.Title}}</title>
|
||||
<link href="data:image/png;base64,favicon_will_be_here" rel="icon" type="image/png" />
|
||||
<style type="text/css">css_will_be_here</style>
|
||||
<style type="text/css" id="theme">theme_will_be_here</style>
|
||||
<script>
|
||||
const theme = document.getElementById('theme')
|
||||
const themeNow = () => localStorage.getItem('theme')
|
||||
const setTheme = () => { theme.disabled = themeNow() === 'regular' }
|
||||
const toggleTheme = () => localStorage.setItem('theme', (themeNow() === 'regular' ? 'alt' : 'regular')) || setTheme()
|
||||
setTheme()
|
||||
</script>
|
||||
<script>window.onload = function () { js_will_be_here }</script>
|
||||
</head>
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
html, a {
|
||||
background-color: #2d3436;
|
||||
color: #dfe6e9;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
filter: invert(100%) !important;
|
||||
}
|
||||
|
||||
a.linkSelected {
|
||||
border-bottom: .01em solid #dfe6e9;
|
||||
}
|
||||
Reference in New Issue
Block a user