Files
phone-app------test1-/pages/WorkSpace/WorkSpace.css
2026-07-07 18:02:55 +08:00

383 lines
6.6 KiB
CSS

/* 新建文件夹弹窗样式 */
.create-folder-name {
display: flex;
width: 100%;
padding: 10rpx 20rpx;
box-sizing: border-box;
align-items: center;
background: rgba(108, 99, 255, 0.06);
border-radius: 14rpx;
border: 2rpx solid transparent;
transition: all 0.25s ease;
}
.create-folder-name input {
box-sizing: border-box;
width: 100%;
font-size: 28rpx;
color: #333;
}
.create-folder-name.has-value {
background-color: #ffffff;
border-color: #6c63ff;
box-shadow: 0 0 0 4rpx rgba(108, 99, 255, 0.06);
}
/* 新建文件夹弹窗内部样式 */
.new-folder-name {
font-size: 28rpx;
color: #555;
margin-bottom: 12rpx;
}
.nf-path-label {
font-size: 24rpx;
color: #999;
margin-top: 24rpx;
margin-bottom: 8rpx;
}
.nf-path-display {
font-size: 26rpx;
color: #333;
padding: 12rpx 20rpx;
background: #f5f5f8;
border-radius: 12rpx;
word-break: break-all;
}
.nf-path-preview {
font-size: 26rpx;
color: #6c63ff;
padding: 12rpx 20rpx;
background: rgba(108, 99, 255, 0.05);
border: 2rpx dashed rgba(108, 99, 255, 0.25);
border-radius: 12rpx;
word-break: break-all;
}
.option-wrapper {
display: flex;
justify-content: space-between;
gap: 20rpx;
margin-top: 40rpx;
}
.opt-btn {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 24rpx 0;
border-radius: 16rpx;
font-size: 30rpx;
font-weight: 500;
transition: all 0.2s ease;
}
.opt-btn:active {
transform: scale(0.97);
}
.opt-cancel {
background: #f0f1f5;
color: #666;
}
.opt-confirm {
background: linear-gradient(135deg, #6c63ff, #4a45d1);
color: #fff;
box-shadow: 0 4rpx 12rpx rgba(108, 99, 255, 0.25);
}
.workspace-container {
display: flex;
flex-direction: column;
background: linear-gradient(180deg, #f5f4f9 0%, #faf9fe 100%);
}
.workspace-text {
color: #6c63ff;
font-weight: bold;
}
.workspace-header {
width: 100%;
display: flex;
flex-shrink: 0;
flex-direction: column;
align-items: center;
padding: 12rpx 0;
box-sizing: border-box;
position: relative;
z-index: 100;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1rpx solid rgba(170, 170, 255, 0.1);
}
.custom-navbar {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 16rpx 10rpx;
box-sizing: border-box;
position: relative;
}
.navbar-left {
display: flex;
justify-content: center;
align-items: center;
}
.navbar-before-title {
display: flex;
justify-content: center;
align-items: center;
text-align: center;
font-size: 26rpx;
color: #6c63ff;
font-weight: 500;
}
.navbar-title {
display: flex;
flex: 1;
justify-content: center;
align-items: center;
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 32rpx;
font-weight: 700;
color: #1a1a2e;
}
.navbar-right {
display: flex;
justify-content: center;
align-items: center;
margin-right: 20rpx;
box-sizing: border-box;
}
.navbar-right .menu-open {
color: #6c63ff !important;
font-size: 40rpx !important;
}
.custom-navbar-icon {
color: #6c63ff !important;
font-size: 40rpx !important;
}
.search-file-warpper {
display: flex;
width: 90%;
align-items: center;
}
.search-file {
display: flex;
flex: 1;
align-items: center;
background: rgba(255, 255, 255, 0.9);
padding: 14rpx 24rpx;
box-sizing: border-box;
border-radius: 28rpx;
border: 2rpx solid #e8e7f5;
transition: all 0.25s ease;
}
.search-file:focus-within {
border-color: #6c63ff;
box-shadow: 0 0 0 4rpx rgba(108, 99, 255, 0.06);
}
.icon-sousuo {
font-weight: bold;
color: #999;
}
.search-file-input {
margin-left: 16rpx;
font-size: 26rpx;
color: #333;
}
.cancel-search {
display: flex;
flex-shrink: 0;
padding: 0 0 0 20rpx;
box-sizing: border-box;
color: #6c63ff;
font-size: 28rpx;
font-weight: 500;
}
.workspace-content {
width: 100%;
display: block;
flex: 1;
overflow: auto;
box-sizing: border-box;
position: relative;
}
/* 菜单卡片 */
.menu-card {
position: absolute;
top: 100%;
right: 20rpx;
width: 280rpx;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #fff;
border-radius: 24rpx;
z-index: 999;
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.08);
padding: 8rpx 0;
overflow: hidden;
}
.menu-card-item {
width: 100%;
padding: 22rpx 28rpx;
box-sizing: border-box;
font-size: 28rpx;
color: #333;
transition: all 0.15s ease;
}
.menu-card-item:active {
background: rgba(108, 99, 255, 0.06);
}
.folder-null {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
position: absolute;
left: 50%;
top: 30%;
transform: translateX(-50%);
font-size: 30rpx;
color: #bbb;
}
.folder-null .iconfont {
font-size: 180rpx;
color: #ddd;
}
.folder-grid {
width: 100%;
display: grid;
grid-template-columns: repeat(3, 1fr);
padding: 24rpx;
box-sizing: border-box;
gap: 20rpx;
align-items: start;
}
.folder-item {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
min-width: 0;
background: rgba(255, 255, 255, 0.7);
border-radius: 24rpx;
padding: 24rpx 8rpx 16rpx;
border: 2rpx solid transparent;
transition: all 0.2s ease;
}
.folder-item.select-folder {
border-color: rgba(108, 99, 255, 0.3);
background: rgba(108, 99, 255, 0.04);
}
.folder-item:active {
transform: scale(0.96);
background: rgba(255, 255, 255, 0.95);
}
.folder-item .folder-name {
max-width: 160rpx;
text-align: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
line-height: 44rpx;
min-width: 0;
font-size: 26rpx;
color: #444;
}
.folder-item-style {
font-size: 110rpx !important;
color: #6c63ff !important;
}
.folder-checkbox {
width: 44rpx;
height: 44rpx;
border: 3rpx solid #fff;
border-radius: 50%;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.12);
background: rgba(255, 255, 255, 0.9);
box-sizing: border-box;
position: absolute;
left: 50%;
top: 25%;
transform: translate(-50%);
display: flex;
justify-content: center;
align-items: center;
transition: all 0.2s ease;
}
.folder-checkbox.select-folder {
background: linear-gradient(135deg, #6c63ff, #4a45d1);
border-color: #6c63ff;
}
.workspace-footer {
width: 100%;
display: flex;
flex-shrink: 0;
justify-content: space-between;
padding: 24rpx 30rpx;
box-sizing: border-box;
color: #888;
background: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-top: 1rpx solid rgba(170, 170, 255, 0.1);
font-size: 26rpx;
transition: all 0.2s ease;
}
.workspace-footer.folder-actions {
color: #6c63ff;
font-weight: 500;
}
.workspace-footer .iconfont {
font-size: 40rpx !important;
}