3 Star 20 Fork 10

vartruexuan/upload-more

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
uploadMore.css 4.17 KB
一键复制 编辑 原始数据 按行查看 历史
小昭 提交于 2024-08-13 11:56 . feat:优化下
/* 容器 */
.uploadMore-container {
display: flex;
flex-wrap: wrap;
/*border: 1px solid black;*/
gap: 10px;
/*padding: 10px;*/
}
/* 成员 */
.uploadMore-item {
position: relative;
width: 120px;
height: 120px;
border: 1px solid gray;
text-align: center;
line-height: 80px;
padding: 4px;
border-radius: 4px;
}
/* 图片展示 */
.uploadMore-img-preview {
width: 100%;
height: 100%
}
.uploadMore-img-preview img {
max-width: 100%;
max-height: 100%
}
/*拖拽排序按钮*/
.uploadMore-drag {
background: rgba(236, 221, 221, 0.5);
border-bottom-left-radius: 4px;
cursor: pointer;
position: absolute;
z-index: 2;
right: 0;
top: 0;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center
}
/*************************** 上传按钮 start ***************************/
/* 上传按钮 */
.uploadMore-uploadBtn {
position: relative;
width: 120px;
height: 120px;
text-align: center;
line-height: 80px;
padding: 4px;
border-radius: 4px;
border: 1px dashed #d9d9d9;
}
/* 上传按钮-文件数量 */
.uploadMore-uploadBtn .uploadMore-fileNum {
background: rgba(239, 235, 235, 0.5);
border-bottom-left-radius: 4px;
position: absolute;
z-index: 2;
right: 0;
top: 0;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
line-height: normal;
user-select: none;
-webkit-user-select: none;
cursor: pointer;
}
/* 上传按钮-上传图标 */
.uploadMore-uploadBtn .uploadMore-icon-box {
position: relative;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-content: center;
align-items: center;
background-color: #fafafa;
cursor: pointer;
}
/*************************** 上传按钮 end ***************************/
/*************************** 操作按钮蒙版 start ***************************/
/*操作按钮蒙版*/
.uploadMore-operation {
position: absolute;
z-index: 1;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 0.4);
font-size: 30px;
opacity: 0;
transition: all 0.2s ease 0s;
}
/*操作按钮容器*/
.uploadMore-operation-box {
width: 100%;
height: 80px;
/*height: 80px;*/
display: flex;
align-items: center;
justify-content: space-between;
color: #fff;
font-weight: bold;
flex-wrap: wrap;
flex-direction: column;
}
/*************************** 操作按钮蒙版 start ***************************/
/*************************** 进度条 start ***************************/
.uploadMore-progress {
position: absolute;
z-index: 2;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
}
.uploadMore-progress-box {
z-index: 3;
width: 100%;
height: 100%;
color: #fff;
}
/*************************** 进度条 end ***************************/
/*************************** 进度条 start ***************************/
.uploadMore-message {
position: absolute;
z-index: 2;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
}
.uploadMore-message-box {
z-index: 4;
width: 100%;
height: 100%;
color: #fff;
}
.uploadMore-message-content {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
flex-direction: row-reverse;
align-content: center;
}
/*************************** 进度条 end ***************************/
/************************* 错误消息 ***************************************/
.uploadMore-message-content span {
line-height: 36px;
display: inline-flex;
flex-direction: row;
flex-wrap: wrap;
align-content: space-around;
justify-content: flex-start;
align-items: center;
cursor: pointer;
}
.uploadMore-message-content span:hover {
color: #2c2cc6;
font-weight: bold;
}
.uploadMore-message-content .uploadMore-operation-action-delete:hover {
color: red;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/vartruexuan/upload-more.git
git@gitee.com:vartruexuan/upload-more.git
vartruexuan
upload-more
upload-more
main

搜索帮助