Albirew/nyaa-pantsu
Albirew
/
nyaa-pantsu
Archivé
1
0
Bifurcation 0

Revert "css fixes"

Cette révision appartient à :
akuma06 2017-05-07 23:11:26 +02:00 révisé par GitHub
Parent e425d3d86b
révision d3b8596f2a
4 fichiers modifiés avec 12 ajouts et 16 suppressions

Voir le fichier

@ -2,7 +2,7 @@
.nightswitch {
position: fixed;
top: 12px;
right: 12px;
right: 48px;
}
.nightswitch > a > img {
width: 24px;
@ -43,7 +43,7 @@
}
#container.cont-view {
background: #29363d url(/img/megumin.png) no-repeat;
background-size: 75px;
background-size: 75px, 100px;
}
body {
@ -178,7 +178,6 @@ div.container div.blockBody:nth-of-type(2) table tr:first-of-type th:last-of-typ
max-height: 80vh;
}
/* the curved edges triggered my autism */
.navbar {
border-radius: 0px;
}
}

Voir le fichier

@ -2,7 +2,7 @@
.nightswitch {
position: fixed;
top: 12px;
right: 12px;
right: 48px;
}
.nightswitch > a > img {
width: 24px;
@ -43,7 +43,7 @@
}
#container.cont-view {
background: white url(/img/renchon.png) no-repeat;
background-size: 61px;
background-size: 75px, 100px;
}
body {

Voir le fichier

@ -1,4 +1,10 @@
// Night mode
var night = localStorage.getItem("night");
if (night == "true") {
$("#style")[0].href = "/css/style-night.css";
$("#nighticon")[0].src = "/img/sun.png";
}
function toggleNightMode() {
var night = localStorage.getItem("night");
if(night == "true") {

Voir le fichier

@ -27,15 +27,6 @@
<!-- Website CSS -->
<link rel="stylesheet" id="style" href="{{.URL.Parse "/css/style.css"}}">
<script type="text/javascript">
// Inlined here to allow early style switch
if (localStorage.getItem("night") == "true") {
document.getElementById("style").href = "/css/style-night.css";
document.body.addEventListener("load", function() {
document.getElementById("nighticon").src = "/img/sun.png";
}, false);
}
</script>
</head>
<body>
<nav class="navbar navbar-default" id="mainmenu">
@ -64,7 +55,7 @@
{{block "search_button" .}}{{end}}
</div>
</form>
<div class="nightswitch">
<div class="nightswitch" style="position:absolute;right:1em">
<a href="javascript:toggleNightMode();" ><img id="nighticon" src="/img/moon.png"></a>
</div>
</div>