You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
roundcubemail-swipe/skins/elastic/swipe.less

199 lines
3.3 KiB
Plaintext

7 years ago
/**
* Swipe plugin styles
*/
@import (reference) "../../../../skins/elastic/styles/variables";
@import (reference) "../../../../skins/elastic/styles/mixins";
#swipe-action {
position: absolute;
display: flex;
align-items: center;
border-collapse: collapse;
&.horizontal {
background-color: lighten(@color-black, 85%);
color: @color-black;
}
&.vertical {
background-color: transparent;
color: lighten(@color-black, 70%);
top: 2em;
height: 1.5em;
}
&.checkmail {
color: @color-main;
}
7 years ago
&.select,
&.deselect {
background-color: lighten(@color-black, 50%);
color: #fff;
7 years ago
}
&.delete,
&.junk {
background-color: @color-message-error;
color: #fff;
7 years ago
}
&.flagged,
&.unflagged,
&.read,
&.unread {
background-color: @color-message-information;
color: #fff;
7 years ago
}
&.attvcard,
&.compose,
7 years ago
&.forward,
&.reply,
&.replyall,
&.notjunk {
background-color: @color-message-success;
7 years ago
color: #fff;
}
&.move,
&.archive {
background-color: @color-message-warning;
7 years ago
color: #fff;
}
> .swipe-container {
> .swipe-action {
7 years ago
line-height: 100%;
font-size: 1.2em;
&::before {
.font-icon-class;
margin: 0 .25em 0 .5em;
7 years ago
}
&.archive::before {
content: @fa-var-archive;
}
&.attvcard::before {
content: @fa-var-paperclip;
}
7 years ago
&.checkmail::before {
content: @fa-var-sync;
}
&.compose::before {
content: @fa-var-edit;
}
7 years ago
&.delete::before {
content: @fa-var-trash-alt;
}
&.flagged::before {
content: @fa-var-flag;
}
&.unflagged::before {
.font-icon-regular(@fa-var-flag);
}
7 years ago
&.forward::before {
content: @fa-var-share;
}
&.junk::before {
content: @fa-var-fire-alt;
}
&.notjunk::before {
content: @fa-var-inbox;
7 years ago
}
&.move::before {
content: @fa-var-arrows-alt;
}
&.read::before {
.font-icon-regular(@fa-var-circle);
7 years ago
}
&.unread::before {
content: @fa-var-circle;
7 years ago
}
&.reply::before {
content: @fa-var-reply;
}
&.replyall::before {
content: @fa-var-reply-all;
}
&.select::before {
.font-icon-regular(@fa-var-check-square);
}
&.deselect::before {
.font-icon-regular(@fa-var-square);
}
}
7 years ago
&.left {
position: absolute;
right: 0;
> .swipe-action::before {
float: right;
margin: 0 .5em 0 .25em;
}
}
&.down {
margin: 0 auto;
background-color: #fff;
border-radius: 50%;
box-shadow: 0 0 10px lighten(@color-black, 75%);
> .swipe-action {
&::before {
float: none;
padding: 0;
margin: 10px;
line-height: 1em;
}
> .swipe-label {
display: none;
}
}
7 years ago
}
}
}
.swipe-active:not(#swipe-action),
.swipe-active > td {
background-color: @color-layout-list-background;
}
.toolbar a.button.swipe {
display: none;
}
html.layout-small.touch:not(.ie),
html.layout-phone.touch:not(.ie) {
.toolbar {
a.button {
&.swipe {
display: inline-block;
&:before {
content: @fa-var-hand-pointer;
}
}
}
}
7 years ago
}