fix: 页面优化样式。
This commit is contained in:
@@ -1,29 +1,47 @@
|
||||
@import "./mixin";
|
||||
|
||||
.@{prefix}-button{
|
||||
position: relative;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
line-height: 40px;
|
||||
height: 40px;
|
||||
border-radius: 8px;
|
||||
background: linear-gradient(135deg, #35A3BA 0%, #0ea5b7 100%);
|
||||
border-radius: 10px;
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
border: none;
|
||||
min-width: 100px;
|
||||
padding: 0 20px;
|
||||
box-shadow: 0 2px 8px rgba(53, 163, 186, 0.25);
|
||||
transition: all .2s ease;
|
||||
padding: 0 24px;
|
||||
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
overflow: hidden;
|
||||
.cursor();
|
||||
|
||||
// 光晕效果
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
||||
transition: left 0.5s ease;
|
||||
}
|
||||
|
||||
&:hover::before {
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.@{prefix}-button:hover{
|
||||
background: linear-gradient(135deg, #3db0c8 0%, #12b0c3 100%);
|
||||
box-shadow: 0 4px 12px rgba(53, 163, 186, 0.35);
|
||||
transform: translateY(-1px);
|
||||
background: linear-gradient(135deg, #7689f0 0%, #8558b0 100%);
|
||||
box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.@{prefix}-button:active{
|
||||
background: linear-gradient(135deg, #2d96aa 0%, #0c98a8 100%);
|
||||
box-shadow: 0 2px 6px rgba(53, 163, 186, 0.3);
|
||||
background: linear-gradient(135deg, #5a6fd9 0%, #684094 100%);
|
||||
box-shadow: 0 2px 10px rgba(102, 126, 234, 0.35);
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
@@ -3,9 +3,27 @@
|
||||
.@{prefix}-footer {
|
||||
width: 100%;
|
||||
min-height: 125px;
|
||||
background: #646464;
|
||||
background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
|
||||
padding: 40px 0 0 0;
|
||||
border-top: 1px solid rgba(255,255,255,0.25);
|
||||
border-top: 1px solid rgba(255,255,255,0.1);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
// 动态网格背景
|
||||
&::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
|
||||
background-size: 40px 40px;
|
||||
animation: gridMove 20s linear infinite;
|
||||
pointer-events: none;
|
||||
}
|
||||
.links {
|
||||
color: #fff;
|
||||
font-size: 16px;
|
||||
@@ -44,6 +62,8 @@
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 0 16px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.footer-qrcode img {
|
||||
display: block;
|
||||
@@ -52,6 +72,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes gridMove {
|
||||
0% { transform: translate(0, 0); }
|
||||
100% { transform: translate(40px, 40px); }
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.@{prefix}-footer {
|
||||
padding: 25px 15px 15px 15px;
|
||||
|
||||
@@ -118,18 +118,26 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: 12px;
|
||||
gap: 8px;
|
||||
overflow-x: auto;
|
||||
overflow-y: hidden;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
a {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
padding: 6px 12px;
|
||||
font-size: 12px;
|
||||
padding: 6px 10px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
color: var(--color-text);
|
||||
background: rgba(53, 163, 186, 0.08);
|
||||
border-radius: 6px;
|
||||
transition: all 0.2s ease;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
a:hover, a:active {
|
||||
background: rgba(53, 163, 186, 0.15);
|
||||
|
||||
@@ -57,39 +57,59 @@
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
background: rgba(0, 0, 0, 0.65);
|
||||
backdrop-filter: blur(4px);
|
||||
z-index: 99998;
|
||||
animation: fadeIn 0.2s ease;
|
||||
animation: fadeIn 0.3s ease;
|
||||
}
|
||||
.zui-drawer {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 75%;
|
||||
max-width: 280px;
|
||||
max-width: 300px;
|
||||
height: 100vh;
|
||||
background: #fff;
|
||||
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
|
||||
background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
|
||||
box-shadow: -8px 0 30px rgba(102, 126, 234, 0.15);
|
||||
z-index: 99999;
|
||||
padding: 20px;
|
||||
animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
padding: 24px 20px;
|
||||
animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
overflow-y: auto;
|
||||
border-left: 3px solid transparent;
|
||||
border-image: linear-gradient(180deg, #667eea, #764ba2) 1;
|
||||
}
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; }
|
||||
to { opacity: 1; }
|
||||
}
|
||||
@keyframes slideInRight {
|
||||
from { transform: translateX(100%); }
|
||||
to { transform: translateX(0); }
|
||||
from {
|
||||
transform: translateX(100%);
|
||||
opacity: 0;
|
||||
}
|
||||
to {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.zui-drawer__header {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
margin-bottom: 20px;
|
||||
padding-bottom: 12px;
|
||||
border-bottom: 2px solid #35A3BA;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
margin-bottom: 25px;
|
||||
padding-bottom: 15px;
|
||||
border-bottom: 3px solid transparent;
|
||||
border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
|
||||
color: #1f2a37;
|
||||
letter-spacing: 0.5px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
|
||||
&::before {
|
||||
content: '☰';
|
||||
font-size: 22px;
|
||||
color: #667eea;
|
||||
}
|
||||
}
|
||||
.zui-drawer__list {
|
||||
list-style: none;
|
||||
@@ -97,23 +117,43 @@
|
||||
padding: 0;
|
||||
}
|
||||
.zui-drawer__list li {
|
||||
padding: 14px 12px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
position: relative;
|
||||
padding: 15px 16px;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #1f2a37;
|
||||
transition: all 0.2s ease;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 4px;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
border-radius: 12px;
|
||||
margin-bottom: 8px;
|
||||
cursor: pointer;
|
||||
background: rgba(102, 126, 234, 0.03);
|
||||
border: 1px solid transparent;
|
||||
|
||||
&::before {
|
||||
content: '▸';
|
||||
position: absolute;
|
||||
left: -5px;
|
||||
opacity: 0;
|
||||
color: #667eea;
|
||||
font-size: 12px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
}
|
||||
.zui-drawer__list li:hover {
|
||||
background: linear-gradient(135deg, #35A3BA 0%, #0ea5b7 100%);
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
transform: translateX(-2px);
|
||||
border-bottom: 1px solid transparent;
|
||||
transform: translateX(5px);
|
||||
box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
|
||||
border-color: transparent;
|
||||
|
||||
&::before {
|
||||
left: 8px;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.zui-drawer__list li:active {
|
||||
transform: scale(0.98);
|
||||
transform: translateX(5px) scale(0.98);
|
||||
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
|
||||
}
|
||||
@media (max-width: 600px) {
|
||||
.zui-page {
|
||||
|
||||
Reference in New Issue
Block a user