Simplify logic, add Material Design ripple effect

This commit is contained in:
KOWX712
2024-12-26 20:52:01 +08:00
parent 10c02a6924
commit 1861e43a81
21 changed files with 190 additions and 184 deletions
+2 -9
View File
@@ -79,6 +79,8 @@
box-sizing: border-box;
margin-bottom: 5px;
transition: background-color 0.2s ease;
position: relative;
overflow: hidden;
}
.link-icon svg {
@@ -95,10 +97,6 @@
fill: #fff;
}
#telegram:active {
background-color: #1A78B3;
}
#github {
font-size: 18px;
padding: 3px 10px;
@@ -107,11 +105,6 @@
fill: #fff;
}
#github:active {
background-color: #4D4D4D;
}
#link-text {
font-size: 17px;
font-weight: bold;
+5 -12
View File
@@ -23,7 +23,8 @@
padding: 12px;
width: calc(100% - 30px);
max-width: 900px;
transition: background-color 0.2s ease;
position: relative;
overflow: hidden;
}
#update-available {
@@ -39,7 +40,7 @@
}
.card {
background-color: white;
background-color: #fff;
border: none;
border-radius: 12px;
margin: 0 auto;
@@ -49,11 +50,8 @@
width: calc(100% - 30px);
max-width: 900px;
transition: background-color 0.2s ease;
}
.card:active,
.update-card:active {
background-color: #C8C8C8;
position: relative;
overflow: hidden;
}
.content {
@@ -84,9 +82,4 @@
.update-card {
background-color: #4D4D4D;
}
.card:active,
.update-card:active {
background-color: #616161;
}
}
+23 -9
View File
@@ -32,10 +32,7 @@ body {
font-weight: bold;
transition: transform 0.3s ease-in-out, background-color 0.2s ease;
border-radius: 50px 50px;
}
.floating-btn:active {
background-color: #003d80;
overflow: hidden;
}
.prompt {
@@ -132,11 +129,7 @@ body {
border-radius: 8px;
background-color: #CE0000;
white-space: nowrap;
transition: background-color 0.2s ease;
}
.uninstall-container:active {
background-color: #830000;
overflow: hidden;
}
.uninstall-container i {
@@ -153,9 +146,30 @@ body {
display: none;
}
.ripple {
position: absolute;
border-radius: 50%;
transform: scale(0);
animation: ripple-animation ease-out;
pointer-events: none;
background: rgba(0, 0, 0, 0.2);
}
@keyframes ripple-animation {
to {
transform: scale(4);
opacity: 0;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #121212;
color: #fff;
}
.ripple {
background: rgba(255, 255, 255, 0.2);
}
}
+3 -8
View File
@@ -28,6 +28,7 @@
height: var(--window-inset-top);
}
#module-version,
#title {
padding-left: 5px;
font-size: 16.5px;
@@ -94,16 +95,14 @@
white-space: nowrap;
border-bottom: 1px solid #ccc;
transition: background-color 0.2s ease;
position: relative;
overflow: hidden;
}
.language-option:last-child {
border-bottom: none;
}
.language-option:active {
background-color: #C8C8C8;
}
.language-overlay {
position: fixed;
top: 0;
@@ -229,8 +228,4 @@
.language-option {
border-bottom: 1px solid #6E6E6E;
}
.language-option:active {
background-color: #616161;
}
}
+16 -18
View File
@@ -24,6 +24,7 @@
height: calc(100% - 2px);
width: calc(100% - 60px);
position: absolute;
overflow: hidden;
}
.search-icon {
@@ -67,7 +68,7 @@
display: none;
}
#menu-button {
.menu-button {
background-color: white;
border: 1px solid #ccc;
border-radius: 50%;
@@ -75,12 +76,16 @@
width: 48px;
display: flex;
justify-content: center;
z-index: 200;
align-items: center;
position: relative;
overflow: hidden;
}
.menu-icon {
display: inline-block;
fill: #000;
transform: rotate(0deg);
transition: transform 0.2s ease;
}
@@ -88,27 +93,25 @@
transform: rotate(90deg);
}
.menu-icon.menu-closed {
transform: rotate(0deg);
}
.menu-options {
background-color: white;
border: 1px solid #ccc;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
display: none;
display: flex;
position: absolute;
padding: 5px 12px;
top: 110%;
right: 0;
z-index: 1200;
transform: translateX(120%);
transition: transform 0.2s ease;
width: auto;
max-height: calc(100vh - 120px);
overflow-y: auto;
white-space: nowrap;
opacity: 0;
visibility: hidden;
transform: translateX(120%);
transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
#select-denylist {
@@ -117,13 +120,11 @@
.menu-options.visible {
display: block;
opacity: 1;
visibility: visible;
transform: translateX(0);
}
.menu-options.hidden {
transform: translateX(140%);
}
.menu-options ul {
list-style: none;
margin: 0;
@@ -135,11 +136,8 @@
padding: 12px 4px;
text-align: left;
border-bottom: 1px solid #ccc;
transition: background-color 0.2s ease;
}
.menu-options li:active {
background-color: #C8C8C8;
position: relative;
overflow: hidden;
}
.menu-options li:last-child {
@@ -153,7 +151,7 @@
width: 100vw;
height: 100vh;
background-color: none;
z-index: 1000;
z-index: 100;
display: none;
}