webui: improve ui

This commit is contained in:
KOWX712
2024-12-01 22:58:39 +08:00
parent 69198fa458
commit a0b0c5ca15

View File

@@ -53,13 +53,13 @@ body {
.language-menu { .language-menu {
display: flex; display: flex;
padding: 5px; padding: 3px 10px;
flex-direction: column; flex-direction: column;
position: absolute; position: absolute;
right: 0; right: 0;
background-color: #fff; background-color: #fff;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
z-index: 2000; z-index: 1800;
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 8px; border-radius: 8px;
opacity: 0; opacity: 0;
@@ -76,15 +76,19 @@ body {
} }
.language-option { .language-option {
padding: 10px; padding: 8px 5px;
text-align: left; text-align: left;
background: none; background: none;
border: none; border: none;
width: 100%;
font-size: 16px; font-size: 16px;
color: #333; color: #333;
width: auto; width: 100%;
white-space: nowrap; white-space: nowrap;
border-bottom: 1px solid #ccc;
}
.language-option:last-child {
border-bottom: none;
} }
.help-button { .help-button {
@@ -314,6 +318,10 @@ body {
font-weight: bold; font-weight: bold;
} }
.about-content p[data-i18n="disclaimer"] {
font-style: italic;
}
.about-content p[data-i18n="acknowledgment"] { .about-content p[data-i18n="acknowledgment"] {
font-size: 18px; font-size: 18px;
text-align: left; text-align: left;
@@ -422,7 +430,7 @@ body {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
display: none; display: none;
position: absolute; position: absolute;
padding: 5px; padding: 5px 12px;
top: 110%; top: 110%;
right: 0; right: 0;
transform: translateX(120%); transform: translateX(120%);
@@ -452,17 +460,22 @@ body {
.menu-options li { .menu-options li {
cursor: default; cursor: default;
padding: 13px 12px; padding: 12px 4px;
text-align: left; text-align: left;
border-bottom: 1px solid #ccc;
}
.menu-options li:last-child {
border-bottom: none;
} }
.card { .card {
background-color: white; background-color: white;
border: none; border: none;
border-radius: 8px; border-radius: 10px;
margin-bottom: 10px; margin-bottom: 10px;
outline: none; outline: none;
padding: 15px; padding: 13px;
} }
.content { .content {
@@ -558,15 +571,19 @@ body {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
padding: 12px 17px; padding: 10px 22px;
font-size: 17px; font-size: 19px;
transition: transform 0.3s ease-in-out; transition: transform 0.3s ease-in-out, background-color 0.2s ease;
border-top-left-radius: 50px; border-top-left-radius: 50px;
border-top-right-radius: 50px; border-top-right-radius: 50px;
border-bottom-left-radius: 50px; border-bottom-left-radius: 50px;
border-bottom-right-radius: 50px; border-bottom-right-radius: 50px;
} }
.floating-btn:active {
background-color: #003d80;
}
.loading { .loading {
position: fixed; position: fixed;
top: 0; top: 0;
@@ -595,7 +612,12 @@ body {
display: flex; display: flex;
align-items: center; align-items: center;
border-radius: 8px; border-radius: 8px;
background-color: #B10000; background-color: #CE0000;
transition: background-color 0.2s ease;
}
.uninstall-container:active {
background-color: #830000;
} }
.uninstall-container i { .uninstall-container i {
@@ -655,4 +677,9 @@ body {
background-color: #343434; background-color: #343434;
border: 1px solid #6E6E6E; border: 1px solid #6E6E6E;
} }
.language-option,
.menu-options li {
border-bottom: 1px solid #6E6E6E;
}
} }