opt: reduce code

This commit is contained in:
KOWX712
2025-03-02 04:06:17 +08:00
parent 93e2e8c8ba
commit c20e8cde1f
15 changed files with 156 additions and 343 deletions
+5 -37
View File
@@ -1,53 +1,24 @@
.about-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1100;
display: none;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.2s ease;
}
.about-menu {
position: fixed;
top: 50%;
left: 50%;
width: 90vw;
position: relative;
width: calc(90vw - 60px);
max-width: 800px;
transform: translate(-50%, -50%);
background: #fff;
border-radius: 15px;
padding: 30px 0;
z-index: 1200;
padding: 30px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
z-index: 1200;
opacity: 0;
display: flex;
flex-direction: column;
gap: 15px;
transition: opacity 0.2s ease;
}
.close-about {
position: absolute;
top: 15px;
right: 12px;
background: none;
border: none;
font-size: 18px;
color: #ccc;
user-select: none;
}
.link,
.about-content p {
.about-menu p {
margin: 0;
padding: 0 30px;
font-size: 16px;
text-align: left;
}
@@ -69,11 +40,8 @@
#disclaimer {
font-family: serif;
width: calc(100% - 80px);
width: calc(100% - 20px);
padding: 8px 10px;
left: 0;
right: 0;
margin: auto;
border-radius: 10px;
background-color: #F5F5F5;
}
+1 -22
View File
@@ -43,18 +43,8 @@
}
.update-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1800;
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.2s ease;
}
.update-menu {
@@ -65,18 +55,7 @@
padding: 30px;
border-radius: 15px;
text-align: left;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
transition: opacity 0.2s ease;
}
.close-update {
position: absolute;
top: 15px;
right: 12px;
background: none;
border: none;
font-size: 20px;
color: #ccc;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.update-content h3 {
+2 -27
View File
@@ -1,45 +1,20 @@
.boot-hash-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
z-index: 1200;
justify-content: center;
align-items: center;
opacity: 0;
visibility: hidden;
transition: opacity 0.2s ease, visibility 0.2s ease;
}
.boot-hash-card {
position: fixed;
top: 10%;
left: 50%;
transform: translateX(-50%);
width: calc(90% - 60px);
max-width: 300px;
height: fit-content;
background-color: #fff;
border-radius: 18px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
z-index: 1200;
padding: 30px;
display: none;
display: flex;
flex-direction: column;
gap: 15px;
opacity: 0;
transition: opacity 0.2s ease;
}
.boot-hash-overlay.show {
visibility: visible;
opacity: 1;
}
.boot-hash-card.show {
display: flex;
opacity: 1;
}
.boot-hash-title {
+3 -6
View File
@@ -21,6 +21,7 @@
border-radius: 15px;
display: flex;
flex-direction: column;
position: relative;
overflow: hidden;
}
@@ -55,7 +56,7 @@
border: none;
font-size: 20px;
color: #ccc;
padding: 5px;
padding: 0 5px;
}
.file-list {
@@ -83,7 +84,7 @@
.file-item svg {
margin-right: 10px;
fill: #6E6E6E;
fill: #ccc;
}
.file-item span {
@@ -114,8 +115,4 @@
.back-button {
fill: #C2C2C2;
}
.file-item svg {
fill: #C2C2C2;
}
}
+25 -13
View File
@@ -35,6 +35,30 @@ body {
pointer-events: auto;
}
.overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: rgba(0, 0, 0, 0.5);
display: none;
justify-content: center;
opacity: 0;
transition: opacity 0.2s ease;
}
.close-btn {
position: absolute;
top: 12px;
right: 12px;
background: none;
border: none;
font-size: 18px;
color: #ccc;
user-select: none;
}
.prompt {
position: fixed;
bottom: 0;
@@ -107,20 +131,8 @@ body {
}
.permission-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.85);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.permission-popup.hidden {
display: none;
z-index: 2000;
}
.permission-content {
+11 -46
View File
@@ -148,74 +148,39 @@
justify-content: center;
align-items: center;
opacity: 0;
transition: opacity 0.4s ease;
}
.help-overlay.show {
display: flex;
opacity: 1;
}
.help-overlay.hide {
opacity: 0;
transition: opacity 0.2s ease;
}
.help-menu {
position: relative;
width: 90vw;
width: calc(95vw - 60px);
max-width: 800px;
background-color: white;
padding: 10px 0;
padding: 30px;
border-radius: 15px;
text-align: left;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.close-help {
position: absolute;
top: 15px;
right: 12px;
background: none;
border: none;
font-size: 20px;
color: #ccc;
user-select: none;
}
.help-content {
max-height: 85vh;
padding: 0 30px;
display: flex;
flex-direction: column;
gap: 20px;
max-height: calc(85vh - 60px);
overflow-y: auto;
}
.help-content p {
.help-content-header {
font-size: 26px;
user-select: none;
}
.help-content ul {
padding-left: 0;
list-style-type: none;
}
.help-content ul li {
font-weight: bold;
.instruction strong {
font-size: 18px;
}
.help-content ul ul li {
font-weight: normal;
font-size: 16px;
}
.help-content ul ul ul li {
color: #777777;
font-weight: normal;
font-size: 14px;
}
.help-content ul ul ul li a {
color: inherit;
.instruction p {
margin: 0;
}
@media (prefers-color-scheme: dark) {
+1 -16
View File
@@ -1,15 +1,5 @@
.security-patch-overlay {
display: none;
position: fixed;
justify-content: center;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2000;
transition: opacity 0.2s ease;
opacity: 0;
}
.security-patch-card {
@@ -19,8 +9,7 @@
background-color: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
z-index: 2001;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
width: calc(90% - 60px);
max-width: 300px;
max-height: calc(80% - 60px);
@@ -153,10 +142,6 @@
}
@media (prefers-color-scheme: dark) {
.security-patch-overlay {
background-color: rgba(0, 0, 0, 0.8);
}
.security-patch-card {
background-color: #343434;
color: white;
+1 -11
View File
@@ -1,15 +1,5 @@
.add-system-app-overlay {
display: none;
position: fixed;
justify-content: center;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
z-index: 2000;
transition: opacity 0.2s ease;
opacity: 0;
}
.add-system-app-card {
@@ -25,7 +15,7 @@
padding: 30px;
background-color: #fff;
border-radius: 15px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.add-system-app-title {