snappymail/dev/Styles/User/Attachments.less

141 lines
2.1 KiB
Text
Raw Normal View History

2015-01-09 07:31:31 +08:00
.attachmentItem {
2022-09-23 21:02:13 +08:00
background-color: rgba(128, 128, 128, 0.1);
border: 0;
border-radius: var(--input-border-radius, 3px);
2022-09-23 21:02:13 +08:00
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 1px 5px rgba(0, 0, 0, 0.1);
2015-01-09 07:31:31 +08:00
display: inline-block;
2022-09-23 21:02:13 +08:00
list-style: none;
line-height: 20px;
2015-01-09 07:31:31 +08:00
margin: 5px;
min-height: 48px;
2015-01-09 07:31:31 +08:00
max-width: 200px;
min-width: 60px;
overflow: hidden;
2022-09-23 21:02:13 +08:00
position: relative;
2015-01-09 07:31:31 +08:00
&.waiting {
opacity: 0.6;
}
2021-02-12 00:46:29 +08:00
.checkboxAttachment {
2021-04-12 19:08:09 +08:00
bottom: 6px;
2021-02-12 00:46:29 +08:00
cursor: pointer;
2021-04-12 19:08:09 +08:00
position: absolute;
right: 6px;
2015-04-11 05:52:15 +08:00
}
2015-01-09 07:31:31 +08:00
&.error {
2021-04-23 16:12:06 +08:00
.iconMain, .iconPreview, .attachmentSize, .attachmentName {
2015-01-09 07:31:31 +08:00
color: red;
}
}
.attachmentIconParent {
position: absolute;
height: 48px;
width: 48px;
text-align: center;
2021-09-10 15:30:06 +08:00
}
2015-01-09 07:31:31 +08:00
2021-09-10 15:30:06 +08:00
.iconPreview, .iconBG, .iconMain, .iconProgress {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
2021-09-10 15:30:06 +08:00
.iconProgress {
background: #eee;
width: 0%;
}
2015-01-09 07:31:31 +08:00
2021-09-10 15:30:06 +08:00
.iconBG {
font-size: 18px;
font-weight: bold;
line-height: 55px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
2015-01-09 07:31:31 +08:00
2021-09-10 15:30:06 +08:00
.iconPreview {
display: none;
2015-01-09 07:31:31 +08:00
}
.attachmentNameParent {
2022-03-24 19:00:41 +08:00
border-left: 1px solid #ddd;
cursor: pointer;
margin-left: 48px;
2015-01-09 07:31:31 +08:00
min-width: 90px;
2022-03-24 19:00:41 +08:00
padding: 4px 4px 3px 6px;
position: relative;
}
2015-01-09 07:31:31 +08:00
2022-03-24 19:00:41 +08:00
.attachmentName {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2015-01-09 07:31:31 +08:00
2022-03-24 19:00:41 +08:00
.attachmentSize {
font-size: 12px;
2022-10-06 17:54:21 +08:00
opacity: 0.7;
2015-01-09 07:31:31 +08:00
}
2021-04-23 16:12:06 +08:00
.iconMain, .iconPreview {
padding: 6px 0 0;
2015-01-09 07:31:31 +08:00
font-size: 36px;
color: #aaa;
2015-04-14 02:45:09 +08:00
&.icon-none {
display: none;
}
}
/*
2015-04-11 05:52:15 +08:00
.attachmentIconParent.hasPreview.isImage {
.iconMain {
display: none;
}
}
2015-04-14 02:45:09 +08:00
*/
2015-04-11 05:52:15 +08:00
2023-03-21 17:05:29 +08:00
.showPreview,
2021-09-10 15:30:06 +08:00
.hasPreview:hover .iconMain,
2023-03-21 17:05:29 +08:00
.hasPreview .hidePreview {
2015-01-09 07:31:31 +08:00
display: none;
}
2023-03-21 17:05:29 +08:00
.hasPreview:hover .iconPreview {
display: inline-block;
2015-04-10 16:17:49 +08:00
}
2023-03-21 17:05:29 +08:00
.hasPreplay:hover .iconMain::before {
content: "▶";
}
.hasPreview .showPreview {
display: inline;
cursor: pointer;
2015-01-09 07:31:31 +08:00
}
}
.attachmentListSimple {
margin: 0;
.attachmentItem {
min-height: 1em;
border: 1px solid var(--border-color);
padding: 0 2px;
}
.attachmentName {
margin:0;
}
.checkboxAttachment {
position: initial;
margin-left:.5em;
}
}