Clean up clean up everybody everywhere

This commit is contained in:
foxster-mp4
2023-08-17 13:23:13 -07:00
parent 71d7684719
commit 1cc185d3cc
6 changed files with 53 additions and 51 deletions

View File

@@ -88,29 +88,6 @@ a {
word-wrap: break-word word-wrap: break-word
} }
#more button {
min-width: 0 !important;
margin-left: 2px !important;
padding: 0;
font-size: 15px;
font-weight: 500;
text-transform: none;
border-radius: 4px;
border: none;
background: unset;
color: var(--accent-color);
cursor: pointer;
position: absolute;
bottom: 0;
right: 0;
padding-left: 36px;
background: linear-gradient(to right, transparent, var(--color-bg) 35%);
}
#more:hover {
opacity: 1;
}
/* What's new */ /* What's new */
#whats-new, #whats-new,

View File

@@ -394,6 +394,30 @@ a>button {
} }
} }
#more button {
min-width: 0 !important;
margin-left: 2px !important;
padding: 0;
font-size: 15px;
font-weight: 500;
text-transform: none;
border-radius: 4px;
border: none;
background: unset;
color: var(--accent-color);
cursor: pointer;
position: absolute;
bottom: 0;
right: 0;
padding-left: 36px;
background: linear-gradient(to right, transparent, var(--color-bg) 35%);
line-height: 1.5em;
}
#more:hover {
opacity: 1;
}
.header a, .header a,
#nav-bar #back { #nav-bar #back {
display: flex; display: flex;

View File

@@ -1,3 +1,11 @@
/*
version-history.css
altsource-viewer (https://github.com/therealFoxster/altsource-viewer)
Copyright (c) 2023 Foxster.
MIT License.
*/
#main { #main {
padding-top: 8rem; padding-top: 8rem;
} }
@@ -59,23 +67,3 @@ a {
word-wrap: break-word; word-wrap: break-word;
/* line-height: 1.5em; */ /* line-height: 1.5em; */
} }
#more button {
min-width: 0 !important;
margin-left: 2px !important;
padding: 0;
font-size: 15px;
font-weight: 500;
text-transform: none;
border-radius: 4px;
border: none;
background: unset;
color: var(--accent-color);
cursor: pointer;
position: absolute;
bottom: 0;
right: 0;
padding-left: 36px;
background: linear-gradient(to right, transparent, var(--color-bg) 35%);
line-height: 1.5em;
}

View File

@@ -1,3 +1,4 @@
//
// AppPermissionItem.js // AppPermissionItem.js
// altsource-viewer (https://github.com/therealFoxster/altsource-viewer) // altsource-viewer (https://github.com/therealFoxster/altsource-viewer)
// //

View File

@@ -32,14 +32,29 @@ main((json) => {
const versionsContainer = document.getElementById("versions"); const versionsContainer = document.getElementById("versions");
if (app.versions) { if (app.versions) {
app.versions.forEach((version, i) => { app.versions.forEach((version, i) => {
versionsContainer.insertAdjacentHTML("beforeend", VersionHistoryItem(version.version, formatVersionDate(version.date), formatString(version.localizedDescription), version.downloadURL, i)) versionsContainer.insertAdjacentHTML("beforeend",
VersionHistoryItem(
version.version,
formatVersionDate(version.date),
formatString(version.localizedDescription),
version.downloadURL,
i
)
);
}); });
} else { } else {
versionsContainer.insertAdjacentHTML("beforeend", VersionHistoryItem(app.version, formatVersionDate(app.versionDate), formatString(app.versionDescription), app.downloadURL, 0)) versionsContainer.insertAdjacentHTML("beforeend",
VersionHistoryItem(
app.version,
formatVersionDate(app.versionDate),
formatString(app.versionDescription),
app.downloadURL,
0
)
);
} }
document.querySelectorAll(".version-description").forEach(element => { document.querySelectorAll(".version-description").forEach(element => {
console.log(MoreButton(tintColor));
if (element.scrollHeight > element.clientHeight) if (element.scrollHeight > element.clientHeight)
element.insertAdjacentHTML("beforeend", MoreButton(tintColor)); element.insertAdjacentHTML("beforeend", MoreButton(tintColor));
}); });

View File

@@ -1,5 +1,5 @@
<!-- <!--
news.html version-history.html
altsource-viewer (https://github.com/therealFoxster/altsource-viewer) altsource-viewer (https://github.com/therealFoxster/altsource-viewer)
Copyright (c) 2023 Foxster. Copyright (c) 2023 Foxster.
@@ -8,7 +8,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -16,7 +15,6 @@
<link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/version-history.css"> <link rel="stylesheet" href="css/version-history.css">
</head> </head>
<body class="loading"> <body class="loading">
<div id="loading"> <div id="loading">
<img src="img/loading.gif" alt="loading"> <img src="img/loading.gif" alt="loading">
@@ -29,5 +27,4 @@
</div> </div>
<script src="js/versionHistory.js" type="module"></script> <script src="js/versionHistory.js" type="module"></script>
</body> </body>
</html> </html>