Invisible module update method, more

New update card for invisible module, refine module visibility logic (better adapt with MMRL). Add active class.
This commit is contained in:
KOWX712
2024-12-07 16:10:13 +08:00
parent 4563a3399d
commit 1b2a1701f4
10 changed files with 116 additions and 30 deletions
+71 -16
View File
@@ -106,6 +106,7 @@ body {
width: 100%;
white-space: nowrap;
border-bottom: 1px solid #ccc;
transition: background-color 0.2s ease;
}
.language-option:last-child {
@@ -277,9 +278,11 @@ body {
border: none;
border-radius: 38px;
font-size: 18px;
font-weight: bold;
background-color: #007bff;
color: white;
margin-left: auto;
transition: background-color 0.2s ease;
}
.about-overlay {
@@ -309,6 +312,7 @@ body {
padding: 25px 30px;
z-index: 1200;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
z-index: 1200;
opacity: 0;
display: flex;
flex-direction: column;
@@ -344,10 +348,6 @@ body {
font-size: 14px;
}
.about-content p[data-i18n="disclaimer"] {
font-style: italic;
}
.about-content p span[data-i18n="telegram_channel"] {
font-weight: bold;
}
@@ -356,6 +356,10 @@ body {
font-weight: bold;
}
.about-content p[data-i18n="disclaimer"] {
font-style: italic;
}
.about-content p[data-i18n="acknowledgment"] {
font-weight: bold;
font-size: 18px;
@@ -365,10 +369,6 @@ body {
font-size: 16px;
}
#apps-list {
margin-top: 100px;
}
.search-menu-container {
display: flex;
position: fixed;
@@ -505,6 +505,7 @@ body {
padding: 12px 4px;
text-align: left;
border-bottom: 1px solid #ccc;
transition: background-color 0.2s ease;
}
.menu-options li:last-child {
@@ -528,6 +529,40 @@ body {
align-items: center;
}
#apps-list {
margin-top: 100px;
flex-direction: column;
}
.update-card {
display: none;
flex-direction: column;
justify-content: space-between;
align-items: center;
background-color: #DCDCDC;
border: none;
border-radius: 10px;
margin: 0 auto;
margin-bottom: 10px;
outline: none;
padding: 12px;
width: calc(100% - 30px);
max-width: 900px;
transition: background-color 0.2s ease;
}
#update-available {
font-size: 20px;
font-weight: bold;
margin-top: 15px;
margin-bottom: 0;
}
#redirect-to-release {
margin-top: 5px;
margin-bottom: 15px;
}
.card {
background-color: white;
border: none;
@@ -538,6 +573,7 @@ body {
padding: 12px;
width: calc(100% - 30px);
max-width: 900px;
transition: background-color 0.2s ease;
}
.content {
@@ -645,10 +681,6 @@ body {
border-bottom-right-radius: 50px;
}
.floating-btn:active {
background-color: #003d80;
}
.loading {
position: fixed;
top: 0;
@@ -689,10 +721,6 @@ body {
transition: background-color 0.2s ease;
}
.uninstall-container:active {
background-color: #830000;
}
.uninstall-container i {
margin-right: 5px;
font-size: 18px;
@@ -709,6 +737,22 @@ body {
display: none;
}
.language-option:active,
.menu-options li:active,
.card:active,
.update-card:active {
background-color: #C8C8C8;
}
.boot-hash-save-button:active,
.floating-btn:active {
background-color: #003d80;
}
.uninstall-container:active {
background-color: #830000;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
@@ -736,6 +780,10 @@ body {
background-color: #343434;
}
.update-card {
background-color: #4D4D4D;
}
.search-card {
border: 1px solid #6E6E6E;
}
@@ -756,4 +804,11 @@ body {
.menu-options li {
border-bottom: 1px solid #6E6E6E;
}
.language-option:active,
.menu-options li:active,
.card:active,
.update-card:active {
background-color: #616161;
}
}