snappymail/dev/Styles/User/FolderList.less

255 lines
4.3 KiB
Text
Raw Normal View History

@folderItemPadding: 7px;
@subPadding: 15px;
.b-folders {
ul {
margin: 0;
}
2017-02-09 01:48:53 +08:00
.move-action-content-wrapper {
z-index: -1;
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
opacity: 0.05;
background-color: #fff;
background-size: 60px 60px;
background-image: linear-gradient(135deg, #000 25%, transparent 25%,
transparent 50%, #000 50%, #000 75%,
transparent 75%, transparent);
}
.b-toolbar {
position: absolute;
top: 0;
right: 0;
left: 0;
height: 30px;
2016-04-30 04:28:02 +08:00
padding: 10px 0 0 @rlLowMargin;
color: #fff;
2014-05-08 06:20:17 +08:00
z-index: 101;
}
.b-footer {
position: absolute;
2016-04-29 04:32:54 +08:00
bottom: 10px;
right: 0;
left: 0;
2016-04-29 04:32:54 +08:00
height: 30px;
2014-05-08 06:20:17 +08:00
padding: 0 10px 0 5px;
z-index: 101;
2016-04-29 04:32:54 +08:00
overflow: hidden;
white-space: nowrap;
}
.b-content {
position: absolute;
top: 50px + @rlLowMargin;
2014-05-08 06:20:17 +08:00
bottom: 32px + @rlLowMargin + @rlBottomMargin;
left: 0;
right: 0;
overflow: hidden;
overflow-y: auto;
min-width: 100px;
}
hr {
margin: 10px;
2021-03-09 21:50:09 +08:00
border-top: 0;
border-bottom: 1px solid #999;
}
li {
display: block;
overflow: hidden;
white-space: nowrap;
2021-04-23 19:01:51 +08:00
a {
display: block;
position: relative;
z-index: 1;
height: 34px;
line-height: 34px;
background-color: transparent;
vertical-align: middle;
color: var(--folders-disabled-color, #666);
font-size: 14px;
border-left: 3px solid transparent;
2015-10-14 00:36:43 +08:00
padding: 0 2em 0 @folderItemPadding;
text-decoration: none;
&.selectable {
color: var(--folders-color, #333);
cursor: pointer;
&:hover {
background-color: var(--folders-hover-bg-color, #333);
color: var(--folders-hover-color, #eee);
}
&.droppableHover {
background-color: var(--folders-drop-bg-color, #333);
color: var(--folders-drop-color, #eee);
}
&.droppableHover * {
pointer-events: none;
}
&.focused {
background-color: var(--folders-focused-bg-color, #333);
color: var(--folders-focused-color, #eee);
}
&.selected {
background-color: var(--folders-selected-bg-color, #333);
color: var(--folders-selected-color, #eee);
}
}
2021-08-19 21:14:47 +08:00
&:not(.selectable) {
2021-08-25 19:22:40 +08:00
cursor: default;
2021-08-19 21:14:47 +08:00
font-style: italic;
}
&.focused {
background-color: #888;
border-left-color: #fff;
}
2014-01-23 02:55:17 +08:00
&.unread-sub {
font-weight: bold;
}
2021-03-09 21:50:09 +08:00
&.hidden {
display: none;
}
.e-collapsed-sign {
cursor: pointer;
font-size: 150%;
vertical-align: inherit;
}
}
2021-07-30 18:26:27 +08:00
a[data-unread] {
font-weight: bold;
overflow: hidden;
text-overflow: ellipsis;
2021-07-30 18:26:27 +08:00
}
ul.collapsed {
max-height: 0;
height: 0;
display: none;
}
}
2021-07-30 18:26:27 +08:00
.b-folders-system a[data-unread]::after,
.b-folders-user a[data-unread]:not(.system)::after
{
content: attr(data-unread);
background-color: @grayLight;
border-radius: 9px;
color: @white;
2021-09-01 15:43:53 +08:00
font-size: 11px;
2021-07-30 18:26:27 +08:00
line-height: 19px;
margin-top: 5px;
min-width: 1em;
padding: 1px 4px;
text-align: center;
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
position: absolute;
2021-09-01 15:43:53 +08:00
right: 3px;
2021-07-30 18:26:27 +08:00
}
.flag-icon {
2021-07-31 05:11:05 +08:00
margin-left: 7px;
}
.flag-icon::after {
2021-07-31 05:11:05 +08:00
content:'☆';
opacity: .5;
}
.is-flagged {
.flag-icon::after {
2016-04-29 04:32:54 +08:00
color: orange;
2021-07-31 05:11:05 +08:00
content:'★';
opacity: 1;
2016-04-29 04:32:54 +08:00
}
}
.b-folders-system {
font-weight: bold;
}
li li a {
padding-left: @subPadding * 1 + @folderItemPadding;
}
li li li a {
padding-left: @subPadding * 2 + @folderItemPadding;
}
li li li li a {
padding-left: @subPadding * 3 + @folderItemPadding;
}
li li li li li a {
padding-left: @subPadding * 4 + @folderItemPadding;
}
2015-02-23 02:25:34 +08:00
/**/
&.single-root-inbox .b-folders-user > li > a {
2015-02-23 02:25:34 +08:00
display: none !important;
}
&.single-root-inbox {
li li a {
2015-02-23 02:25:34 +08:00
padding-left: @folderItemPadding;
}
li li li a {
2015-02-23 02:25:34 +08:00
padding-left: @subPadding * 1 + @folderItemPadding;
}
li li li li a {
2015-02-23 02:25:34 +08:00
padding-left: @subPadding * 2 + @folderItemPadding;
}
li li li li li a {
2015-02-23 02:25:34 +08:00
padding-left: @subPadding * 3 + @folderItemPadding;
}
}
2015-02-18 04:12:48 +08:00
/**/
}
2014-05-08 06:20:17 +08:00
2016-04-30 04:28:02 +08:00
.btn {
&.buttonCompose {
2021-07-16 03:02:00 +08:00
width: calc(100% - 85px);
2021-02-05 22:56:15 +08:00
max-width: -moz-fit-content;
max-width: -webkit-fit-content;
2016-04-30 04:28:02 +08:00
max-width: fit-content;
overflow: hidden;
2016-05-01 09:07:10 +08:00
height: 19px;
2016-05-01 19:51:49 +08:00
margin-top: 1px;
2021-02-05 22:56:15 +08:00
padding: 4px 8px;
2016-04-30 04:28:02 +08:00
}
}
html.rl-left-panel-disabled {
2016-04-30 04:28:02 +08:00
.buttonComposeText{
display: none;
}
.btn.buttonCompose {
width: auto;
}
2014-05-08 06:20:17 +08:00
.btn.buttonContacts {
margin-top: 10px !important;
margin-left: 0 !important;
}
2016-05-01 19:51:49 +08:00
&.rl-mobile #rl-left {
2016-05-01 09:07:10 +08:00
visibility: hidden;
}
}