dark mode. this works ok. not too good but yeah it does.
This commit is contained in:
@@ -3,7 +3,72 @@
|
||||
<head>
|
||||
<title>Auto Index</title>
|
||||
<style>
|
||||
hr {width: auto;}
|
||||
body.dark-mode {
|
||||
background-color: #1e1e1e;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
body.dark-mode h1 { color: #f0f0f0; }
|
||||
body.dark-mode #nojs { color: #f0f0f0; }
|
||||
body.dark-mode li { color: #e0e0e0; }
|
||||
body.dark-mode button {
|
||||
background-image: linear-gradient(#3a3a3a ,#2a2a2a);
|
||||
color: #e0e0e0;
|
||||
border-color: #555 #444 #333;
|
||||
box-shadow: rgba(0,0,0,.6) 0 1px 0 inset;
|
||||
}
|
||||
body.dark-mode input#searchbox {
|
||||
background-color: #2a2a2a;
|
||||
color: #e0e0e0;
|
||||
border: 1px solid #555;
|
||||
}
|
||||
|
||||
body.darkmode #nojs {
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
margin: 20px;
|
||||
background-color: #fff;
|
||||
color: #0f1111;
|
||||
/*transition: background-color 0.3s, color 0.3s; || enable this if you want a transition!*/
|
||||
}
|
||||
|
||||
h1 { color: #333; transition: color 0.3s; }
|
||||
|
||||
hr { width: auto; }
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
background: url("../../css/icons/item.webp") no-repeat left center;
|
||||
background-size: 15px 20px;
|
||||
padding-left: 25px;
|
||||
transition: font-size 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||
padding-bottom: 5px;
|
||||
}
|
||||
li:hover { font-size: larger; }
|
||||
|
||||
#available { padding-left: 40px; margin-bottom: 0.1em; }
|
||||
ul { padding-left: 100px; margin-top: 0.2em; }
|
||||
|
||||
#nojs { display: inline-block; color: black; transition: transform 0.7s cubic-bezier(0.215, 0.610, 0.355, 1); }
|
||||
|
||||
#nonenormalul {
|
||||
list-style: disc inside;
|
||||
margin: 1em 0;
|
||||
padding-left: 40px;
|
||||
background: none;
|
||||
}
|
||||
#nonenormalul li {
|
||||
list-style: inherit;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: none;
|
||||
transition: font-size 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
|
||||
}
|
||||
#nonenormalul li:hover { font-size: larger; }
|
||||
|
||||
/* BUTTON STYLES */
|
||||
button {
|
||||
margin-right: 5px;
|
||||
background-image: linear-gradient(#f7f8fa ,#e7e9ec);
|
||||
@@ -16,10 +81,9 @@
|
||||
color: #0f1111;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
font-family: "Amazon Ember",Arial,sans-serif;
|
||||
font-size: 14px;
|
||||
height: 29px;
|
||||
font-family: "Amazon Ember", Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
height: 29px;
|
||||
outline: 0;
|
||||
overflow: hidden;
|
||||
padding: 0 11px;
|
||||
@@ -30,47 +94,33 @@
|
||||
-webkit-user-select: none;
|
||||
touch-action: manipulation;
|
||||
white-space: nowrap;
|
||||
transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
|
||||
}
|
||||
button:active { border-bottom-color: #a2a6ac; }
|
||||
button:active:hover { border-bottom-color: #a2a6ac; }
|
||||
button:hover { border-color: #a2a6ac #979aa1 #82858a; }
|
||||
button:focus { border-color: #e77600; box-shadow: rgba(228, 121, 17, .5) 0 0 3px 2px; outline: 0; }
|
||||
button:disabled, button[disabled]{ color: gray; border-color: gray; }
|
||||
|
||||
button:active {
|
||||
border-bottom-color: #a2a6ac;
|
||||
/* DARK MODE */
|
||||
body.dark-mode {
|
||||
background-color: #1e1e1e;
|
||||
color: #e0e0e0;
|
||||
}
|
||||
|
||||
button:active:hover {
|
||||
border-bottom-color: #a2a6ac;
|
||||
body.dark-mode h1 { color: #f0f0f0; }
|
||||
body.dark-mode #nojs { color: #fff; }
|
||||
body.dark-mode li { background: url("../../css/icons/item.webp") no-repeat left left; }
|
||||
body.dark-mode button {
|
||||
background-image: linear-gradient(#3a3a3a ,#2a2a2a);
|
||||
color: #e0e0e0;
|
||||
border-color: #555 #444 #333;
|
||||
box-shadow: rgba(0,0,0,.6) 0 1px 0 inset;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
border-color: #a2a6ac #979aa1 #82858a;
|
||||
}
|
||||
|
||||
button:focus {
|
||||
border-color: #e77600;
|
||||
box-shadow: rgba(228, 121, 17, .5) 0 0 3px 2px;
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
button:disabled,
|
||||
button[disabled]{
|
||||
color: gray;
|
||||
border-color: gray;
|
||||
}
|
||||
body { font-family: Arial, sans-serif; margin: 20px; }
|
||||
h1 { color: #333; }
|
||||
li { list-style: none; background: url("../../css/icons/item.webp") no-repeat left center; background-size: 15px 20px; padding-left: 25px; transition: font-size 0.5s cubic-bezier(0.075, 0.82, 0.165, 1); padding-bottom: 5px; }
|
||||
li:hover { font-size: larger; }
|
||||
#available { padding-left: 40px; margin-bottom: 0.1em;}
|
||||
ul { padding-left: 100px; margin-top: 0.2em;}
|
||||
#nojs { display: inline-block;color: red;transition: transform 0.7s cubic-bezier(0.215, 0.610, 0.355, 1); }
|
||||
/*#nojs:hover { transform: skewX(-12deg);}*/
|
||||
#nonenormalul { list-style: disc inside; margin: 1em 0; padding-left: 40px; background: none; }
|
||||
#nonenormalul li { list-style: inherit; margin: 0; padding: 0; background: none; transition: font-size 0.5s cubic-bezier(0.075, 0.82, 0.165, 1); }
|
||||
#nonenormalul li:hover { font-size: larger; }
|
||||
</style>
|
||||
<script>
|
||||
console.log("javascript is enabled! good!")
|
||||
document.write('<h1 id="nojs" style="color:black; display: flex; align-items: center;"><img src="../../css/icons/folder.webp" width="45" height="45" style="vertical-align: middle; margin-right: 8px;" />Index of PyPost</h1>');
|
||||
</script>
|
||||
<script>
|
||||
console.log("javascript is enabled! good!");
|
||||
document.write('<h1 id="nojs" style="display: flex; align-items: center;"><img src="../../css/icons/folder.webp" width="45" height="45" style="vertical-align: middle; margin-right: 8px;" />Index of PyPost</h1>');
|
||||
</script>
|
||||
<link rel="icon" type="image/x-icon" href="../../css/favicon/favicon.ico">
|
||||
</head>
|
||||
<body>
|
||||
@@ -80,7 +130,7 @@
|
||||
<h1 id="nojs" style="margin: 0;">Please enable Javascript!</h1>
|
||||
</div>
|
||||
<p>
|
||||
<i><strong> If you might be wondering, what does the Script do?</strong></i><br/>
|
||||
<i><strong>If you might be wondering, what does the Script do?</strong></i><br/>
|
||||
<ul id="nonenormalul">
|
||||
<li>It strips the .HTML ending from each file you see in the list below</li>
|
||||
<li>It isnt necessary, but visually tweaks the page.</li>
|
||||
@@ -91,14 +141,17 @@
|
||||
</p>
|
||||
</noscript>
|
||||
<p id="available">
|
||||
<img src="../../css/icons/available.webp" width="40" height="40" style="vertical-align: middle; display: inline; /*margin-right: 8px;*/ padding-right: 5px;" />
|
||||
<img src="../../css/icons/available.webp" width="40" height="40" style="vertical-align: middle; display: inline; padding-right: 5px;" />
|
||||
Available pages:
|
||||
</p>
|
||||
|
||||
<!-- CONTENT -->
|
||||
|
||||
<!-- load scripts needed for indexer -->
|
||||
<script src="../../js/normal.js"></script>
|
||||
<script src="../../js/search.js" defer></script>
|
||||
<script src="../../js/ulorder.js" defer></script>
|
||||
<!-- load scripts needed for indexer -->
|
||||
<script src="../../js/normal.js"></script>
|
||||
<script src="../../js/shared/theme.js"></script>
|
||||
<script src="../../js/search.js" defer></script>
|
||||
<script src="../../js/ulorder.js" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user